{"_id":"@apollosproject/data-connector-onesignal","_rev":"530-64d14fdfb1899359bee5265c470f8b54","name":"@apollosproject/data-connector-onesignal","dist-tags":{"beta":"2.0.0-beta.1","v1":"1.8.0","canary":"2.41.1-canary.14","latest":"2.43.1","next":"3.0.0-canary.36","v2":"2.47.9"},"versions":{"0.8.0-alpha.7":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.0-alpha.7","_id":"@apollosproject/data-connector-onesignal@0.8.0-alpha.7","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"cced9fd0ca0364107cd67cc803244e5c97ed9025","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.0-alpha.7.tgz","fileCount":7,"integrity":"sha512-0Ev1LmMzoIpY2cag6Oz0eM7XglYHZHDRdzEeWO8l4Ni9xnf5irlzEg5rzbs+/El0v3tqNOyYG0hpjB19U4e19Q==","signatures":[{"sig":"MEQCIAjFa+mXyPP4uViznZ35znszfagBbtzknnW0Z2aj+E0KAiBs0VIqjpOyxoEQ9RS5xBvCv4Xt3ZZAjLWegkY+9Kc6RQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcQfuHCRA9TVsSAnZWagAAWBgP/2A0jnjyisN3Wk73jeNP\n9xd5OPP4+rCYCbAglKkosZO6DuVCtrNf06G5Z/DoeqOCE6032DwzFdsMFJIf\nuUdeqKhryCsvXpN6kZD7gEUEIe+WssSheLCAIkotXz52ak9v52RCng8fDlEF\nGuxka4H/9emJCL3++2qaxhKMHdHIklmXncddqW3Apw9QHvQriKwDElmMoa2K\nbqHqcXlrfNsjUvKxo9PEpK/RioU1aNEAemgDco1XZTyrDM0U9uioEhHZyF4R\nxcQC4DBrGn0O/6hL7b+YMONt1zTVdCwYj/mY6DRrFdJQ+OD9lW7cuJ1+cK8l\nQLs3UUMv+Sc2FIC58KCXxzuRwROFq0sFSaX0jorPA60OLfHmpyOR+XnLUVeU\nHeHeGimoo2EgMMq6ceEy0UFafw8bz5pUJJP6CX6EReLSdx4IWAAkyQbRXk9D\n2HLO3T2ST2Xe5vi0d2TnUlSpiZdSl4M/ZfE1lC6X+xsr0JrdJ1faoYbrBdE9\nYDPUKUSoyoHSKu1oXcLAsBly8rRs3smBCqccgORz2/Oau8rF0Tt5A5DUBlCP\nRTAhg7zJAHfmHwRFRiOh2ziNNdJJASIyn7J4eddxK4dTcrtnmRIqW+OJDIKZ\nlvNmzqih2jzNFj9obBPVz+JALp/xoZqsDU0YXns7e3sLq7MKI0Zc9wWiWYHd\nScDy\r\n=JhCK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node"},"main":"lib/index.js","gitHead":"234ae2007ba55de13ae55d5ce485fb562f7cd6ff","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"description":"> TODO: description","directories":{},"dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.0-alpha.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.0-alpha.7","@apollosproject/apollo-server-env-mock":"^0.8.0-alpha.7"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.0-alpha.7_1547828102543_0.567602385986476","host":"s3://npm-registry-packages"}},"0.8.0-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.0-alpha.8","_id":"@apollosproject/data-connector-onesignal@0.8.0-alpha.8","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"bdc4bae5e243eda2d8a8a6a31b26f1281f244560","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.0-alpha.8.tgz","fileCount":7,"integrity":"sha512-Hg7ghVo769zw37Nxih1gKOOWEfPSSfjEBPB3DOV3vB03SL3t5Cn6aKDzXDJnjzN7iwLTqvvI8wyAX29Wzbdy4Q==","signatures":[{"sig":"MEYCIQDMhH3AbJszYFVUFDsYf/28OI6RSp3pmQkSm8falugpUQIhAIIWElNYrGylaNaoDIH9rb+XSnfBUYBYXT2aMoghZT03","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccDktCRA9TVsSAnZWagAATTEP/i381LapitcWsmvwfRqT\nvE9T1GNcTYN3ZAABHPaKVe8UQ37BxF2xF5ads7ef/QvtvIY0hmlN1bNl+sjM\n6NBsHNM3KNsqx/ZqrASKKMr6UTisxmjO5oKl9oXf7vXyjm3BGHwqSxYiLzuz\nUUkGZ/df1bsAlZcMSUo/jIQ5qJskcbjsBKjiX9JN1+ruK/dzWv9OJzEn9Vdq\n00xywUqG5bgzFC0S8DSqb4daJFxbjzM6pnN+zgqS+4ZNjcioaHe4JrQcaBPW\nJEwmla7pP0I6tAP4ZJstEAgy05jVGD6YDwL7vDjw3MW32vxRPu4TVNTKfpc0\nqWNuxMo2PHQ1+/Uh+cKbhznZfmcKnRbBT2eq5idVFAxJJAAo2vo49N2t4+o3\n05jjUXqwZ6Uc3CVcb8pdQeYf+cJT3K+qwKnFYwLAyypLIpxErRDPBbyKyKm1\n/78k3iTu480m32fPXP9b2jepQAYSgF4amrIIeasVdj7lR1PwTr0uzkc1e/0n\nsYb6oTaQK+mLaJPHL+jSZcehCEVZCK1ff/j5WcPAj20sQ4jurE4/rdnvKTD9\n5bFOKIdNkbQEiJGpehjLvcMPEXgzaHRm4p0zanq2JcSqAQhcPh3Y12qdpabn\nnDM7v35ssyXDZLCvDp8vjD2b6dyj+fhT9zBLhZ2OY5HA59O8Zrxkl66Awfv5\nry9R\r\n=4DUA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"eb803583da83beeab7756baddcae3adca7650c39","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"description":"> TODO: description","directories":{},"dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.0-alpha.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.0-alpha.8","@apollosproject/apollo-server-env-mock":"^0.8.0-alpha.8"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.0-alpha.8_1550858540769_0.7642615852091792","host":"s3://npm-registry-packages"}},"0.8.0-alpha.9":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.0-alpha.9","_id":"@apollosproject/data-connector-onesignal@0.8.0-alpha.9","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"457d6b150966e7b740895a271b3e610c08f89c83","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.0-alpha.9.tgz","fileCount":7,"integrity":"sha512-XUrxYovwixfe4vAk2J3df8BdEmIgW9m05ky9YYg2lFLqq7HSnIcDjqpY+TR/Z0YF26CzYnDUReV1nCUD94gblQ==","signatures":[{"sig":"MEUCIEPKBuPhN1QJj97ay6W7i2VG1+xvs+743skuAlGLcwA+AiEAqowvcLRrbNBqGCsX9T7dphnHD/eB5Wv/e6OpcPCGAJE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcd/ExCRA9TVsSAnZWagAAS0YP/jYKIm9yLPuRogoSFwim\noU3wzjceKJJM0EfAjvRmsVyotLiBnSBzyiK097qfI97u8vDMyebrVuCBpUYG\nPeA4lewmMA817aSOmcHVFIzv5FdAGBN398UZl4hlesqwISAq4Jc3y2WfEpqW\nX4S6XJAx8aOtt++XMS3HdYyNTDC7KmvGPJiF5x7ZHpdcDKTNZBAn+BnKYeVe\nEIclGMFgiVtM2g3m/m3GC9Ww4L0r66icWAUBmS4iju6livtEJLj5bP5Y8n/3\nbLte/QZ3LCF2Gu9BMw9Tl0/RmOk+5exchR5VLlZUCzUfrHG/qhrAyb5zmmH3\nW/3wKF/vJQgPOOojvTa/G2Y+gBtIIOwloivIEcseLKTonhA1Qo+v0OsqtXkt\nXsBx8DNXQjsEkzxwn30cjYMc5fnkS7MRqAT+iCmygpWFEQRjv20ADgDYEIZh\nCgwTVK8zdpCTrcJLpsSzjiD8a0TCpMKwbOOVf01S2DZXWcXVbtsblUe1IcSW\n8RmHosmsh1NieuIAC7vQOwi5cerY3GHhgndMgo/RTyz/o5YWsZir9XaVQVJz\nFZCfxqblmAHDSLmymG3lNRsbo/FKjjGQslGUeNX/N1uQDNrKt1It7Jo1bPUh\nqfEsmNd54ZgUEkEPta0ugWaBuGZ9Jccu0spxMI6ipy5qDH9Rt4VG2voMKLW6\nAHpV\r\n=QDJP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"a2236fbd6465e55720e9dd59edefaaaaba44ebec","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"description":"> TODO: description","directories":{},"dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.0-alpha.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.0-alpha.9","@apollosproject/apollo-server-env-mock":"^0.8.0-alpha.9"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.0-alpha.9_1551364400971_0.24924271152915223","host":"s3://npm-registry-packages"}},"0.8.0":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.0","_id":"@apollosproject/data-connector-onesignal@0.8.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a168317d7b02dc1c3eff1c8b0e9bcb07d96cf5b8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.0.tgz","fileCount":7,"integrity":"sha512-maqsFVXSFfsOiFE91PXDSrs2xvWBbq2dElYOPAlP/DazSrMWM28k/k1xZQxYZk25ua+wswWm5lj2wFw8TzQW4A==","signatures":[{"sig":"MEQCIHRQ20t0Mz9Rqr3YjQXKk6i0c6kPpAYNq8c0VRY1bMNAAiBkx8l8FNBbP0oetygwVjZNoOmYSdzI+bDSTxFOGKAhPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgE4ICRA9TVsSAnZWagAAZ8kP/jbEAY1Us1KIQLjaH7qc\nYIi77P7YEQCuo/l3TbGh4k8yUA4mlt2DUz3u6bWu/UC+D7/Ohi2w6Q4gNsHZ\nLiNHh7n99J1syS2/JPr6zLdDLxsPFoLH9jztqBM6LZdbU5ABMJbZwqyBC0W5\n+GVfmJkorHjhGysEoPaMMfd6Pyl+rx704FxA5095eV+OCeBSNnRdjw1h8fyU\nMocaOPIf9SGirPKD9WY6rEKYu3/En77a5++OiIReVpDfqSypAhqpYKZjQBGv\n2oxg3N4WlVN8fq95cZ6BzNT1BxHtepiDaFOJJhsE+rwxO3IEEEmjHvxuBYvt\nBI5uGQn1nuiDkDgAa3BCsdaFFKV8JAUtjYWg6qNDgq5cx+Qr2N7HKwMd3HYj\nw6Ix+wLDmiSL2Par/CzVppSQAYg0pN+9meT0OwVMrV532YeiK4/qJWHaF3lU\nHD0/J0ZlXmyGUjoPpb1o8OMXUu4OhtlWLD55aRs7v2vInVMU5ETjsXc2qF2m\nqhJaAII0Dw7Ziy4MVGhbrONqywRFKpR6OSloriJ1fyi6Z/MRFypVkpUdoY4L\n2WqUOOiZ/aKxaWAxGdFo4FuLa5TL6SuHdB0S3h44HgPIl8Pn+J/eFZzzecn+\ndccyxPb6F+hwAAp26JYjpva8q3xs3LXprgmZCdqisSDAFpsd5iMYsXZfQwFc\nn04+\r\n=OKnc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"9df4a45566b67d0e5f0628f04d4085e736cabe93","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.0","@apollosproject/apollo-server-env-mock":"^0.8.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.0_1551912455878_0.3777389126615609","host":"s3://npm-registry-packages"}},"0.8.1":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.1","_id":"@apollosproject/data-connector-onesignal@0.8.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"56633cdb7d7b1ddef9274f474b72b5521c55ddc5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.1.tgz","fileCount":7,"integrity":"sha512-4HAR3Eb9CT/uT5Tney3WbrogViOsqH6AXcFKC5a7Flk1GqIcntoLWoo5endz53O+oOdIhj7iom/AS4QXF18wMQ==","signatures":[{"sig":"MEUCIQCymrDvXthamrc96SMVGy1ljyP242TapYKxzrnu/QftLAIgBDvv7QQxV3qE/GgJELnrf5jt7zieR2Rc4viDxL6RTpM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcmW/wCRA9TVsSAnZWagAAYaYQAKRdbmEOaIicrIS/8l19\noXI2qrIGtAW1cRriWTWt81QpsDOIW542/mORUFSTmCumT+XcqGZiSVE5R/Pr\n50XHYD3yxrnf05aOkz81Uu+4BmyLdYisGDFBOL7iZdFZKfcXLdyM7a4g+odJ\nvRyQMe7FiwnmP9LsAaSoY1eiYZ9OtBl7Ipy842SBCQ/pHfMoE0t9cYGsBYYw\naHn36dWNY9vh6s4VxMKUrbmNHcmMS28hfH3LIn48HLcL5IC4S1rnNdATmNnI\nWIWDa/dR7/4V3hzVjuUkZ0yYqhOqNXL86Q8MCGY9sNX9/WtQkYHtvNkEJnqn\nLJaQw3FJE+RoB3sh+xAAMP2q+r5wu4qGW+OvGPNHtbOQVMJvUDjJ+GdWnnw2\nbIIsy53l6SGRvnbJEs2sSO1rL7jzIsyxl+zxxqi3vk5GkxVGcRJTNxOhNQ/i\nj/a+/C2LqtNa6aT0nn69CLgdOXMRVQi9B1GVucMcnYxqXgtmHV1Bl8dxOA+6\n6dTUR/wC/c5I2yzt4oybHCz8l7/bi6WiOYeoM9BqXRIfADS2jyr87aZ/pvoa\nPj/FT7JaW0DXe3laIHAMNArCc0E8wfumUMaJTbA5AbM2lpMm5WmWKT8mQn1r\njrQAU9gxqPx5Lj4w+cEmVF2YctzPlp12XSp7K0ZoryqN6VDKQkY/kp59sLW0\nZfx8\r\n=KSXX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"4752e5ad106d4abd42550ba949ca7137ae82d1cc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.13.1/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.1","@apollosproject/apollo-server-env-mock":"^0.8.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.1_1553559535504_0.42216657768336563","host":"s3://npm-registry-packages"}},"0.8.2":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.2","_id":"@apollosproject/data-connector-onesignal@0.8.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"965aad6b589793aa8ab86934c701df6c4f560fb4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.2.tgz","fileCount":7,"integrity":"sha512-IADl1dnIiAfNMJhNvrBkbq6Udz0UsOYxzvLMZ/VYEEKFMlPhEoOXPRP30EpKh/fYQyy9JKMegZsi7ZwY+dBLsg==","signatures":[{"sig":"MEQCIAXs4PodS46Rrv3A1lcXVWMFsfGqIypgUOUG07+vifhqAiBV6PI01KFavmE5exw8Wz2CiulKyI1L3el5CXRhKAruHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJct40ZCRA9TVsSAnZWagAABpUP/038RqqZkteBH38osGB2\nVHkL2lzi7VllV8tO7etQsenpE/d1ZHOLcpD6DhfgTmcfs8hbor0RSE4y0Ngx\nn6ypaxxR73KrConQUu0dRnuUvJaUz+tDtINhTsLsfOtVag+IlZ5IXNp859r/\ng5Bt/x4LohtcOEzPsz11WXRQpmRr1ZjFz5Y2AcOakot3VbJE7XEjofbcf/HK\nqtTPr43B+LFrlA9fK6NN+8vk2+rUwDCVSwj2kCyXvEcRR2K/hXBCon3H6uA5\nOC2wtMxPDYkKg2dMp/wicxKPOgRczernRDEomOysBPCd1IIf0y6b8Xiga2Zc\n9sEbIc+anLvrMaXsmSH0fHeTBRH14nWRlvnieFtW7+g7qp8VmuYdqP9JsFwC\nBNdcCi/ohbiWVBcSPYlkkjP1+6Y0dV1QY7290FO9AkCQNWs4m9afSWMFzcnN\nqmzfdYD1tZOoL6azYXcg8/Nh3JdW+QDNxF/Zl1NemhyBQiTap2npF+8hxOan\nwj3an3nUJpb9TsJKsfRMxx/hzNHQnxQ8ab1LFpqgsXS7eFZvXhCkHiG1xv50\n4fl0dBgZtFefbyjUizfmpHkgefe7t2X1Suvd3r1Yb4sMnBj+gUwHA5/KyDAJ\nYsMbZ4H+N4fYqshv5NIK11X8i4qmKp5e1pYpP5e9YuEjpS3e0Yrcs8YdHyLb\n9TDf\r\n=X4h2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"fcd85198655621350fa13477e305455f05498b74","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"conrad_vanl","email":"hi@convan.me"},"_npmVersion":"lerna/3.13.1/node@v8.11.2+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.2","@apollosproject/apollo-server-env-mock":"^0.8.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.2_1555533081385_0.7492244084347179","host":"s3://npm-registry-packages"}},"0.8.3":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.3","_id":"@apollosproject/data-connector-onesignal@0.8.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"75c7de451e6d80cb45721d4404000fe3abbc2eba","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.3.tgz","fileCount":7,"integrity":"sha512-cbmfchrRtMfVn0kc6ocrPnKU7LmDg9oIqO8sI8fe252WWIlBKZ177Zbrabfi8eFXX8KgF72RhmmEhqZHbJ70Tg==","signatures":[{"sig":"MEUCIFw1gWlBTmeA/sknd1SvKUqOMlIrN+XAU+Qp/D5ZDEFVAiEA1k9DxA/vBZQ5VJMkxNkrpJLe6JtVtvMa/idXouWzj+c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwiPxCRA9TVsSAnZWagAABaYP/iQyNuJyaTiueACAJZeL\ngGYa9bGenSNq6jirer8uF9vX40UCtLP38rzbfqM+RRLN0fFGVAy8FVHXrNux\nqzAihJxLJ7osv+NuVwrsBFcEjKoxl//vplYpx2YY7PFe/WQalql9emiG6SJ7\nDtYIO/ZyVpFtNSO7dYQEb/v7n+HxMOnD0627KZylmowwRdrakURf/V0FoTeG\n01twOqgageL6Q6eCAxFKwpvq2Iuz8SholBuh6dsQ/DDEggSma7X07RMyWkH0\nRGZQTtkQZ5NKDujtYIt3qHyS8giAM8fL1c4VhjuDaQ3Nllcf+IovQZ3bX8lM\nk8HVtJ1vK4fC3HIT1kWPADIlhOYJSsuUBAi809vf6MGnbCNRndYQRVaLpFyy\nGok8PyJkIp88Hg7d84tfeNj73mmui2euP+wOcoIZAIu+xEpcKNbY5gdO0y53\n5LsuTWBQOPVT80bsNkCEofkiWPkv0tNZBpQH2jkJCYZLGkYPs0t7d2skeKZ7\n/yDWfuke8WPPN9l2GEDG0HZMVYczG45UPpW5630t/m7WEGO/YVmAsk+ZTPK9\npz4WjNKuO6WIKAgnd55orE6oQFnf/V3oYgmq37xUncbXYQIezCEoG9FfyMtS\nuTvqQ/BinV1BnFNJnpZu+ZuLb/eYdHS96zgX2hg4SMLOfPsMk1UFrtSGxWvt\nxMX8\r\n=N+Hs\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"b39bb40bf5244192a997f70ce79114321679b632","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"_npmVersion":"lerna/3.13.1/node@v8.11.2+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.3","@apollosproject/apollo-server-env-mock":"^0.8.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.3_1556227056498_0.18230117494320086","host":"s3://npm-registry-packages"}},"0.8.4":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.4","_id":"@apollosproject/data-connector-onesignal@0.8.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a0beae4373eb1c43bae3aae5806f5dcf1c1c7de5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.4.tgz","fileCount":7,"integrity":"sha512-SVmmibm7BNiPVcvX2cj61W+ZHf1i6h8nfdy3hMXiiTgMZ2Yf7wIdhqkZl6qiiVmdvMk6wuBeQZPLbaf5NYzPoA==","signatures":[{"sig":"MEUCIQDXJ4e/+ngOLlSXw6kM0pKd5miYFXOGfRh49+0h4XiTLwIgZqLN8VzlwaFvTBAJQq13jvIL3VfErM4OisPBfcu19a0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcy1knCRA9TVsSAnZWagAArMsQAJjTfwr4I++CZSJjC5xq\nFsx3I+Apdax9VYNFddsZonDP26M+w0c+0t7FTLznyNGmmGvPYO+gyES0Nv2f\n6EC184U8XbSRmXzBwAQk1YPzFoXecvkzUkvZh5NkPmSZ06c3ba7H+Gc2tw8l\nL32BrGhLKxQZRjcGG9bmj8QQ9+p5b9TdQmOtorVY8KVUUmzirQ2EFR1Fpwev\nZggqz8sodGKroQ2rK3iab3GVx6K4I1pG/87atPdYTlw3Wya5IBZKjG69gf7x\nNut0gaRLHBtw8w6hynKy0xWW06ZMeUjJpSKWaI/R/lh7JlW4urCzrzMBHPE3\nbDTr1TJsFqiAg6UbOUzX1ev5v+YmS+LFLJ0dT8zP4GaU4J2PMX3bJ+4DjIRb\npSkdkGYGdaq92q/q2A4Io+0oW9HxOwZjS+/t1+F6YXXjkgIv1/8mVUknM2nz\nj7lo42e9r6bMvglOu32o/lKTUMMOX7PcQvYV+baATRteA5tWZm6DrIMGzd7c\nooQCr3zx6HiEap8myRVywc20+xI6EeJhq/ISmMphsCgjEAQZ1FkCURVrlQsm\nEtd9xm8jD76WdDNs6EyFrOUwOBoLLenDE5HBMgcLCSolCE8ksah87Cda1NEC\nVuYlthCxXJmWx1BcFWNcZunOCKwGTQCrcn63MkOrn6Fanrb5ZTk6mmR4wajA\nBOBw\r\n=df7h\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"5fe0ab98727f89c7c252ab587eb255c43c851d57","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.13.1/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.4","@apollosproject/apollo-server-env-mock":"^0.8.4"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.4_1556830503235_0.05240975650802304","host":"s3://npm-registry-packages"}},"0.8.5":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.5","_id":"@apollosproject/data-connector-onesignal@0.8.5","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"9c4255c559fcd1c184c334d5213c3d1451a50dae","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.5.tgz","fileCount":7,"integrity":"sha512-wUzVOuLMGDrsgzAodkd3epRMTrqlYWfd9Zle27cNDVwp5kY89Orue3vOyqQ6BgLjvGRYL3f+5K3fe2wlVsYSRA==","signatures":[{"sig":"MEQCIHbUKyGgvdkRGH14b6Nyt3/Pdnz2z+BWJ4rHfoa0ER4XAiAVgC5vY+iQJbIFaV3dUqtmjS+K3Jy3VcHDisF9ds6Acw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0wwVCRA9TVsSAnZWagAAcVwQAJ4lCuZsXAWfxsr71cDH\nLrBQHxdBh2jof6KZup0LFlaOfg+C7g/5qYK102C2efB15gfprkPe15SPU2qM\n6IL6LYZorlYOjmHToz/aSznWez8PnehW8Yh6ukD9GVlliJZortVw+aI+zJCb\n2ugrymUUhJ+ATqqiklGsY3F0q2TVJltLFjI+dc3njFaXhBiEc6XSRGEvydsr\nIdzapngLyyT2oltD/WGzydxgKECOoA4odnKqM8vhQNNWumRFbXXtspA8d8nv\nlV24bfYDAMC84m35HZb7EhocbsoaLzxRcQzQmLT5nSaiWh/DYh12JiDwWG1g\nhaXyBLpUEJ3Wm8cysVxrTETJq2tpmwmlVxl9qgiYFwMnvl1kwOynch6PFTBH\nCfE3QOT96pddW4cH59P8RF3OhT9KL9HzQ0xmOJNaJkvDEY7mnnrfpmUqg6id\nWZNnmMKEGwssM5b4Vy9L9egnZBrAkHEknmG/RPzDZi3JhJ93fyFsJ4TBAlCf\n/XJF6VIDE0/+Ci050amJYDwAmIMRogST0b4mHkTqw84ncC3yYBHV8w7tAGSP\nNXatq41FCWJcY3IAZRWvq8WnnbIF/VzF3sceb4ezaNvNXlItA3VkywG3B6f3\nCll31hZCDKE64hRUAuzW9P9LOsyz7QAsnjnMTpL1VgYK6D4CYvKCSNDo4asL\n18Sm\r\n=Y17z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"f1b26eb69e73cccc071d96cbcfee021e84917b52","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.13.1/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.5","@apollosproject/apollo-server-env-mock":"^0.8.5"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.5_1557335060885_0.8100599889659263","host":"s3://npm-registry-packages"}},"0.8.6-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.6-alpha.8","_id":"@apollosproject/data-connector-onesignal@0.8.6-alpha.8","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"fd526d169093f466c57f5447959a887c71b921f3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.6-alpha.8.tgz","fileCount":7,"integrity":"sha512-Msk98CKSq2p+5HuQSZSKdoCxfZFB3GZxlJ9JcnW203OKP4JxpotUWHpg+VtSq1mM8gn/XaCoBBcqnitc5QNukQ==","signatures":[{"sig":"MEYCIQDKG/JfkvfU32vNKiB8Z5Z8S8fE3ZiD+o/abyhr7rHLRQIhAKdyOGgvMnTzBpn2zNycybFHwBl0/TpTwcBiad0sitpg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2tV7CRA9TVsSAnZWagAABQ8P/3O8AsdThEecG7esnBCN\nZiQFb/BXCL0fYmzLaL0b7RItCrf8eGXHidlcGxrKeF+c2y3gH+CQtgoHrYY+\nVI16VuiZQD+HIvIHvtuIqb8HsgvWYMKLeck2z+XA/u/9R8H93lLM/C94r3Wo\nftteIerM/fE7GaJv0rPRCnrcg77+iCthnADT+oDibKC+BbtFK62zaB3XZu81\n0/JtnekNyppeZkowUjetmb32dMIbwg2NCR3kvs4POHa8o4jxh+u4eA0v9nAf\nvQw31QMoJVSlTcqI+bK/cx/s4UBwNXEoDXJGNZVtK2OeujHahb+jm/Fku/qh\nJTkoTyZgdDWcj8P6hqohP9uN+MuZm237ubI7Vhuo8j/0cexNPTAAK02fAX/y\nkJIlmuuCoPKhasc13aYtoBD6ns/a5QaJNpqtT9BsNOSWX+7tiU4RyKO1r2Yw\n1cvRUWOG0ZUsAPae50aMBsQOPCzD82gCuF86To8Q+3YoEAM0wKFTk9/uClwi\n1gQYTz/5nbZjOm4pxBEkMWzk5Vli8IwnXlRCd5brR3ZUBAhd7g6DFL828sDR\nv86pCkJZR7n78hRNYFFicM2qIkFX2sWd4OHqCCdbcy/owTOckzuB6AKJYPbO\nI5GzDxu0YDEAsa2azELB/KMFQwD8C8PmYTeGXqcimRVVGxrJBSHkCiwlI+g6\nEeqj\r\n=V/CH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"32312d193d482a14a517d85548e30670993a5750","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.13.4/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.5","@apollosproject/apollo-server-env-mock":"^0.8.6-alpha.8+32312d19"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.6-alpha.8_1557845370238_0.8730810808952851","host":"s3://npm-registry-packages"}},"0.8.6":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.6","_id":"@apollosproject/data-connector-onesignal@0.8.6","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"c776344ef192013e66fb2a62b247a6d2e423e2ea","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.6.tgz","fileCount":7,"integrity":"sha512-iWPIrWsO9A+VvIu9/1uYEVJ8efLAh2vCoJ6AywmXXxWi3FqqKMTQUuPqTRFu871+k6Jyx4mNmpdEPI2K5vXLPA==","signatures":[{"sig":"MEYCIQDXUBSkEONluLcdE65SIdhBVafOpnVY4MF2c347ylTzPAIhAKr9MF9Nse41k7XDSBhStgi2NYTeFMErDfma3YvlzzsK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2uDbCRA9TVsSAnZWagAAfrAP+wSCFV4nxrc2xtr0lXPI\ncsIq792E8PDbxdMxoXSbEavryW4P6diX0fSURTTcyEg9HovM6/pSUfF9EvfP\nEkykc2J9bf8OMxlvE4nxWIwoYJBGj4cjRKDHUYGPxFnOa3RYlUM8bY5SA8LB\nkVQYJOhEjwYQmu9aCnsLvAZZgsJLqG70ejb6e77qOF23C4mGq6CtpFvqlAtq\ncnb5GNZWNzw0qXPK/Xa4oHMX53yLLzwqoGZZTZDMUXYGlMTMrUMIHR4UmkB5\nlx793PtGwhDwvwTCgyT/gYEy8fImgmyjUICOWrut2++zPMAaAamwEmCbBQFW\niGd9zIOGhJC6YhZosl9y8ZH1EziWRdv7z3PUkBj9A1AnuJQrzI9VG8As984i\nYIUzOAilUb58tTkKCc324MCCMLlUwmemsvw8XnViCWVDkiG5yvfLhHmQY2zg\nJJ5M+e8ibOxzJTHaK1apsaLd5kzaXkdq2C4GOve5lrvf2uR1a2qvj3SE8Yxr\nVptRh8p1ZEnhnkRVZlB8QxabvLg8JTA4ZbfXsbji24OWItvGOz5SdjohnU3y\n2FHwIh4ANG0fkQxRludr7Y9F97PaxWSANbNZzlyK/QkVJiu/iq987wQRLMbB\nKGbCunxo9O505XdCVodA5F4ktrzYvTdkcZxhcC78Hu2HoSACsKW+9mNlMeRf\nbxB8\r\n=ogAK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"009802439cf84b81f924d1b14da224034fdb12a4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.13.4/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.5","@apollosproject/apollo-server-env-mock":"^0.8.6"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.6_1557848282692_0.8504224658324604","host":"s3://npm-registry-packages"}},"0.8.6-alpha.9":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.6-alpha.9","_id":"@apollosproject/data-connector-onesignal@0.8.6-alpha.9","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"4b688b604750689f9af0664bb24e40f265baff51","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.6-alpha.9.tgz","fileCount":7,"integrity":"sha512-Btwp0WF/fiDrGmFQcrjQCp0OnRfZwyXNggExM0ag6rhUbW2wMXYbuwncgWIHojkWxWPsUbW24VCdz95TL3rt6w==","signatures":[{"sig":"MEUCIQCh44mzAJTD7pUb66GL4jXH27qRjimWgodSA4NcyahppwIgcufydT+zk+1r+BqTIWm7DvTO74u3UMhAyiY6xFnLO+Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc2xx4CRA9TVsSAnZWagAAwJkP/3sJcr28rHJdm3ZUN8Ze\nMzfpJ7kKGTpdu22T6HiLNXxZaNwphS+1VO5HvF+XK3HCWsJZWu/zNfXPnGGq\no9BTeYVC5pNnxqm/6zuixb5JvlxXvpDlVKvfzTH941i5JyqpPUEcsg9+Bunc\ntTrqBx8kv9JkN0/uLYZnyCIbF0LpclNBToGWkjDeSDxGGwxFSUYNs+bw3Aeq\nUj2EZv+LOket5n9JfvNlFHNakrm6W+8d0YO4ulKAyGfUI9BWQwvVaLHhoCNQ\nE7EXezNOL2QMkaVOsRoGENAlywsSYvFfk0TnoacqQ71kgRyP4orJI5Fi486O\nwf7aRKHUxzMb5WRjT71j0ElpfB5h2X5eHCPn8I3iVH/XvoVLfJmAP09aTkLm\n7DceSbfu9nW6rPvlGZALB1+rFWkQLyQ0MvvOojrGOO+xBOvjZbuuvNShDlZV\nH5evQ3aZQ5ZVeN6M3P+P5PZv/NXzNzZUtWG7Esj16IRx64VS5MPqw7x2j0Cv\nWYDqePH+tuZlShlUQrzf+qAKwfrICd4A8tMZMsulQWXOp5xx+GZTNupsKMa4\n0mGpErBmgu4SjG2WbbDD/paM/kIDWbzYOneHFuralC2P/NsE97iaYtSF1XZt\nLm/OBR3mYNzuxQbtAZcHLAYvthKw73Ky9TGfYhxmLnUPq5RgyZatcbu+9ni1\nHHSD\r\n=uSJb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"523ea1c319ef5eb06038ee373a63fb4f0acb0d4b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.13.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.5","@apollosproject/apollo-server-env-mock":"^0.8.6-alpha.9+523ea1c"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.6-alpha.9_1557863543432_0.840601298792661","host":"s3://npm-registry-packages"}},"0.8.7-alpha.2":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.7-alpha.2","_id":"@apollosproject/data-connector-onesignal@0.8.7-alpha.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"792f7abaa914176738c1708b0ca67acd9ec7b539","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.7-alpha.2.tgz","fileCount":7,"integrity":"sha512-vZsJuhVwEOw9SvKqAJNhSgodABDV7KN6oTZiAdoxEqT3AYrbXFF1rcWAVdC0aOsXIx1tnT5MhvdS/2Pv4uGm1A==","signatures":[{"sig":"MEUCIGdGMdjgrHc05LtehX7WSmXkXvOZ+KbY48TO1/4a9kuPAiEA4jdI/9fEKuHzJVGscfpyXLqVmWo04Vxkr8g0i+D+OgE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25768,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3FpDCRA9TVsSAnZWagAAKJ0P/0bm67vgYjt6S3+sd6HT\nD6FSrj6t6DlOTLYhLIMgqARKJG+OfSPlq4TCqatA+giqeM43vdHWykXlZjq5\ndJGBXtH1O7wPbggqIgLhxjpE7mc/5mJz2t05FEcGpNDaVFUH8sQxeE3adoXr\n+Sfpds+W1iHL4yrBixcOV0+LrUuaO3QmdbujbqqOG+3Y2RrAIW+5gE2JpzoN\nuiARj4yIPsp1Xju6/zqcnjL6VsScqL8vmNYeH5/EOgFH5rni5ScKOeox6+lP\nNMxCk3gHcge+3FYnoGvoKNu8HploppQXyJec9ncKDV7q65o6DSmnpp/4bjRC\nWqcgPjYO3FxsucttCqEWJwsaX6Kdbr6MwoIF95z1uEqE/TDZzJ6R/4l9EK0H\nj4KdPS2upydBWMmCEIkxrheoufQlfvRKIQ30Cpslk8U+Ngp2IoGisSkpGccD\nPjOxA2aEfbX7OUQDKQPWGMgnArp8JLWKU15OTBDC6ANQUIP2+/12kwcC/OIG\nVrekBSi7Kz3KZDxtdglFh0q74CxSbvaQ/NSLB/rlyYslXtYAfZwSp3t9WXxW\ncVWLShjFwE5Abv2A1LmeF9HnZihFHPmnG+IfoDDvUfpSitHQSnBfgSdrrvDo\nMlvtvxlKVJeCPSoCuPY8JbgHqL/HVV+qKNtM2RXuSgx/Fdzw3Wv9jSQ8zAwm\npdip\r\n=NGBy\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b40db5c8f62ae69b1c5ff38d4eb71f53e7a788c0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.0/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"lodash":"^4.17.11","apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.7-alpha.2+b40db5c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","@apollosproject/babel-preset-apollos":"^0.8.7-alpha.2+b40db5c","@apollosproject/apollo-server-env-mock":"^0.8.7-alpha.2+b40db5c"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.7-alpha.2_1557944898840_0.8418435651928298","host":"s3://npm-registry-packages"}},"0.8.7-alpha.15":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.7-alpha.15","_id":"@apollosproject/data-connector-onesignal@0.8.7-alpha.15","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"19cc51bba6c7f402e70e35077bdf136caa7d7f29","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.7-alpha.15.tgz","fileCount":7,"integrity":"sha512-VmEGnTgxldWaJDkg3HVwFVIAEM5z283H0VpF85KxdeXn2/BGm9G4WuNg66l8bvPnaDPkX3ii/WEvntDIq3lnGw==","signatures":[{"sig":"MEYCIQCXZ1jHYGKZH7x481Zlpw950M7eVM7ekCFs8k8sXWEiiAIhAMfGVOSdC/pbms8u/gzNVhyqvlHOvihQBaN5HXb0DVst","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5viJCRA9TVsSAnZWagAAwe0QAJ1hleBaHRNqsUWzoOEU\n1rw4CYR3RnbG6wsbC4WnxQEi4DhGW5rcTHUrvKxSo/uvmMSbVL7OZOjUjjkP\nwTh30saOYofPGvVsYMkfmxmKI9A/Bh0dgav7z2p/eVNX8I0Hddp8iz30MBpT\nwtRV3NTIZIlFLCzvdPQ5P3WFP1O8x4PI/LEhsFXAaXqnQyM2dI3AnVpRl1Qi\n9uEMKw18S+JJpWFrt5jhhhWbllp0EbOdY5ZkCiduQV551SRJ0aCrcwSnXSeV\n9vMxCJ2VxdmLCFKUDTTvaYqMWXF0OQEciCtYNYXh+U40pwwSsN1qeYOw0uor\nXOTmU+/mu73Qfhaj/xM9fuKYaT8Y4bfoNHo3EA+BsTnv7BDbqIp56daYDQnj\nZYHuT9CfGjllOwVBJ1OQuRiSgQEe1fgdbsBNWKo3BvJtE+t7r+Hu8NDlnU3d\ngJqDfVurF98rqlWwVsoUqdNY1WXuQnAPP5+jluNMVjJsmPn6gpm0p2iK4dYF\nh+8I7OIUtfw+0RkujKAlV0/DKDBgwwoIvfBZVDRkcKsrTBoP7MXl+i+DYyr3\n+nL+tVha9HyZe03awe2UAifuWwhkqI7g/9VpK+cL45QyXiYoqAQUklslVibi\ngtfeQdjLFqH6Wg1phM3CQvKRfD34ZxLV5SkA9rdD9pAK/8zKqT1wWM5kPe2L\nTrc1\r\n=GyEU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"c1ef92432f087638185d1b298a83bd4e706130e4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.0/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.7-alpha.15+c1ef924","@apollosproject/server-core":"^0.8.7-alpha.15+c1ef924"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^0.8.6","@apollosproject/apollo-server-env-mock":"^0.8.6"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.7-alpha.15_1558640776314_0.4138573365023466","host":"s3://npm-registry-packages"}},"0.8.7-alpha.31":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.7-alpha.31","_id":"@apollosproject/data-connector-onesignal@0.8.7-alpha.31","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"5bf81ace887867ad766bf7c135e21126f855d967","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.7-alpha.31.tgz","fileCount":7,"integrity":"sha512-cNROyGiOhObVseNDg7LEzjc8RKaeL3E4FNgvIqwNMBZLmflKBWwRZKQG0fJr9ULlzpSVxrdd2aUImG4wMzWoRQ==","signatures":[{"sig":"MEQCIDWbUt97e7zkFOZ6pXH2bWNZP44a5hE2IIquhz3+9Sc0AiBQAhy6SRc2tV5MKgCjf15w6PiGrKzzMH25Pxx+5DAXgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9oPsCRA9TVsSAnZWagAAJ8AP/249i1oqh4CmHwyiQeyT\nTIhb1fQVQp/NKK2666hIcjWavYePb0IGMCQNsesMBvAerOH2bWmq33B/Jq7k\nZJWbprFd+BcERH+RFJ1F8CF/o3OkEHQ74wZ4fBAXQJsnfriCjnJxcUW/Z7BW\nRptkbe2xBXKg65thD5QQ2TagmW0NlWAAo1VNCdyh6lpQJFNmVY33eesViXt0\nIQqqcovaeVLSz8bKU/ypjX2+OZ5OvzTQGGoHYae4aiWL/ypXehpuIWQcvqUA\nd7n+NskatQ09CcSr6+wrsUbqF8oE6WCr8CcGZyHsxd6be4qRga/4o09GCsPS\nFOxarJDNA/g3W1ZdJ8jgP8ysB9vgMZhbTFttpcf6lkCUMtZe2SnenKj0CM1A\nOE+e395vj+Wzs8j9r7ltHWW0OaU5vnWxSA9TYqo6WvWxcdcbFjQMKi7MQHav\nD+WvEX1jXtXe9ZDfr7CtenWmoaHyCAY0A3FpVqSDChtywuD2YqH9txg1RfKy\nTr2hwg+0lRBRyNkZy4kJdCY/Fw24uGQFCj/7iUXmYHisb1LspZsidf0+ySan\ngAuKV6zr8g4XZNFEupoA7dMT4hV6o0dMEpCZWvqDQlja7QizlpoOECsp28ZO\nxUfswblALVnf/f3yGTygYLJUbT5nQJaLubxg2aAFbK9Mwt6pHoA7UgcAK0bJ\ntAfn\r\n=lADs\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b8bd92fe00a69639369de182c6472b65f36bb25a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.6","@apollosproject/server-core":"^0.8.7-alpha.31+b8bd92f"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^0.8.6","@apollosproject/apollo-server-env-mock":"^0.8.6"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.7-alpha.31_1559659500206_0.3020017263784973","host":"s3://npm-registry-packages"}},"0.8.7":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.7","_id":"@apollosproject/data-connector-onesignal@0.8.7","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"e920192050f72445607a844aa63d556d10f87355","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.7.tgz","fileCount":7,"integrity":"sha512-9S9OQgrHfp/wfktW5pBMIHnAwiGc/gpWTkzove66u/w3O6/4vqyKi1WuFr8I/X+Gk9MRsuUmuENzDOs1Oa9ooQ==","signatures":[{"sig":"MEUCIAgZBAfUTa7oGUHY1kLSbuDJ9YjZvMcwXn3mc1l6D8AjAiEAzlO6BsIJr6x/CqRju9fcAw2P5Y2Rf6HD+HKJj9bj/8s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9qjeCRA9TVsSAnZWagAAIAwP+wb4jjWeabQ+JDeYoBOs\n5EmrfF+QAM6ehN3zMvFvuqmO34+FDdBi4F3hZ9scpR4nBLh2IN9Z0Npbukpy\nMaqrvdQXqchgMuRWb7MITgYuUGk2UB14SpWgLr5y+VozRareTOACwzuCm0ys\nKJyZ1Uyw819c+nL7kU9ZRWpuxQlKoZexN6teyLrUOPQN9q6OGpeMXriuuPgP\nEQrEXI1YBKdYkQpwGui5jwzgs5ZthbjW3LJ9zLhO6GVJF/si6COBr/CexjQH\nZ6ey1YA7vs5kRWTeq9Trcm5ygXVpmHl/RxwrErRRMEzQY4f/epd69KSpdss5\ndfYWMKCP0gkkWo14hnpa7TfpOhdje9SDsfzZqK6/IKStywnnDDbUJCWnH1Vb\nfM1/NACmpIHTDJodc1/SSFW9SWGWNwYRRGGunRTyr1eVfcrHWIvF5XnXZFBS\n5VO/oWkuAefvgsXFEXE/gA1rJJ7/wFyrN/cj1zsjEkZIwTV98YByLLT/gn0I\nSVJ521DF78603MsGwTZAHGgWlX1ZSeTMvgACkRsKPUlCY13freM37oLuZ/7B\nq8McJTIi8MXpZNrwRXZU1RQedZ8r9dV911LscOypvSt3GKGtO/BCYIcEg9IY\ni9ef6+iC7GH01Rf91SAEIhTomXM+Kij83fS592xf5Ekef+8xDjTGxtigXC8t\n0FOr\r\n=E1Ny\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"d4aa23147e36e06a13e9667835128abbbf2042e8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.7","@apollosproject/server-core":"^0.8.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^0.8.7","@apollosproject/apollo-server-env-mock":"^0.8.7"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.7_1559668957687_0.8654793849354638","host":"s3://npm-registry-packages"}},"0.8.7-alpha.32":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.7-alpha.32","_id":"@apollosproject/data-connector-onesignal@0.8.7-alpha.32","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"f51f2cf78333afb9d4891bc5a3543bd19aac855d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.7-alpha.32.tgz","fileCount":7,"integrity":"sha512-7grmkfzQANkm633AEXm76oGIvYSruD13wCUJdkQyzEXUKD8RCl3jUxK+q5eOn87UCBxysOGnWBD2dRxMbTyjKQ==","signatures":[{"sig":"MEYCIQCiSlAaRjIkGwXllYlSanwQ8aXxSjdfuhgVSg03gWF/AwIhALym8/ilwjjltg6X5kejNO5i7dlzl/Bc9HbUT409MVKG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc9rZKCRA9TVsSAnZWagAAEKAP/258jb4Y1rwHq+3rnGN+\nXOLENf/cPH72Evcyti9cnx0rc/YcBX9nDKZuRzcPnDkLgXyt8YUn9QLRi6ah\nmtljHWdpHhg5nWauQla8jR7NNI0ObOPjCreEs59s+XMTsNLUdTmNnMIDw6fV\nXnPcfZTwhVQkqk6wbhRIw74eIsWJI0cAMoFXqFIVVFPrD/TBXFzUK1SsbI7p\nORHOyTbl0rU7GoscOClkL2USm2tOxGUryNYI/f6MuJ1hb6iDoHJmi7l5Ut4/\nq4HbvfhQ/E7DwuzfWDfbjD5fi0uwWPX5wjD4MI8ubk0bT8R5FD98+F/Bmgo0\nHUrOyfRHKlGezgRNG/Q5R1jdrihBy1haIqWFKE+ftQT4UcmxE1ZQFiudZ+8t\n/p2Z3SWi4H1lSkkvQNOHnU8LarkzzA0yzu+ei6wVYAZB1t6EiLNzhSreheVR\nPK2dJPlThkXrSZfRNY9w8V8MuMg4+Zvml+hQgkwpCQS8u9Fp2obTB8YObcp/\nGNXAbwBK9Ux9p/mfvANqpkcQyGkIaNPScaKc1hq45qheHW07skycKmJLlh+H\nLZa1sKspmvbF2yhvzJRAZyF6mCPqOLnTPwCxpuX6fvFpbXd8nzzJ7ogDTQUu\nBBBBUXkySIEeVXN4dcKFgGyzVdeO9Av1VPjBTbyQSBbF3O8ABLOHiHfVGAbz\nqiya\r\n=liGH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"3d65480e5d448a2fea5e41761c590f02bfbd6bb5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.7-alpha.32+3d65480","@apollosproject/server-core":"^0.8.7-alpha.32+3d65480"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^0.8.7-alpha.32+3d65480","@apollosproject/apollo-server-env-mock":"^0.8.7-alpha.32+3d65480"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.7-alpha.32_1559672393649_0.8397177920826149","host":"s3://npm-registry-packages"}},"1.0.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.0.0-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"288a9b7101aae11c36259e99d58a1107886471c8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.0-beta.0.tgz","fileCount":7,"integrity":"sha512-7UxUiJiqou/zlchh9406FvcUyTzWxFKsxH713G1A+SeIX3/l1I4eE2+KzJxr7ZWjf/x1ii0NYphgMEK8WBjYNw==","signatures":[{"sig":"MEQCIBSRXRY0Ia7fcn3dfq5nsrUk3xPLy/gtQFRwR6WL3pPCAiAIm5yO6XDW+5Xfj5hSRfAMtwo8do9enOtVxpQEWoyZFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+qkhCRA9TVsSAnZWagAAOLsP/jo9WzdBjzsz/cbhpQXW\nn4tHZLuE2A/UJX7MbTh4cce4u9v/IcwNnfGjbEw779Q56vIVW1jEISdYyLR9\n57mDaoioHbU3pvRzwfTHEBN/zkOYzHf52UlqQnen1Q9knMkm8bOcKKLKyeBw\nPiytE0u+6fcF8KnJsqv8xDJvk/gdetA90N5ueWQsNVMIKnZ/IqWWa6nV82Jz\nX+jVJePcQiF/UICEOe6oppvUupCCWWE0vkUc9RvNC0IZq1xW7b6GxMaf6Ysl\nG+MVIpInYzxKrukvSPoFZ8eRU/TOZ4sYJ92PgIoXkbzVeUFl45VNBPgPxKxW\nKZmV+3ee4r1M4DZrQSXcXbV6nippY1jp2wKwY2Q96f6OilDXW6mlgBnBsNoJ\n8MYMVLXmdQwnZ9NSS8MVdUu1Mk+1kjFb1bEQmDV0Gc4evl1c1HHvYYTjCmQQ\n7Vp/H6stCJ3PtQdXIBtK49JgVh54xnIujHD7BCkAZE/j1y3vElCA3qvMzjdq\nv9p9NcE3S6xypTjB/dfWW6lsOTFMqnr1qA5MIXSDCqnM2V5qKeFhMyHF2lD0\nZXP+Tz0GQ4s2o0s+wAZmpgE6cTW5ZcPXkDvK7hiLfxKELVASGin/uSSyMhDG\nKjuZWMgo+qyxayQecfS/c6nd2PiiayQBLi7nkzitpQkre2QO95k/NG5Kqze4\n2uqS\r\n=GkP6\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"e6fc007ace19751f8696e2554df3ad2df06d89fe","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.0-beta.0","@apollosproject/server-core":"^1.0.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.0.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.0-beta.0_1559931168840_0.11741875668345081","host":"s3://npm-registry-packages"}},"0.8.7-alpha.35":{"name":"@apollosproject/data-connector-onesignal","version":"0.8.7-alpha.35","_id":"@apollosproject/data-connector-onesignal@0.8.7-alpha.35","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"052c438b6f17ef0635c45be17f33b84123290fcc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-0.8.7-alpha.35.tgz","fileCount":7,"integrity":"sha512-Lu9q6p7GGPl/rUxPLXy4yUL9eF5E5T85RU5qA3VyTf4kWS+83T7132r4T5mCrULM/OpYGuo/4mgdOYwgYjNf2A==","signatures":[{"sig":"MEUCIQDGSCNZn4GydntHtHNk/RqdaCFt6xvnsPmGPaI1Ko91TQIgXqVF1m7i4gB/sP1RN3V0OCBwLAfPdqnHGhkLLJVyBUk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+sOYCRA9TVsSAnZWagAARwsP/21EeNru7xa67q0boFl1\n2o6iunXUxL6nwfekTda5EDdjUGwY7ybLKsz3pVVgSVEkNGV5slXd+0ei+TJV\nq/R+L09f3kmSfbm4FJgzSd1CjZg60YzETjCeWXOft2K59NjhwDIzoRKckuDM\nrufsdr8+/+mTDiq6jvAR2ZXS+yH8Ry446e7415ca7Nc+Bj57KALdhOHZFAuq\n4F/5NKajPvBH+Kit9Gqu9hf4ekysmTQgwZXtAHRGqtGMVvw8Is19tDYNMzqo\ntrMBhy3XhwVDjYonDK+ELicT8Y19fJncJGAkdcfAOipmcXEb3/hggK7nPhoI\nChF5ahbvmfyfwA23mQxJyNZ1Zhh0GyXmjZ096tzmHXHU93wL0SZbrDsXZN24\njjSCCWhqnHi4uHlO/hikiNwQ60WjMBLIf/U5BqfHqfDfQwwWvBepj/VrvewL\nYS74cTh+TK1bWTxt0bpEtDr4488f/7W2ejty5quCf+lqW4RpMF2BpFcStIrR\n8xyyYOmzRsPsVcM0adFsUnix4A/vKqugWZbs7+MXPl7+1U6LOZK6NbM/VJpj\n076Slj+psM8GjFt/bj1UuH11mPVanBugIyKCjhPr9dBmZ1tJ/cYsL1CpNPdZ\nK3CNmdMQ3+RVuIVjkN6wMoGSzbEMM4IQ1iu51zkuyYB5SMbvgj04SWwuMqwJ\n4yUi\r\n=FRce\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"4f1080c98fe8604c898c83979e1561c6a05d9830","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^0.8.7-alpha.35+4f1080c","@apollosproject/server-core":"^0.8.7-alpha.35+4f1080c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^0.8.7-alpha.35+4f1080c","@apollosproject/apollo-server-env-mock":"^0.8.7-alpha.35+4f1080c"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_0.8.7-alpha.35_1559937943352_0.3093250705690296","host":"s3://npm-registry-packages"}},"1.0.0-alpha.14":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.0-alpha.14","_id":"@apollosproject/data-connector-onesignal@1.0.0-alpha.14","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"76ce8a0f00e85b9649ba49e4eafd71236752dad8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.0-alpha.14.tgz","fileCount":7,"integrity":"sha512-tjoiy8/4+ewKnfb+INRcoLJvqhv3IaCaZWRblVvFYaL232skrRXvoC49/kpF9BJxPtgkM8tOGUwqHXyGc5CNBg==","signatures":[{"sig":"MEUCIQC/d7aTM3CTON8nrWBadeoZ1ZWdQNn2smIcRwQshLpKggIgPkN6KYxm81GwIuObSCXLP3+8tOkITwbIns2byxZiKrM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdE28VCRA9TVsSAnZWagAA7mcP/jiFaHNGvsDk9M+iYxI4\njsMH5A6JiipniaSdd714MeaS/mCvZUtT/E12yLbQE1vqmVBMp4LXN6CGu/fc\neJG/ZwcgjU/JQXa1vLwG/W9pHR9aAvRPgeE9EgMknV7K3xOAAjFUFl9EPagw\nUAk139E91ZVqkWAXrx/rBVKaAHX2MjARM1KM0mP33x+uHH9drTDWG+H/hcdZ\n7X5amioCovADAhreLK0EmFa7bcsUoD73tlHooBrWYY+TcuOmd0BjlhbkKIxy\nUDyiydKSbIiB9D34CZwqCLQIc7VP68gotrRf65IFJqfTTGdqPS3zbcGBw+ZR\nUlNQtR3v4Hm0mZ609JyCbwm8YXRaWgcp6FxuJh3FJa3NzCZ5pLOHXnEBTgvI\niio5j29YBJd6lmFUUDJvvbs08Yfy4GtDn05kl9e9//ni1DfTdwy6EmAsOSJy\nkB1JOhhmepWJAu96rJWpSqihZU2DPE/fPaLgDTmSdJeGKjbaQMq7GkYQAHMw\nHP0gVwZmuRcaPzFu7ZqzyKL+0rlI19KTppgTTZ9ZlCh9jcOx+2aIf930Aqh6\nG3EObFntrvuHnlkOUj/tA78wvTZPWBdu7IAsAY8RlTK4evxzWl/WZcGrQ5TA\nPPcd7DpWEQTIOnri2wwBA48AjEo4q5ZjmofwXxfEHtsW2lLf/8hy2QUtIjGM\nPDas\r\n=jNfE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b4f18cf900b14f625d425c547171d04ed475cea6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.0-alpha.14+b4f18cf","@apollosproject/server-core":"^1.0.0-alpha.14+b4f18cf"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.0.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.0-alpha.14_1561554708799_0.6872443853507699","host":"s3://npm-registry-packages"}},"1.0.0-alpha.18":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.0-alpha.18","_id":"@apollosproject/data-connector-onesignal@1.0.0-alpha.18","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"c229844a15a1c05362167df20119fd2e98eb501b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.0-alpha.18.tgz","fileCount":7,"integrity":"sha512-a9yFSYDyfs9XObnVmfTbHCIQ1r/8Qa7uD7qoChVxYoE7Ns+/bV0egfHYGWFFa/rmoIAtE/9Gia2T1q0RgQZopQ==","signatures":[{"sig":"MEYCIQCgCwnXt6z+OYllnlSNJm5F5XGiThN2/tUUs10pNaLS2AIhAKKZBmujHfaomvXLjEi8rgXG/8379hdI6kL7obj00qNY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFMDlCRA9TVsSAnZWagAArgUQAKAyJ03JQS9MVzxH519s\nTj5jg3p/Mcx3bg+kiCJmjEFa7HhxqrUHjYg3gIan1HcqaZa9jSQdbDeYZhZS\nbqIH7MJBm6Vm/st6RzSpejpiaxEDMWaK98Fg/HDuA8TuMYHKIQCuV42aHeZP\ni5MO3IH9Q8/q/UsCpQlaxEo3qWJTBgJDcohPQSyLOJa2irM36rdpi+vgOaT6\nR+0rIQTHsF/5MDjsQii3fWN3pfywKBM6x8pQtzSTeKkv1zicbKdsPwRqwv8N\nYFzShcrCCWsPQCLnp/MUw4Ya9kmYVImmWgNMzVSegW9132Z2jBfCD8iZvoY0\ndCIpn4sxzAGkwAOZbYm926GlktrjMBTZ8aH69dD6o2sien5HfYNHG7e1RK1i\nceLJAWRWrU3JxB7KxAWd2B0lCfWhhiM6OsZpydtcdes0EIFSi3rDjRmGbCks\nJ0O+37y7NSwn/no4o+h+gulj7GWCErtNAHNYGbw1oxzWfUK9yvcDEGfI4eFW\nnhJD8u7d0AbNzPrsrRwYl/cqcU3m5BZIq99Uxh53D+tjlk5mY2MQlI6LyYnj\n8YDV/BEw6lZ3zYKbvFH3CmAWD7W7MAnwcww2Ghsq9W58dwMVvRB1zkwbjYHI\nYpdTrkt6dqKx+IIk5aL+DsPyLDz2Q80yumzrfFRQVtzaY+ZulpUVqEIFOKTi\nSkD0\r\n=F63L\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"4ae0646ee4799af16728ba44ae579b4dc933b75b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.0-alpha.18+4ae0646","@apollosproject/server-core":"^1.0.0-alpha.18+4ae0646"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.0.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.0-alpha.18_1561641189297_0.6843910871642744","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.0","_id":"@apollosproject/data-connector-onesignal@1.0.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"4be0b187fa4dd6cf091b98da97bd4cb1921dba90","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.0.tgz","fileCount":7,"integrity":"sha512-I1fP/MA1loTniTIBtrdsfEjrE+SE7GW7ULlGOa9wc65b3tpq9l5qDwnr2Ax3TV+ZFchcuIfCvzSeieL1nmfk8Q==","signatures":[{"sig":"MEYCIQDWv5BnZ4xykZdZhICLZNJpR+IPk6vg/TqggVChy+U1GwIhAMbNAbEu9c50/hA+VCdl1Esn14ShMHUZ/dZHwOSoU0y4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFW/aCRA9TVsSAnZWagAA/l4P/39JS4gimiB6eJvX2Gq/\nzba3Fu983Nn+3ozppAvp3nwDBLtg/XlW0S+S0DKFMsxnWxP0DqTuaHG3SaBb\nCqzb2cqyS+gfe8reE/w2qqO2Db1cgCz1C2GUPJyJhxPja27bqJykOnvzZNk6\nCSr91cZB8pWuf8HY1aLwBfDt0wOCNWCi3//7PI2e8NB2qlclMIB4WcBZc605\n0AuQYhjnsdEU69NITdivM6kaDrEUPAMHr+7RCfeUwl6cQ2E5x/R6GTH248fz\nQyNc9SaHa9J4NAMTDyhwpJmfPI9tNuz25WcEftlUvc9aV34YlwGK1yHY+OVU\nSgdyB7pQQC1BMa+PppEjqIm6I5WnE3IZmAtLGYc5XOBD3/KYcNqVY+mSpk3E\n2DdzseRAkKZhbW4eHhkvjrK+tAjX1LjcaoBViP+P5f3nVpBbjF62CxjuR823\ngY/vjvjlWU1YHc1zSOYWHYmtTNWsIQt5nQzkb/LqGNCQ4dhXzPj5is/P7V1p\nEZK7yBBG1o7bmUVvY9vDY/4OOycgYIslrakidG1yqxthejKD3c1OgrggyfBX\noand4llYPFgg9fXGGb3BXond8zeSOYwUj8H61ViX+Cr8OTIGK/k71pMtx8qq\nw8XN1dOqCpAoSKnRG1hScBrRFZcPiW/oJMGNR/jPAZLO2BV87hat/2xR9Taw\nQoyI\r\n=AgS0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"a0c71fe1d1218725f19654d2d877f7dc988a6985","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.13.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.13.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.0","@apollosproject/server-core":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.0.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.0_1561685977475_0.31954544721060185","host":"s3://npm-registry-packages"}},"1.0.1-alpha.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.1-alpha.1","_id":"@apollosproject/data-connector-onesignal@1.0.1-alpha.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"d748bfcc66fdac88e5d5acf99f17dc588e30d605","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.1-alpha.1.tgz","fileCount":7,"integrity":"sha512-xGScrNfeU1l/uo0E6eEetS2VV/SedJfsCteAg431YtWOBe+jjHhTdxAPBp+eVDkpE4Wsfl6/TT5oZrTaSeAsiQ==","signatures":[{"sig":"MEQCIGKTJy0rC+sshmi2+dB5hqeyJP8hqYVLQZ/knQWj9BcmAiA8+6rVCNmOBYfaoRHYtoi1JU98BeqzusTkFjtqQTQOeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGPpQCRA9TVsSAnZWagAAd5MP/2GK8ef/w2MM1NbTK5Sc\n8peiKXTO06j/atMtLUCcCpWzcI2gQ6nCPfdIuHMulm6s8D2EcLavivMlgbyc\n5P9hngzZNsKCc/gm9KFzJQMJ0lWbA8zximtFxp+OqhhkMMCczJ6N6zga0lx3\nOHNKxHvX/fOJdFVVEBuvIuM7TZggflC6bhOjiIFHX2bkbjNieVCH5QN6Pp4m\nvtqrHPQFwKuC20SAFLWqrOwg1DFKvOFskZ78WB4d+UhTbfvHICK9ACWhkRfa\noIQysRYvqOlqESbGxQLG57Kc8T/w1tOBP5oChAVFWgwVZPSF7K79GexMJVBI\nv0v2R1KNCOsUcpQ4Ch/rl0MX4e1xf9PJCmPeITkSCb6sPZL+b3grla6cumk0\n0FCeXY3byKbl0LoJ8M5VtfHCgCeXSAW6ZFcDs8GF6k3b9fUV1Vq2FVEBXKZw\nX+skrMn+hOY4TEfCEWOKrTRJQGpo+BF18JgD1oZj3q/+pDmZ+FyhlzC30TNA\nty8VitzrMIJ2PTWrLBsfXYENOCg20NU4DyIJmOJC1TB3im5Oaz/6RV3BJOwx\nNSZvjACx2gG1O93bnfsih0C+hV5Mgt6jQQA2bpTgvqTTDCKSGKaImFheCvx5\nRtnXUb2H+UsJnGjT3/K6I/DXLXNshnTpqHK7Gokzje7wCQ1dNSkCRwtfrRuZ\n7sK+\r\n=6kvb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"afbdb850ebea0906f28837571e8413bd07744f12","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.1-alpha.1+afbdb85","@apollosproject/server-core":"^1.0.1-alpha.1+afbdb85"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.0.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.1-alpha.1_1561918032465_0.848465403829052","host":"s3://npm-registry-packages"}},"1.0.1-alpha.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.1-alpha.2","_id":"@apollosproject/data-connector-onesignal@1.0.1-alpha.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"3140712b9c674c78926116d9e7005b7e6f613cb1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.1-alpha.2.tgz","fileCount":7,"integrity":"sha512-dcRQfnL+pM3d2LFea3Aq5Ac1LzfdL79Vwzp8EBxwESAuinRQHfwEZ8YyOn4GlwoTlBSI5b9PUoO20t2JkKG7Jw==","signatures":[{"sig":"MEQCIFS97E2cVNolZkd7RYhRx3Qv5L8ZbYhF/BZ3gs3OOwJIAiAqq4U9fQHvMxHkYE40lrvczXu3N0rbti3dywT7m42pig==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGQJvCRA9TVsSAnZWagAA7aMP/1OHFs5mfpLXfMdjH3cs\nXAKrwjWvoweS1XrDser9ko6ziQgbfphrsC8bBUOER6GBLo+pnoSgqs3qBFpo\nZGIdK/8GJsLDtLLnEehjhIq8FEMczF57sqLC/Z4oyK4vMIjQ/uiYjTj1ZCTF\nhMhgc3lQRM1jgWKkhosIwmom5LzTFc/vZY32D90fYz/HMxqGWfEAu2zt8bVt\nJHyNuY5IZkekrtHCQ0CE2ZK0CWLkjfIkIQd95Hph7+vtI8kCRcj5WPiJQlyI\nkk8T3LQEJ5tD12Ffe9eA2yoiha/BE0mDRF6D9go1E+aHrXBchBCzwE19jKiE\nenFrbW/JXW3r0pA/sxnyaR7RpFQ+OR3Al5+p2TarBPVtP/VlZSmixXYIsHav\nYVcNbnH5QCqfTm5AyplvLuGlEBR2tPxQm9HuKwzvbKnWlGOZeFpTtWvt2J7F\nI5ZC1GaPNzv5r3E3patbJb7ZM8WaFHNEUhGlvCpOfbSiXuwmufQRSKunRX60\nsucuN5p/ccT1KyMQrKgO3VamItXt0x854ruhU9GJQlNUoyzhqWDwoi18L/qk\nzHtqmYNlHPa2LAnNbC1p1KPp3+Acqlyb2fUSPHpBAWArNDCD3zJ+NhPwGiD0\numtE+JhqMJIRkRP/Jf4eiIDUKmqiWiKXHNhOu6FUr1Okow6MMcmlft13sgBD\nJ2YQ\r\n=RPGF\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"75dd28ba8443d80b09d64e01dcff2f62526da900","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.1-alpha.2+75dd28b","@apollosproject/server-core":"^1.0.1-alpha.2+75dd28b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.1-alpha.2+75dd28b","@apollosproject/apollo-server-env-mock":"^1.0.1-alpha.2+75dd28b"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.1-alpha.2_1561920110616_0.8199151085177534","host":"s3://npm-registry-packages"}},"1.0.1-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.1-alpha.8","_id":"@apollosproject/data-connector-onesignal@1.0.1-alpha.8","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"4b47c7283d5326468c7650b15615f785ff0de70e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.1-alpha.8.tgz","fileCount":7,"integrity":"sha512-oISxlzSKYiuRaC3YfoB0Akp3zUOSBzTrxI09ZE92z88Mc9QWwWFfYK89je9+ejdwjjnzvwTWxmkag/kZoW0+3Q==","signatures":[{"sig":"MEQCIDTPnmuElSHKqQKxN3cu77W0cqw30fjz5aMslgNABK/5AiBwZjMM/ygG9TqmXtabFVySJnQvMg2g9Iwb1H7G/V88Tg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJirsCRA9TVsSAnZWagAAraQP/2il4DY6j36vXeov1pe/\nIfleeGlDUhytWz1sKf9Y/pbu4GygepZ9IAt0icbeiLXB4NSwSl1fvXCQI2rV\nPuwd4JTvY3CAedC5HZ65qo3JTdsx+6jNkUj8Z/7QufKUWGwHY+TMdGKrUGWs\nGB0jJ1M6H8wApIbz1krsze57S3cjVvDgs4hmAUPW+nGoF+vi1tmGAzya5eSr\no4XIR0p75Al4gYAjcjeNyuJD9oKFDYLcpOveyVwl2vGhiPJ8xh3/615O6WCL\njmB2Q4tcTeSoUFAWVr/hMQDGgy5Ooei9+SDLyBVWtEgu20/+nO14HbH9vO03\n58orpuDP5FGiKYZRBf602rHkichvEHCwRzVZrtpOdX9v81gBYVWHQ96b+gua\n8gEXLRvenqgCozhvO36hRECmjaUwuwS734+ObIwd6N5IXtyGOuWDG4S5TCO0\ngm866nAzFdY/EbHCiMqb5FcvsuounrF7qBpD3NxHw4MUhKX4DKehlMXtU+t2\nVCOdS8XCK8ZDeHOESHENRXyJM14YvrTtuOGXFNmiEeLlhlR5MYSvEvZIZxsV\ne13g9ipwR7mBO8Q1zokZW1OHszsEwg/ZZcc3Zy+c0S4DAdDZonW1q8XvXz1f\n0qMZgyd00kObYn64ELsP5rYzsaxZePg3kGOfv67Yb0q8uaA8RsTzXcYcog4V\nfKwF\r\n=yBdQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"5e15830fd1c798e6242498d1579ddedc255e50af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.1-alpha.8+5e15830","@apollosproject/server-core":"^1.0.1-alpha.8+5e15830"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.0","@apollosproject/apollo-server-env-mock":"^1.0.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.1-alpha.8_1562782443624_0.6257554633268363","host":"s3://npm-registry-packages"}},"1.0.1-1.1.0-beta.0.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.0.1-1.1.0-beta.0.0","_id":"@apollosproject/data-connector-onesignal@1.0.1-1.1.0-beta.0.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"fa83e4cb6b8b3eacd098c6114f8f95b2cd37dbb7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.0.1-1.1.0-beta.0.0.tgz","fileCount":7,"integrity":"sha512-kFmMfUz9QmcroCmFg9I6tKGZgp2YVZ+doOKFxJF/HrWcW+NpqOpvOI32PB0Ws2qyQy4Vt1pt2suznZx+WKD5dw==","signatures":[{"sig":"MEYCIQC9ypZCpU7ld/Up6+TQwUphXAo29dSrxglpLMune1gO8wIhAKVuGG6a/+UhEkaVv8P3wk51ajoFIhe9tTDWLQ9EKuTZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLhK1CRA9TVsSAnZWagAAIHkP/R92G2nle13vZzv/qiCk\nyLKNQ2ubmuVyzzurWEguajth3M0wUoz/9x58LMkYw2nKKW9kyn7HcNbmHx6a\n/EP82EW+EHI3nu1/2qzKSKDHF5Bicf6HuHB6YH4PIbmqM7DeayyWrdy/2SLY\ngpk2DVO1DYbO8Npqn9B8ODhY1H/Yrwi4KolaZUArNxWw9NEwQ1B2+LprayUU\nh/n+v9had2P/vV9/J0AmA76oeSu3WkjQK3b9Q9bub5gYc6hZg+C4J6oP2h/V\n1lky5PTIA5GNXFzMXG8/ul8M8uIccFE3ZT5PbBn7pcPyb+hXIy2TVO+oV4GR\nsFcU6xMpxESoDCP+wflFV6rkl8IoXOYML1shcvcE9WkhCj4nU1XPL5x9Dbg2\nZtz0Y2PYiQVUpx1zG/5xqfXbNeSfUepbjDdAeKAgnVIp9NUVlsHPb6vc0COQ\nKddCoDunwpv2CnxMQDpGHB6sU5HUPQiUi3dUWdCSv/IGNXbrdguJe+ano7XN\n2wfpzdkflZ4wjLoaGUyRmjfd2soDY/ErF8FzK5dbHgDK5S2aO23QUAwVqOPB\nW2QdgBRhMYhgRQ4LZIJCxl2KheYa+Xepv8G7AU0WJiMt5lUBCk741RJ99VQH\nP3rWCkpvUyF/Va3UfOB7wvkKJxvXFZzfZ7tl6hTcotonF6WFFx5GL/nKI4g9\nnWtP\r\n=WBHV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"8e3f11fe42299602f3b25f5791b0d83314177d35","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.0.1-1.1.0-beta.0.0","@apollosproject/server-core":"^1.0.1-1.1.0-beta.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.0.1-1.1.0-beta.0.0","@apollosproject/apollo-server-env-mock":"^1.0.1-1.1.0-beta.0.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.0.1-1.1.0-beta.0.0_1563300532992_0.06069860454306686","host":"s3://npm-registry-packages"}},"1.1.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.1.0-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"6c1a66177aea9724b1a5f814676edb8bf7c3eb4c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-beta.0.tgz","fileCount":7,"integrity":"sha512-STxpk870OrI4b8CDOKFqfE5ab32cbztMZaDo5OoLldyE/JvCNGjupk0cTTVXRhxOFiX6YgkB8jO2ShpmztOK3Q==","signatures":[{"sig":"MEUCIQCQjE5m4BeD0au+XuuTCgZqWHfGKqXooCDJ9nek9ConFAIgOKhJ1WxaHIKEVmn0/lx4TUtr4l2MugsupikKfLjTUdw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLhN7CRA9TVsSAnZWagAAHOEQAI4AC7OUoOK0NNcarbmH\nVP+S8zfZIUNr92us36C1H3vHN7d0Dhf2vQDeZ4BcLT8O7PjKc8t1b+dzfBUB\nUiBhDcJBGDe1/hVdlynzhI5L+NKToenH18DFWUsqciX4SAhrRlWAkMG+aN4i\n/uf2QWrAPXfTLWo3RzqbK2DKF1VFkX6jrCJ/Bc9LNz/4gE1Urni/iifGs6MU\nQIOxtSzMhq/UyznNt4NexK83TgbFNSWuRefK2iYGExzOwefg+lGN6Hdmjhh0\nLK36kV+by8Lk6BFq/e6Hv5bfveq5xlbDL9MjJ0alnsbc8l+JClROxgN0Z4JJ\no+ZlhiRKztmfmRIfoHReJ8hvQnD5YfkXcB6nJo6Y8MqhdLgdDzwTO46cU0Nr\niGpi0VSZZKCL6hMM3e9c8KN6vqZXBvS2cTMkEiMeLhVnVMKGlTcgGTbkRbor\n6fAYqK4Uv+umk9DCQFCgaUrHYpDxMg+Pl8g1f8B2HvDoVUSP3Ac/bpgtra2E\nL470bsmRV2ckRgedrBHDMkcOnmvXYNMyHn7uGCX2/mj49/PL2iDcOnFZ9I8p\nFfsCw1acMFz0d94zphwUf8XaDCmJABr47waGzwWfiTwGzT/NJYlkrtmD8JeX\npu9ZspfT3jBEEY5B9OoYVGey+s/p9kMcPWscsGkKytKAOU76c325eNpOJRwE\nX7DI\r\n=q0Lt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"bbeb5c282dadb4ac458078064e57f3f7ddd7a0ff","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-beta.0","@apollosproject/server-core":"^1.1.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.1.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-beta.0_1563300731211_0.8559238443692956","host":"s3://npm-registry-packages"}},"1.1.0-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-alpha.8","_id":"@apollosproject/data-connector-onesignal@1.1.0-alpha.8","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"fcd8f3511fcf8da9505d8538af69cde0bfc516a9","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-alpha.8.tgz","fileCount":7,"integrity":"sha512-hOyOChEDScNon9XWhI5e4uh6SybA+6+E3hfEbm3/MnuTj9mK7tSs+3edHfPnbC2WCjhKdts5drSNJ4za1gMVkQ==","signatures":[{"sig":"MEUCIQCEaO5NhrWa8Vef14HiChs96oLhZX9jDOFoO/F5osjA2AIgfaeLo4a8JH3Vzr3YJchNgtLUecl2RV0g/8eL7n0BcJU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdNb3KCRA9TVsSAnZWagAA+ycP/jTYFlkiwrUofuAN3lLq\n8fY/W7F1TIQ7ZH5w50sO/nrTk9CkPuSyd+GiumYnidcAR32gtWhh30T/7Gsv\nRff2aunfW9EYhzaf+okXDQNppFbYF4hoaBMXFhZyUFpNcioMz1GJhUaPx1Hq\nuUw/8KB6Eq/KSbdhk4D40IY8tQeYhV+7SWrlnhT+udGuS5CJ294wy3dzpwT9\ntqbh+WFwqOM1l4GwKhFaQl535TRlO4QtFF0TEP2uvNkAIcqbqB6ET2t8D2WX\nlqM299tCIC4MityCpWcFXuk9h1jsMH1spthjRg/dvWTafPulKNqJgda1KD5d\nD9onLeHS1QSsJ8kY6pG4J+5F3tsP3S08TKt5BM/Dy5hVd94SoVzoFtVwlezB\nYZ0EYvHjJK2StjL1red25WCHjBI6hPBFM2oRMk8TwHac4T9PVUEK0+xwl4lQ\n/KiuFfOgjQks75LC6bUpZ1vz7oDDw0XODXAbggco1Hm0QDEOLwXk+JYkz/uL\nW5/6h6/CKeFb0SEfP6NU+mSQMqpCXWtHUcPZ4QbP9vI1FLkjQzhZs5jH/H+j\n2+Xwu9ILK16LNdFK61LzrvWjFCX6o5N0NApyvD3nlQUtMiyJfQalZK1XncIf\nD3UMGBpH1/YoLQv25zfZBW22B4w0Xmg6+ICu96x4xIwnv5qHmnBY7iqsawTE\nNxFa\r\n=Lzh8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"dc2fbd2a6b3ac408b7a66d3ccd867fd8f27c2af4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-alpha.8+dc2fbd2","@apollosproject/server-core":"^1.1.0-alpha.8+dc2fbd2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.1.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-alpha.8_1563803081589_0.22493674250488205","host":"s3://npm-registry-packages"}},"1.1.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-beta.1","_id":"@apollosproject/data-connector-onesignal@1.1.0-beta.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"3a1588224bd9f20ec82adf76cedd8603c4a9a267","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-beta.1.tgz","fileCount":7,"integrity":"sha512-2TlbavUJq+4PAWU6lta0b/VTFKkylKqfMA3vavYPqo5M7wZHZY0PcYjhclqt7/nf/siscmlRGZh6gXCyNP2GBQ==","signatures":[{"sig":"MEYCIQCOjBaK89b7C4bGjR9+2AzMwakqn5g3vpbnlEMyPpCrGgIhAIrA28IB0OwoGJp+sR43sNnz9CKQJJP5aVYntu4+1YI3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdPummCRA9TVsSAnZWagAAd34QAJAjIb9YqB/LNTIDRKKv\nX4xYsg6fJgDrXZcRS0hdARBDdsraiPhob5Sbx2le9P9BNDNw0zQvlTMSZCJ7\nUzoOy4P0IdoIsWt+VGY0Yd4YYAYdc0ohN6B3OEMI/RVMskJRIFUMwEyS9b/y\nKtbRBGmd+cHQBheAoQAZDYEI8oA58CZDMGDGhKrirLCTx56XMQHfnsBM96m9\ntIleh0Z24SNEN3KLnc526beLk2lrsovjQPiIiJtkaAYLgJLBdWIqI3n9+NsS\nTFVayV9+hUYTTYCZHkkbqq4G/mOes1UO8yCXazqIl5xivJGruJ1spNrwZb5Q\nz+acs/IeaTre0GbOUWFpJJNnOsemqEbslLMlGFFJ+eQRuKs4KZBuPNoxfhR3\nJtK+KsH1DFxhu42EONTzmTwtvw8CgBLDO67B8bTFA/2h0MOOOmbPgez/gUgd\nICVTK62eVWlv53Ic9nmb9eHAmBNmxs5fMalrzhDIKb+CWD+sc5TNOYNpsqHV\nQn+nGX9sTXBevbs2VjP+8Zjbto3Yjx+xjL5LkN2JYP3Lu8wFwoOwDXKldp64\nwkk7FxjvOBjWjqyisgemcUIf73sycJWYCpBKUHuvaDZyiw9q1peBpMFfQu1J\ndDfWxp/0VvUHvWi8XDXXI0WWGofKjZxUsxw543NxjgtP3vw1xKTYdmGdLEyg\neOid\r\n=mc+r\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"362e1ebf12a797044eb1d620689ad3a0eae6b99d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-beta.1","@apollosproject/server-core":"^1.1.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.1.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-beta.1_1564404134072_0.14135073543538845","host":"s3://npm-registry-packages"}},"1.1.0-alpha.24":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-alpha.24","_id":"@apollosproject/data-connector-onesignal@1.1.0-alpha.24","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"e5b117d32c4429a334a6dcef419cf6b168b58d20","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-alpha.24.tgz","fileCount":7,"integrity":"sha512-9ura/CGPCaFheQhqVQLOcq1zAT2aqc3BgTfDxbw1IS6BOFQl3zBwzrV+klxOs6LLDBXEoPcUQwyjEbJkUbtRwQ==","signatures":[{"sig":"MEUCIHnn8RrwHdp0zcgQuJB9aV1PveLCCvkqo6EQkO34P0zmAiEAjy7L/CELaQOjaQieq4IOi+tdxa18apBxgU5n6cgAucc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdPwBhCRA9TVsSAnZWagAAfoQP/2nPDDauAglTS5a2b7nm\nSpNlkAIHFSLrnR8QfpDLPDfHZGR90CQXxqJdXsheJnngVgq062E5LjW3uW9J\n6NwckC9+YL+oQb5qYXOBw3PRLnPP7wp5iFZPhaWHq+SQqvuboz2HusXygXLt\nP7mLvU0jgNE87Q6LGO4YWLIl3J95FOfw7pjssxZDFBp9lNu9r3JUexbeZouX\nCFJIHg9/rAO2oH8WaEgvk4qRqYS1rYuVYfm9ov2k0ASBsVhTFM2u1AUvmdfZ\nvjGctg8rIP75PA8y9urMxj1QsIYeM+VPtld+AcdyFipOmLCs6Q+uIGPZN3Tq\nTj2WjFJ8SfmREfpAPTIHtVtmouUqjZ8+0Xa2A91nbUdJGkadDS0ztoCU9RNx\nDldtbGpyZSwxQKtzzDe5dUyl3YwlAPxirNyd0utOSuM3IqXkPXjP9E8fZr8R\nTSfxVB/orX+1dFxlXfuGt0iwMPaZlW8UMOB76pI1bVJ807PL4RIUM/YmZgMy\nGd9u4ADC0VuiBKPKdfQ3aOEbOGCCASy2RzuDssIlkBWP5ILMwEGfoIOr6ViN\ny6BNmJ6vZbrVaV/7hsvHMeutujyFz8q0LDwaW0P03MaTBA0A4zkVkJodZPqm\nV1GBvaZjFlvFvbCoFGen1VpPWF0Vwkd+fud0kczfAsRXhS5n2fUu49iUgIwz\nfLum\r\n=lpXs\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"047683b50d52588d85d3314ae7705e69e769d499","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-alpha.24+047683b","@apollosproject/server-core":"^1.1.0-alpha.24+047683b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-alpha.24+047683b","@apollosproject/apollo-server-env-mock":"^1.1.0-alpha.24+047683b"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-alpha.24_1564409952600_0.6846091835916985","host":"s3://npm-registry-packages"}},"1.1.0-beta.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-beta.2","_id":"@apollosproject/data-connector-onesignal@1.1.0-beta.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a06b70f75783c8b57422f203b8fa54cb92450847","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-beta.2.tgz","fileCount":7,"integrity":"sha512-UFKIAgEZ+aEzHXaTsGaJDsyyZeKaWGHoOn5p4dZRZ92TMMmaQeY0z1kEMwsxH29ba+j3SIWbqBrvQWeYVhTSuQ==","signatures":[{"sig":"MEUCIDLR4scws+aektqnPh1PD+M6QweSxMUN/Kta1bysONiqAiEAuk9RKLTKkEk/tNchRi4jvkDdRFZGbFxmhntbGhA17Lg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdPzvSCRA9TVsSAnZWagAAjK8P/idrL01bq16y24rGXZ5e\nx888tasK0N9UvBlv9KZTkJNIarVNPWliN2TbBZfxgkziIaweqh1a+E5cT9MI\nTZIvYnnArNdcvKyQvbXL6b8yWtZkdaNDVu3J5MjFrRPhwAnLBGWACeVa5DgO\ncUlVYRy0qHFCa6K4eBVTQlN89YexEWA54G6xAypDshGQMqldTqCajEWMdRKB\nBrNJPqGHCipEklbG9A9cgAibrkO7IRBYEwJROJW1IKucHaCnPnoMMd+1UsUK\nCGmoo9kGB2o3KkZ2AlbmJrxzq8iBZAVQ55gjjtzpA8P7OmYiMzR+jLT6QSnx\nyopw6zaV7pe9LadUMMtLiyKU9pJt8Via5pUwVzPf16dCQcau3ZtWxTSmBnhe\nB3+UzGvegORiFMC5sKBZu5NaSGYqeHH2qcIrcyIupwwuCEN2XnFWmdQNKhiG\nthkovYqee+Ocb7igqJu3N3feADvsrpb7HTnoS+9HyzF0a/rmvjTFTcySvArr\nh+Ary6FM9UyrqNSJkakdU2Ng89Ts3Yb7yK36J9n5gzkTlFqT+9apthn8oKC0\nZzObtMukTuCV9of5TutIA6vAvHU1NTdAFH+Inj7MHrvI6rhhLbIsQpVLrE2W\nEFlBrvJ4o7s86ORVMSGp0Zow/5N+AI7foG7xwk7FYT9kukpvQrxramRVXKfW\nUV27\r\n=QpGO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"bc1b49564897e364fdd2e5f0903ac31d9cdcdcd2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-beta.2","@apollosproject/server-core":"^1.1.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-beta.2","@apollosproject/apollo-server-env-mock":"^1.1.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-beta.2_1564425169436_0.19642230190260213","host":"s3://npm-registry-packages"}},"1.1.0-alpha.29":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-alpha.29","_id":"@apollosproject/data-connector-onesignal@1.1.0-alpha.29","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"00a09c9f9da4e98b5fc618af8946a7a97ed8bbc9","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-alpha.29.tgz","fileCount":7,"integrity":"sha512-hYmNIidiPvo1yToaIgQDwFuzECIcv13buUe8RnxKZaUZiMq+2VMlWz1+AGfA5+UDHBbldJ+1G3m0d3WPDHK4nQ==","signatures":[{"sig":"MEUCIQCuRsyi2DKut5q35FlUHRnoaPll45b6jHosfsQVb2EOkwIgLUo+yF+VcqvJAzRwP+c4Tjpd0WIZVmNxv/38m5wfMzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdP0wOCRA9TVsSAnZWagAAI4MP/jgoAzUnJV215sRPqSSB\ndjOnGLp0S0/cbS06oY9XqA1jBo9/krMsJrGtMzny/FuHGY5cj7p5QDOvX7HD\nieyj6hL/HgFwI+L5sRFOV7nLsfjHfOeWt/pM++lKTHuwQEdMAZjopUbzxrD7\nb8BRtNuwdUxEGEEUnzg4JiWu0L+Woj+qfMvjpW+HM460LOhdctYgSnWKZBjI\n0q+zTSVQrGu2dbYpGYk8lma4gWKj3cj7AP4G5amVw62l4WypNmv3e35RN4FJ\n/nHvSuJjvM+ZoBTjk1gZ49F3iLdmE87qNWYI9wcFpTCEQWGTutILU7J2N+iN\n3KpgaqW0ciwAYdZFnbw9OOslRtEywVWawcMUhXCDuPQ44A/Mb+7L831XjZ7Q\nBnPSZco7qDVAui1RRaIAnS/A+HLLEFO+NWJUCnFkqNTKM2wLjcwXqVBu6j3S\nePEj9xNYM5iOafxbkDjs/iGBaUAQ/ZrN71mTB2X1TfBCxMBRVUkq666/DR4F\nbXypiWO6HK9w4KbLbrQWnjg9S7z+SNbZAvNkzEBZ3/f/1S6oVwah6KliNKBF\nBL+5E/f8cZ2wgAYcfUtm+Z1glFa/FKOUpZycXJFfq9Qjfsj8wBq/OgBy4uzG\n0KHuptj6rpjaWzlOsiYRMyrqBvpsdObpQSeUkh30A+AZFqpo/5c52p+tFQp7\nYbRB\r\n=mUAi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"11b7089a5ca331af03e86bd7b1278922700524c7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-alpha.29+11b7089","@apollosproject/server-core":"^1.1.0-alpha.29+11b7089"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-alpha.29+11b7089","@apollosproject/apollo-server-env-mock":"^1.1.0-alpha.29+11b7089"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-alpha.29_1564429325590_0.040626785419719535","host":"s3://npm-registry-packages"}},"1.1.0-beta.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-beta.3","_id":"@apollosproject/data-connector-onesignal@1.1.0-beta.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"244f5ad1a111a83e4bbee79a649c928415b924b1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-beta.3.tgz","fileCount":7,"integrity":"sha512-DeXfZ/CF1PjDPrrkQ/uJGf4xiHYoo1muHL4KjlseTgm6BH0h5rN3lvXHA3pFjdoJUG42m1ScC9Mlp33ZvDAY5g==","signatures":[{"sig":"MEYCIQDzE2TUV4QuZlBrY1jVTBq6dl1h4yEJ0WVwLKCDw6C8xgIhAKrKjTEreDsRHLYm6mVDjNwhleii1dp5pTsLqAPeuwnR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSC3GCRA9TVsSAnZWagAAGOgQAIA2MYAQfYFnYtBgKd2/\n/MRX7lhGc5L2vLLUN+wryL80FrzCfdP222SNE+V/L6IvS27atjKwF0QoEVLN\ndqg+SyLZ1Wkk3TNnG/5DbjxjX4xx2Gfn807asTYwsLkyKCzY/OFCmwFrd/PI\nlvna5otR3Tiqesowj+PNQGSxMm48z3bADZt5ql+G7kMQwqvIrrDSrQQDvC/5\nDmLnKV6QPAb0Tu6Cm9dJyDiaqSyGD9pOWKupG2y1pNkfqq0kRg6hsdCPzDwv\nhIV5ceE9qnS9/t46swesqVxILCSUFJeGBvHGWKtkP7YceEy+rkCzqC45ogZw\n0C1a1ttmdUhIMiO6OSh+4ZpVVirVZymepfNq9e7q9aFjbLL/t09pAeLtR9rp\nHHm22b38pbA18W/Uf5YbKJXL3plqtdjRaMOq2MRjEPtkCBvF77c+LuqoN249\n4BrwcXj8uGut0iKZkXQtrWyJAgqZWC/0cHwFQY18hQqFKKvN50sAUXS57qcs\nt7zgHH4Jxvz1ZEpay/krQQ46goZzKWc1d9gXz0jaJSq5pD8Nuz8CvvhGFmzi\nQfWX6az0EvMn0SvIUB9zwyFQKKPQz1T/v3sVf/0p6yBu6ZgUbO4ahaYkzcjg\n7z32/TTy/Q4b/qEc35tjXUwTwspcKa1Oy9QxONFOFEUV374DN/AIcbI/ET2F\n7OY/\r\n=QeWX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"4b576373b56239af190042045b81ec1ec96dd245","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-beta.3","@apollosproject/server-core":"^1.1.0-beta.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.1.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-beta.3_1565011397302_0.6564663775293993","host":"s3://npm-registry-packages"}},"1.1.0-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0-alpha.4","_id":"@apollosproject/data-connector-onesignal@1.1.0-alpha.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"3b63d2f51893e21eef281e2683465dd94999278d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0-alpha.4.tgz","fileCount":7,"integrity":"sha512-zGiQtomPaw9RMp8C/S2jSAAH8Wra2F93xyecs7E/OTLrV3W12ZX2JrKHMgTEmQX3Vtx8EahXBu/ddG94HK4+TQ==","signatures":[{"sig":"MEYCIQDgjcBmj1jhdnn9XLREtk2+GCZVNHZRoNkGXwKbTFDVgQIhALWoLjZajn8aOt/MpLkDlwCcnAi7jJrAVOaz/sSvx04U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSkLMCRA9TVsSAnZWagAASlAP/3JvzD+eYBo90Q6L92jx\nTu/CdLZOMPGvuo5z12WvDZaPJoorPkDbIOCPqiZvBWtSmf+QuCPMaYDeQJTb\nDlm7ABPxORldeKGxc0b0DrQ1ONOB7qf/eUClc+ycmtIYsjKU01m4h7m16+xN\nVA5iRwZH7md5K50leCZfORmBiOvnQm4bR6BcGj3wVQxwPgx7vDJM2NoLJ+44\n9CYgmIN2Ogb3fiCSi7wnHbAq+4ngk3Imn5iAucU04TzrL6+xjmzaBRJ2UZts\ncts3IVZGuJpvSKhNtFVpEaE821OYbBI39IW2/Le35vEntyPKS+W+8gisMt4s\n909boQuu8HfWxpw7+oAnNV+gR+GPrD5fCqaK/BDP8cvrm0oUSGwDxU7TiY4u\n2o6dWrM5SUZ9ZhAvFxJ80njw6aHthYSLnn6yv4DQhnhdK9Vwofwmt8+IIfHp\norajXJ6YG8Eyykj4Nf5xAuihL9gpkKC27pjASmEKWHD9sESoNsEA+v07EEiG\nM36wicS7RzuyMdSX5TzqM058PVy5TgBmZFCpu2KnIPkZSSyNjbyjcUS9SDBn\ni2ldP84eUflFV64LrnCs1CA9OytRDPG4HjrXok8rbIbgH/FgvO+fLE5Va53D\n3f7Qi1uIR5pGGFkKnsx7PsHjU/JNk7khGE3X2SbvhynUS6W4griFYNmIkZiJ\nPSMM\r\n=/u2w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"0a7868b73db3aa5e51f91a5daa358cb9f73424b2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0-alpha.4+0a7868b","@apollosproject/server-core":"^1.1.0-alpha.4+0a7868b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.1.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0-alpha.4_1565147851404_0.7549084605230878","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.0","_id":"@apollosproject/data-connector-onesignal@1.1.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"3f24fac56cd92a789494c5b4eca8bfcb28939667","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.0.tgz","fileCount":7,"integrity":"sha512-3+qywl1bCXxVSI5RLXPTvix0LZQLECLqbtu2n8dwUqEUz63TQFq5xrJvlp/EcIXlRB2tMHO14Q2GUHZ5S5UUng==","signatures":[{"sig":"MEQCIHyu4JJgfkYaUOo04Jushy1JxI7HkieEsOp4GEbtlOLYAiBideHo17Kgm7SxLBxNUaMF8lDnL/GZzXpIfpWqDSvNSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVAjECRA9TVsSAnZWagAAgHMQAJwT0cY+O1ej3/12YyGp\n19dEDrAnlFvli1xJoCegAaQ3+k/K9eO7SBPjLgDptsHjIZzGsXAKh1QN4GSk\nuQup6Rhf7YqKzuYXy7rVAwNme2+gNPI5bbZpKOr0pKagilHGbNT7UXgNL5ib\nqd7j57Y22dWqyQXUy7tm/L93QaF8ibYUM8YTFM25omQenRcBepTTGt6V0kaF\nDghbMfkk4gR78m3SU+rNUeEutO5PX6sN8MhVaNQZUTjXNdMp/2+Vwddmm7ds\nztkFHisf+ZEzJws82Bh3imlM4h2QWdhhVC7wKKwKMb1ID1VSYcziZ0ChiPB0\nLZ4qPcGikjYPv4s5/m8PeaXAyNwLfV6Avg3XtW/mu0hlEXA14s/BF8QtDARh\njy39C9XqHorcN2jg1AYcphLMm0NiP1HWypVdb+KYXEfDtQKhTkUcfEocoaZp\nOrEGzDOZWQeg/JCbPgZb55cob1csFfbp/s+OyvmB/meR+w3K+gxTcXnikriZ\nu0+nJKklGmDaJLIQX5R1ncOKcsZg78ymEdJRWL0toiT4GE9LsaPV2vnfNaBL\ncGy54bLtNWv5nwGbiR+LHFRQJbFgGX0TLXxx6yDUhemYcf1R/yCk0fQ4cEUb\nWw8yjmdFaTlr5Cw30X8xkstc83xBZxRsZxyCfZlDY+hyAeS2+6grNXknFz4q\nqwEh\r\n=sVBZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"289b5ad67588c0b0d16fb89ba6fc3059310f4d70","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0","@apollosproject/server-core":"^1.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0","@apollosproject/apollo-server-env-mock":"^1.1.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.0_1565788356116_0.9639016257037705","host":"s3://npm-registry-packages"}},"1.1.1-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.1-alpha.4","_id":"@apollosproject/data-connector-onesignal@1.1.1-alpha.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"ccab008055e976d3269dbc8b4e68f469ac9f5ac3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.1-alpha.4.tgz","fileCount":7,"integrity":"sha512-haxElmBpTBwp516sKabFFgdmzg4VY8ttpuUMFdqHt+EftdB2JNLFSkOUPWT/W52VgDGljv9bDt4uHX3RbA7sOA==","signatures":[{"sig":"MEYCIQDOhzqojPZwQLPh5I7GyH5fvCsRh1kzg4XHqzh7AltEbwIhAKKfr35kA46xBYVqXOe4atmzxFFeJAjFe2y9nQalRQo3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZrW5CRA9TVsSAnZWagAAq1sP/Aua13dXyJ3pWd0I3urV\nZMSbgntw+LT1MSY0tCaVQ1p0PHlXWtWnvaUjKO2CYvmHhbwK5067GIIbE242\n5EGEYVXyqbARi4kJ8m+Axe5Lsjfei5KHc38BBQNUhKzcZhVPHfCzqcfIEw4M\nidF3zTY+CeHckpFfxhVs0X1B6H5KggxB9O8QetKsJGYx2zYRI5bUghIoriXU\nVY1J3czw9glXJFRVn14LlHzokzwIpZ4vSxKFOuW9PdGBAGccoGK0vDi0Zcqc\nINeRKjUDaAXonb1XNUtnDDZirqF55PSXHwFcr6IQ22DQ3/wxNYxUgqRepo15\n9p21U8jbfiztvGKfObga+8rJBFhcKYrJgRugLOyIJsrQDdW4SJayFg9c65Z6\n8L1GFnRm4cqOpdNJmGNXZK8IJNJb1xhwC0Pa1S7Wv7n5rE3YQ5D+1goxm3l6\nMZC+pjC+H6vj4IAGf1wMAvrS7qpqdv59RexETt5YHAqys/5btibBKDpwbRjR\nRza0ZbGCJobysQy77AyYVlq+7t6usrEVPuQZ1b0pqegV/7ZHyicAKiD+jn6p\nZ2DH5Q7b5sIjQRRH/w+p0NKQJbnttYHiRF7yC09JrxeDfOX9TE+QHBez2quZ\nA0uKt+FxdXOXdTr4eQBDy451gid7/WgVp4fXTB3Phhs84/1jEZ/FNBRQXGFl\niIB8\r\n=xKjc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a4323d7a151b20ccaf21a5e78b5f5a1271fefa86","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.1-alpha.4+a4323d7","@apollosproject/server-core":"^1.1.1-alpha.4+a4323d7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0","@apollosproject/apollo-server-env-mock":"^1.1.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.1-alpha.4_1567012280893_0.6005464473190694","host":"s3://npm-registry-packages"}},"1.1.1-alpha.18":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.1-alpha.18","_id":"@apollosproject/data-connector-onesignal@1.1.1-alpha.18","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"d383a58135bcc87dfc3de97e84f8d39bc8808f96","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.1-alpha.18.tgz","fileCount":7,"integrity":"sha512-mQFpCfQsePaQZfjaqG5LgVapsOxRENlRqdsdPJvB6GvlkwIZqtHopVAxfz+MtLZG39Fls5BsAqMSyzFA03FT+w==","signatures":[{"sig":"MEQCICpNXsYguvhjZZBknpkGKe9cfROh2FmQwH/+TA57pZ9WAiBOZLbCRj8cplOuv8FoVyBJcGcbinqcdDp0mjV/Np2rKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdd85fCRA9TVsSAnZWagAABUAP/AiylKS6OWc+5btftSwY\n3SLFN4vRKoaP01Wn7lXbYGv+5glS43JRV+/9gp+r6hU/yUG29QXKc+MQswMy\nf48i1itZYMsXOV8CrksHcB2R1NpYtDWdTCVx6aNq5MGRYiXUdM8Q9BZ3ifBb\n4iV4ebOFOEztEy7c/YzUuD/vY1yhPn96ml1M24pTZvBFvQ1gNp7vz0JF+G6N\njnoCoWEUA70QMSH5KxsEEBiJrhqjvGe76j3yYLVGzpB/45TK3NukzS+vcZPT\nO7/De13b2pzi2NghwAhb4C93UAcvfWf622Z1NzptXX0549TcUhmw/9BFSqL2\nVt/zQk4HMBau0eooq6d/lxjuMIl30dJvdrBj9EB9ppaOCBnNDh1Guh043h+M\nuWIvGCFfEdOcYc/YwQiGqxfpmG0Xe2FYCTINRxYnsJHtjSjZl8Q3gJzkvpXK\nbPDaa+uY2TNSf1GUrCTUyCtYo4/E2Yaoo8sgpmCn47R3uYRplV2YyY7oU+Y4\nzsQEAoiyn21NPFUmJSUKQBVxvEHRMCWX1GDWEHOE5IMGCBAtzw8vL5K66Ie6\n2oXq203LXjbuY5dK0Brr3Y44SshKaj6JzeSN4M4DnJFsy6zhofGO1z+dQfnM\nCD0xhvGrWMytNu5NDEQU1AoUGI/aYwWkiVxJdreNbDUWj8wLsiupHVhznywb\nKeQx\r\n=XC99\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"eccd30b57e68423fe6f4cd19788ba77442bdc5a9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.1-alpha.18+eccd30b","@apollosproject/server-core":"^1.1.1-alpha.18+eccd30b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0","@apollosproject/apollo-server-env-mock":"^1.1.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.1-alpha.18_1568132702643_0.57583336933108","host":"s3://npm-registry-packages"}},"1.1.1-alpha.29":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.1-alpha.29","_id":"@apollosproject/data-connector-onesignal@1.1.1-alpha.29","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"177efd22e10b38fa8c7db977d96191d2e919a9d8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.1-alpha.29.tgz","fileCount":7,"integrity":"sha512-3aKMS+6Wqfjdm/bBxTdPvJg5JGYw3zmBWa0uhr9u6PfSWa6BWGC3NQa9as3ugA1K1m5jHbNpSpQQ5KbiOgqJqg==","signatures":[{"sig":"MEQCIFclK7WQ/4MrZmo/vtIZFzI7OSUK2YR7tl1kxYYBYw3NAiBJ7zXIuN6aUFtlQYKC9+H7B1UGqCYWp8kuUqIGgiFJeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgmjFCRA9TVsSAnZWagAA8cIP/Ah6zcE0LWU+KYGILNh8\nR1HOonHmp0CVGL5SzZkcVSJhGB5sUjJ2TZ9vpgtKR5X1n+5V36k8fMPw0Dh8\nfBijCaacuKO/T3ZiTgO05WFu6a/RQ5nXP7eMaEDJhFdv4A5/cwi1ZZqTMQSP\nWEJPbR1opLs5//bI63ybtZ0GJQuS66rEdAIuYAhECVd0EvnRdoHQOdXmKBg/\nK+1y8O325jnUnMbRjpEOJKMNllo0xy8xDQmUNC6/xuAj0p6fJG/F1D8FHTAa\nBNX824g2oCPh2wWTvPFSVUkKBnbUJgAhZtXTEdvOKTyDvzhFxF/FeeULMSEk\nNoF9sbRzRC/iX7vlFL4kSW5omSJkh/zO/piOX8sylABD6mRgVQlRY6PGP5Vi\nbW8R5v0Gx868HSoOOiuYwQiDJn1BK6Zs8R0Xc6DpPq1F3Hcpu+Z35firYXjq\nBr6t/AaIaPdKfW8wCKZ52/AqQUmnEs3GSFK/L3Aa5eOjcmmxSXx9GfguDz30\n7mNgj+M4J/fo7bmCJDWRltYzKEK60euox9yE+RYwIcOnnUIHuYnjLl9hGKDy\na6rVTgDqC3bjCyRuAw09N5wgsN8xMi2KOEAe6N8I/ojjTYXDMkxi0M6auE7e\nb/hZ+aay6WSI6tMo5rWJJ5IE9pqG2YZ65ZYNk9wOyfYBM6EswpghWWRxrKg9\nldWA\r\n=waCW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"80f11156a01646553ebd94b45bd8f7b56ac79cc0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.1-alpha.29+80f1115","@apollosproject/server-core":"^1.1.1-alpha.29+80f1115"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0","@apollosproject/apollo-server-env-mock":"^1.1.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.1-alpha.29_1568827588941_0.9775230561358741","host":"s3://npm-registry-packages"}},"1.1.1-alpha.33":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.1-alpha.33","_id":"@apollosproject/data-connector-onesignal@1.1.1-alpha.33","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"1a74957a1a4b93ddf1fbb5d4b07618222d868842","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.1-alpha.33.tgz","fileCount":7,"integrity":"sha512-QLKOljSEWfoAGb2o54b3smsgcp1eQVP0CzYAWBA0ZmgTlhU0PGrD+Wb+8wulshdesy9rdBPZ/9xFC0WmTj00eg==","signatures":[{"sig":"MEQCIDlmFgJcvJCmpbaYd45IG99bWtJsRQwxcMrGUA16ZJ4NAiBO5e3nxAXtqY5WK0m42M5ZjXcS0Hy2ng22xqqaD+lzWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiRYsCRA9TVsSAnZWagAAnDcP/2PpIIRMcJXoHPBMI32z\nX2V1TJonetGHbnDLz1h/vPWBDbqGxto/6wFsLoDQa10pTsf0MjHRdRstBoPq\nPMObTykMz/hwsv7jRW80DM/3bv7OLuazCEhNwY5dmJVODToAQbyBu2PTap65\nB6NglfVMVjDa2Oe5lCtVzlPSneIreuXaVrgDkD1xNiPxy9pa7/SgnQkdyVxa\nOmIpbyjKeF6/0VvH3z13wzMJLoXzPvnUguuY/GXbH9ZvM6IfazewKDLmSMY9\npeMG8U7zm2QCtXInu0tPEVjs/FuvJK79KJLR9iwWxfyvRdiuWx2WD4sJt95E\nuHp8A8/G3DgiZnMNQC2QO2udtr+QKFIZiRdXGAMYccu3M3ax1bC4RLVegkNL\nHdMUSjNl0V1pXBt2lcg0FPlfgkbzj8OxWMVETua50z4osv0TyR2uV67sQ/5y\nqf63Fx9JR0wbQD0qzH9DzC8YQt+jvZgUBJQEuYdmmpZIUl1EG2CvXU0/vIoY\n+9DtaiMDxl1hqCU4Z9QG7yHJUT9LQErWf85H5yAGMktsot+EoDr7ArlHVTjS\n+HJYUqmLElmgPTdgEEwKpFXmfjEJW0DXN/y6NcN/kLENUAgIZ3lZLoftQdid\nRd2K08AV4QzuEh+wHXUWjkrYNzoj8n+WPQbHXDhaF3fqDF034KEZ6akVMQo3\nninb\r\n=XduN\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"7218ad9fced1eca5875bd40308a316925198a9bd","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.0","@apollosproject/server-core":"^1.1.1-alpha.33+7218ad9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0","@apollosproject/apollo-server-env-mock":"^1.1.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.1-alpha.33_1569265195741_0.34087136378594907","host":"s3://npm-registry-packages"}},"1.1.1-alpha.35":{"name":"@apollosproject/data-connector-onesignal","version":"1.1.1-alpha.35","_id":"@apollosproject/data-connector-onesignal@1.1.1-alpha.35","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"e9590000d2f4333a356b82d35c4aa733978e2337","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.1.1-alpha.35.tgz","fileCount":7,"integrity":"sha512-Iuu8sVPYzNCUjvWSJXRleXHCZC9+wiW7a4iF31FlIqWH+cWBQ9ZY2HytywmnWgRzq5PGbPnTWo7dqQ0tQ+zpJw==","signatures":[{"sig":"MEQCIHJ/2Xdy7b7n5dDqIp+atDh/asF9ciIutHdVjkbYuZkhAiBk32joptPl5IqW/KjC/xuCfB2NomuutJsaurcumgelEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiWhGCRA9TVsSAnZWagAAYV8P/1FjupFP1k/TBirMNfrv\nKr9I8Hb9atNb7QH1OjMs4WvV+OYaoGu0/47Sr2KfWj6TYlvjQVQAZbqJBWO1\nztU3JC2Ci1MYSGv7a4X7GpOvD7Cmd4ZJQbeaG+fekv1LPf0MhHE1EPHFfKb5\nXvKRQ1fS7eCE9N9vQk06tbHjeLRLfcrr66FMNJJ5itdXDp5+A2ulI2Pq5NA2\neppZxTmN/lr0Gpdc4ZKzigaonq6dINDtMjncGeXbRj5IsrjNqo90VtYNqgg3\nkVjyJbaW0a7sKkmYIzB/X0metLvh71Zs51g3Vxbj5sQIEkM3kgnj6Oii6oK8\nDZs6XsI0YtsWk9/Eq4dxJsJfFODicREAvuoDaxRCLhDIGRLfrS5pwbFNPOyk\nKDJPv2apfdHsHDGBIna3eoumKUEsY2gtqisJqZdmz+3B68glx6QC0mF6XX7r\nZQBROK1bR9VFcBl/Oq9mwxMK1cAGGRLX9BjQuJ0UquWsv7oOf1KgGeNWidz/\nUQna0F8cx2IQUqe132pUL40GEiX150N3JLBVuwZlEdQcPslxSY0QCS7zRlOi\nIwHAVy2RKxFYkuNWfvJYqs2G8vFBHyanjMmjAHy0m3w+kCajlcBdKxHA3HkF\n3nCOGoDICC2PGz7FgjHg36mTqlxNzd533BOoG4TftZki/GXNc4V7ELqVr62y\ngUBj\r\n=Iurk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b0913abd3c15445309aec0d41f87ae293ea9f613","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.1.1-alpha.35+b0913ab","@apollosproject/server-core":"^1.1.1-alpha.35+b0913ab"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.1.0","@apollosproject/apollo-server-env-mock":"^1.1.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.1.1-alpha.35_1569286213860_0.27919185371311883","host":"s3://npm-registry-packages"}},"1.2.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"2c86f32868d0c28384c95f132ce8c216da1966a4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.0.tgz","fileCount":7,"integrity":"sha512-9xtZ/PHj98uX4FUsjelUmEI/45TkySwd+9UKndGD485Ga85hmggO6onVKAOs3NyoKnl+QV47ApWEHDKBTCDM4A==","signatures":[{"sig":"MEUCIQDixGCizTOZu5hPsHdCM+pa8CEPzxjcWnDnslGKzJcpAgIgRFPT//K51dsRWyiRz58ojfBYs3XzvfSj0i3mF5T2F7E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdi3VdCRA9TVsSAnZWagAAifQP+QCUosAqB98fkE3WUsNI\nWeuEA7+4oQ4mVkCVVmsRZDwqBOM1zQfTJk2MdzBfwJEJfdxVa+cNvASGSDGk\nYG4T/SYhGIjErijlYT+xdCfI+kfOQ/F5EJnagyv62gtyy6mw8bCDoqM2v6AS\nrA660h2prdxESj+gPnc6cJwcJYKsAFqCh74k3SUJlLr8QoqfKPhdNsz30aGJ\nECz5Cm+a6j5QsfMvGXU99iY0DaG4pgIUCWm+Go9DFtQmuapiIRZFfDaw2txa\ny0kDChuxM5w/xbQjFVIUrrDV9AC25Ln/LswnL7b9oLFMpWlle/MeYfiqhXPV\nnCEKDUSS1OlnKXUDzGw9h2wtxYhWCit6r0OyqWpUMrFdXxGhDKqfP/Ddzhm1\nzjcpa0VGs111q1uMo5p6/kjdrV2R47hk9izZj8hDq8NFGCKWwM9asI9z4Tye\nn13LD5ikYdhH2ibmQd80x1t8daME3jp8hjojri1Znc/Jj3DbBf4G4Ty4J8O3\nEiVALQIJDwq/F/XkgLyf5rmJ7t2kUoPAGTHYnmJi3zwkYQltVz7cNWiWFlJJ\nyzyZt/cjG7oCFlvDg+vE0kbewFSMSD4VK6GlT8Jz8RU07R3BXvYUIyMd7PWY\nvUcTOg4+n0EaA3gg56L6hDGWbB2GcXTGE04BZuMqdH0PxdDvd1LLOqh4hHz7\nRc07\r\n=usYE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"ece86dabc3a06c47e9623b842ff53c2b13db2944","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.2.0-beta.0","@apollosproject/server-core":"^1.2.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.0_1569420636890_0.9716593187591307","host":"s3://npm-registry-packages"}},"1.2.0-alpha.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.0","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"ffac261342a637c62bf787a896957d2fe857e6c1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-GscVyXemRDNl3LJRFjBv73bcCkh4MT947xO5OVK56uL8QDzeb0ZaEGK34qgX/rxsDOj/WVE5o5jOXZt2gGjlpA==","signatures":[{"sig":"MEQCICVD2c3SqCwG4OXsKRgtwHWF07L5LjMmVulQWy9lggP7AiBng/qgeU2uwA7L4S3C5UAuGqJ96La1IvKc4wajxrNTjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdklCtCRA9TVsSAnZWagAAE2MP/28YkkEfCK7vyq1JbmRb\nsj7wjaZJ01ePVutL+zfElZUPkyCCUPW9MNhmV7KCAwo5HK9Bc2g5RA5Rylv7\nygh1ae1SQi9v56Pf22zmtJ0NfLpXBmStuY10gwsnf+PqqgzWPzsUvcZkd6gU\nnqbrmJfIcrKElTXLO9T3+e7gpQZQKLvFLxTscF9phCJ7Nn0LO71T366QGksi\nEMYNggU+g1FQ6ZazLfgtTEqwgF8UwTDX0dnJZnoEHUmp0zpNdd2YETuYcqPB\n/WqFDbwndt/E7G8OWoKnOSzsYqhslqZZ0TVt8bCplzXA3QSloirR5r1/yJ89\nV+MNCItTlWdC4Rm8iUVBCwJnkwi5JzC05VQxmM9rYoKNUT0SZCqeK92SUYh2\nhHKqbGlrwIfxBTXLYJDr75e4eDNHvv1MZ3YwC5mVITyzosDEKj1m7Os0qTRE\nUVVEem8mByX4xJSeQx0e2TrK3ZRHGPT6wccAxAiVltHgWzYlsYSlkbp7xdLl\nnIL00SAAxbQaOjSNfhMSqB8KoDO1kcF0NGK6PTUoH392sspaBbhW0tPSuI8Q\nMWYDWJLuoF1vMshjR0KJoApiD3lQg/eNLX7FXkgQ52d61R/gfuvbSu+n170J\n/A0AbqVFH5Ybfkp3UTTUOK3obaEjhHaxyWDoVGrMMIrF5/NcnNe+3ulzufmD\nDEPN\r\n=Zjlm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"eda59ff6e0db8ce7d2f8aeadc204f3eb64a33f2a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.2.0-alpha.0+eda59ff","@apollosproject/server-core":"^1.2.0-alpha.0+eda59ff"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.0_1569869996758_0.00462370344663543","host":"s3://npm-registry-packages"}},"1.2.0-alpha.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.1","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"c9ecff1466e0514f3604515a83683c81853d0665","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-atYxAlUhHwdiQ8m1LKTtI3tCkeTjZZn2jBMZ0Yq1gPOh7v7AMN9nh82msNv2x5gRU5m8MCzKbx6l4hKA6xxHlQ==","signatures":[{"sig":"MEUCIQCxY8kTHZ7W6cNnDs5CkwRfTgwDj8qA3ieVZLz8Ci2q4QIgVyMWDFSYJDpuFUS9g+OBGdmeZBPPu6/YVO1MueZGAi0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkmNQCRA9TVsSAnZWagAA5OoP/RpWjrwbCFQeYQyHehjT\nZP6MysT4/BXHM6xmQggVAbciAT64gXDnLcadNwgN1z8uKCPyWFYgeuO1TF+7\nlksr7D4rdVU8btDRQ2LYb8Di53uDg+PE/RPdhwrO9hMGT0iCt/hJRG/u5yH7\nY/q8p+++eZChH7VwPhvzAnMUErg1qpMW6NKZ8Pa3LP/uX73UDanaIJ7ajlUi\nwjlgk1NadazpdjPMhYF0n0riEKChM6Tx94gTLl6OQXmDn2nLvfJYlennQj7D\nUTwft9GphgO2P+OV4ZoI0lZyRVOqtjQhv0M52YDTTdsMJ/KK1MfRooDXFCA6\nFVeQeTOu9ezzOI+librcCUDGBLJdpvelmTICbQX9C8j1ldIwKi+SOIzspL3/\nkK5Cu4DAipEnfYKqBNd/qhV9JNJ/vYgCsakES4HIhMjOoUTHGUD9eXB45uqM\nn08MZi8ICQuivZhWeXDD3aDYVylWP4nIc/xXOP4tXEF3yMRsbNJKyRCTx5D2\n/dLlcLXv2o2H249hODsRbLartKiexPaoUfhN3N+3ipmiuw078oyHHpdIc1tF\nOjGLG9n5Dxo3Ee60CD4yrKkZwm88THyZP0L93j6/ojZqLPhj0CwcRKy9SYmu\n4/Mc7G8CoxS+26jjHU5el89whcXb81FlGeuYtuwhwwP8dC4+fMhwtLY+Z9OV\nMIEe\r\n=yNoI\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"8b1e29c27b83025896eda38d87dfaa5f690a76b1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.2.0","@apollosproject/data-schema":"^1.2.0-alpha.1+8b1e29c","@apollosproject/server-core":"^1.2.0-alpha.1+8b1e29c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.1_1569874767828_0.3885566595077261","host":"s3://npm-registry-packages"}},"1.2.0-alpha.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.2","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"2605593f0874c640195aba22b7bd39447d24c530","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.2.tgz","fileCount":7,"integrity":"sha512-ZYn1QllL4C64AUngI8ITnzNgAMXqeyF/aeIgXD7dGKtv7O6vrz9tTaDoQpyf2olWxFjLNqeanlqxADk5tCeZcg==","signatures":[{"sig":"MEUCIQCm3Rq5kaDB3z8XcE0ahe+1jsvwos3aTyY7Eo4Ww16FywIgH//i+72QuQNuMYxB71FulhAjVRxi/oU3lpIS+hW0PJI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdk1nNCRA9TVsSAnZWagAAOgAP/R5X1n/t6z3JT4OcbqCH\n9yx6LUmdMrKea2+LCoW1sT1UXHWGNbbAIAn2StT6DFzMPC4Np0y/PLK/oES3\no+PZAADruZBE9aHGi3Ft9vWKpJ+xVRTvB4p37ohGM9zkexmldFg+X2cNHnwO\nbs7hr9slCxeZ1IjUgCj8IPH11u19mwkTKC5+oHQTLydyf1odryECrfYGqRSZ\nh2k6N+WZCzIJSg3kzeSKbdSc6XNgCwezUqL2HiyUT+j/1z/FyNQmORvNGHrZ\n1Vr7AP5Ysi7uUuOG2cKeVIMowDXe123v98zrwA2DSORwQGjXFEG/SNxJnJBk\nNlJ8be0JDHVEA0lQcFXF3Pw2FkZZvQux+Ufjpf3av2JMcJWZ80IX4B2zxoli\nbpjvOmhf8EnyV3Oi3fCtVB6ZZuG8e4qDyQxK9PwDpC1g+HlzzNMFYfxAG7pf\nyqB/lAb3KHmHlAcULYE+draRC6pRKQTnGRLxqIJ8yyf/AZWYdOcKFTRGLBOm\nzPWmGwWoJW51JvHmkKyiH2fpASDZdZSHuskGVcU1chn8c1m/lCQN9NQjAt/4\n7im+v9pTp7Bwi42YN3yPsmp2OUQ6xeXd33xPfgY6s+VoSRFJUxFi64RZZiao\nLZCoFKsRxuhV6niUGTJU5kaZJZEtTjx+CzRymBBp3pkc++tG0b80TgVLku6O\n3qWy\r\n=UGGs\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"71a08e9f8e8893131f2ba8cdde0cfe0ea4b032c8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.0","@apollosproject/server-core":"^1.2.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.2_1569937868720_0.17973838585376067","host":"s3://npm-registry-packages"}},"1.2.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.1","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"b2129ba960c624ad818a61054c32f56d340a6c89","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.1.tgz","fileCount":7,"integrity":"sha512-89Cz931ioluxXywnRU+oLNdl3cGMe3YT5euTSLKWYNm45udYw5Q6AfuS85vVY2F8aEGaTpa3zQebqUOqNfRvVw==","signatures":[{"sig":"MEQCIAgo4QGo/64HTagdPeL0JI/jlNwA3ZhS40oRRhTSpeDMAiAbJfZFoNA4UdiwL3xS3aJdglFJmJaNrTpaPjhYEbm4Ig==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlKh8CRA9TVsSAnZWagAAgvwP/37sHyFR5sOfvhpmGoEu\n9qGXYVFcNVOvKjztzajKKl00Wh5V3xtyBrNxYTrWTfytQZW7ryC8co4I3wdl\nIwwjRkxNlmkndyxmpyTAFufnM09IACvuaWxTNJcimdZ74uVHw6aHlA+S/Rf2\nxppZ3qIVTk+u5GvMbI51ssWg28sxeUHX6K1wLVmRMcLMRBZ8nHA60ZXuSbI0\n2lhLE4DSrf12qhEbixIpHU5RR1klSCBq9Z19XuZqsWdJuLxxsWqQ8o4DKY/U\nabVrMHQyiTdOKzrsLenINQsY3ZAro/2ezGJlKfjERG/Qqkj17rbkc2Vvbvtb\nqVoCEoiJFhqd2xijhXMeXJuZs2p8Xs0Ld3my2ZLYOuSh9Cs52JE8YiE1zBAy\nwjGYbi5H3+EwzHoW38Jg0oMRp7Y6uqumraxO6c1/RCJ1Hjg3UTOMs0VvpIQF\naW/I6+02b4F7PDdYYBEQXLdTVGTGEiTOHi44/TO1I/vfwlWHTP90bRKrBdiX\njtprzGkKZa6Gn/XiVkQlgNr8kzW9pX0DQoWz1o8IUb7lvEUHuim5Co05stjW\nrk1olda4J4nupuNhB0nuNOYVb4+bmWCBCeYGmfGi3wAfORKF1pFCpe39iCh8\nZvAJYTIK/Zro18FVAuQMZapBo/O045QrNngQyMyy+Qz/yTQnYCN+KRFZlBD1\n6cMq\r\n=wuUF\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"dccdcfd414897b4a1ce4a079e5d0a93b379e7f30","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.1","@apollosproject/server-core":"^1.2.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.1_1570023547429_0.7369950603868842","host":"s3://npm-registry-packages"}},"1.2.0-beta.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.2","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"064f314cd1f808fbc9b204abe10c503efe82d49a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.2.tgz","fileCount":7,"integrity":"sha512-TDq+Mz2EiL41uMVFWjkDLdpyxIUqBo6IcDlNazd+7U7dXWpYLrNFCRtbC10U7Sc+PUYnz1nbXt89KcKiP80q4Q==","signatures":[{"sig":"MEYCIQDLvqpnkvbwHYXmVt8BU2/wUg72TeUb/VCCCXWxdt443wIhAMICiyztCBj8AB6Dh4txf0gm61e+4/yFGT0iV8kN1ZRp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdm1YnCRA9TVsSAnZWagAAefsQAKTgGWTFLM5/awYyQNMM\nciQdBycKcRge1xtPNVJ7nfGM1LB4OfJWJPJkzwdPFkMhus3urDNPCCAjpnpH\nEoxp3Gdhx9BtwaWZgxwYhkgQf0QtXFvI5WvCWBMg1wgCi5zC99M0l+IrgFlJ\nIaeT5SuXvo8bMhWiWLBFQTJrIivzHGSvBBYp+R/KoOjxykwUfa2CuhHa4PRX\nY7Wos7+KRL56pzC8fyim+WqsWcPQi88cswpKAihxWfTnTxmzIeE+3RMCw30b\nlnoAejsHDu2Yy2KkL6L+sEjAoqkMkm5LoiE90j9TgxlWFlr0l8i9IMJ67zQU\nI+WsuHHv6GijJiqeuj+7OmQFVQlixZZzXUXjdx6aPpAf+DyuqcJeyTTqMQWJ\n+0w2onYAaF3NqOYMMnaVMvCAepr0+Cd5RJU58HuB51k0Yp5nZ4NNppgkaXxe\nJX6NAo/8jrLvZIevofhu7hH/pQeq23sggMuox0VXqpY7cPq2a8R3eEZbNiIC\nJ8HRE5Ga6N+tzih0mVat4RV/uOrGxW+evC9XBDXTWGRn9uttpmeKUG/W3+Df\n32nDoE/nzJwym1esp4CYQqoteu1ku4gJKCtuMBn93jiqsRqPPbBLU0AZLqXF\nPUX3FXpNFfjKEnr+2VWRKaoVJhUT8/eAtHkGIUuA4rc1aDXtL+QxtCOalt6+\numg7\r\n=fqhx\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"79c803e2472ed3bcada49b12bf1e2df4799a3814","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.2","@apollosproject/server-core":"^1.2.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.2","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.2_1570461222445_0.9913217747222296","host":"s3://npm-registry-packages"}},"1.2.0-alpha.7":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.7","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.7","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"8ec81256afc36c07b7bfdddfabe89b06d79c4c6a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.7.tgz","fileCount":7,"integrity":"sha512-JlWqUEjd8jPyWOHTnDgD34KGzzEs1hmJxkPaEe6XJq5gA2zg9FVgNFUx/VddpnkY1hKy7d5NQA5xS0qHwpaTtQ==","signatures":[{"sig":"MEUCIF0Hcsoht62gKZX5OZp4Vu6Mh8+q6yPfRVHXAid7ziinAiEAsvBm52fbTiyoHku8SBsG/bTbGQK+aOD+dlhaS0Ooj4A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdm1prCRA9TVsSAnZWagAAxHMP+QAUx6lJfVKKj7DLn9vU\nrSqteCls3bXVWVlA+riaGCZITSC4Hlh9fz/V/PPEE+Cwvl8r5Fv96oaeMow2\nOvXGXI94XxCkGzdhuOkg0ya9UIlPBfCdUzrlWVQF0RdoRL3yBe8gr9sovrlG\nfvzIPDJYQJtk+eSn1XJwgWVSbkUR6tBgROm0CeEuRm5pkNbE9pQv1gKYZedb\nAEzVVzYCdxllU7LSYlEkL1NLw6Vc777G19un6lBCxZ+xW+bB6kB2Gn5zh/6R\nF7R0AAZCd4y/LvO1DTxFuUF6OT84uRbqrqhSday9hpBHYQf9H1JAtqNs5llq\n7v0EXWR2bOJ6YRvFLocDcnyokPA8oeeLthAJNxb8KV4s3gv+E5TsbbUONTOV\nuzJmvlUBTtdEb2/4J0gheUNyBChnWMktkXpVMCbZ/6mh+p0pI1F6Xc5Qar/D\nRbFukZH+uwwDdqsp9dz6E6w+lt1kGWf+g5nMgKuZJbvGC52RWEovrv66OE4j\nd9jkqf3I0+GLUXKC321AFh+UHyb+YPHAKrluJPk3BRhmMVGUwqPT/arP9U92\nXhbD8Is3eakGCVOWKnQjcTENyAqoJ3/8fLzQ0n14jlHSCu3/QsQJd9FlqC/o\nU//NP0zzymt8vTv1ywnoa/cEhtQ4obYjWV01uCJTLAm0EHylwhBicNWqb+1c\n6r+9\r\n=GWwM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"bfb972ad460ac61dffd429eb9fb201cd296d0bfe","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.1","@apollosproject/server-core":"^1.2.0-alpha.7+bfb972a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.7_1570462314416_0.5621833908314613","host":"s3://npm-registry-packages"}},"1.2.0-alpha.6":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.6","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.6","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"f219a2c545d935d11bcecd75c6d24f2f78a094be","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.6.tgz","fileCount":7,"integrity":"sha512-SOVmNWmVOI42ZHAc2txFWeJMGGRsl5aBwRDQfHztGGUeLylpDJNNoA6uq3E4xO50bSt/6/xnlUkZI4IUvEtXiQ==","signatures":[{"sig":"MEUCIQDsPP5AQpex2xNHGgy+n1gqNzScUqhxQjwOoqcAYlS9TgIgWUMPqBo16RKZHAgl6l63g5chjPH5zUaAV+MD5lfUGr8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnmRACRA9TVsSAnZWagAALG4QAIYnmb5f5x+x6XXqeHkX\nn9PicJpI2XE4mwrs7HktUi9L7lH9aBsIeCep01HegBR9JsQ9oHgOs63ZZbhf\nHNV24/vRw566sweUuAgvDO/tVRfc9bPMHUah9T0T5yoW9Kt6IBOz6SBKcLMx\n/CncG60j00QsJ/C8rY7aaeqmF4DLM/HVWwVylDhun3PS2ukRo++7EEk+XVW7\nS5O91Q+qrb1zPJeV36I6onGEGiT68xz3N4Pa1PmppNZkoakBTSzXDUyt0NSK\nvY3SD2tP/wWyLlaRBuKcNFoqS5g42p4Y2P/IQtM4oWb+zDn0i52RnElVtNo2\nGeUfjKjQObAupWZgAGfz+4ZpHkD6nJM3D9g9sM69xOOG6tH4YSlDypZ+7y2u\nJF69nwP+Qq9JbbquRiVjhQSurlyb1UCvL57v/xu9Fw9OBJuiotJU4EzxSnhx\n9qiOixfCypPUaK2zmJkkaW+1zB/t0owUPpdZk8cey3dJ7uD+ES8gIN51EL0P\ngdvCBSymM6udB8tJPki8T2nFvLsc3JPMpuDfhNpauaX6Mu77YTmXso9BXF5y\nqjrwbBJ4KqzTHU/KCU6NUUUJ8m1801azgWdwIVG0J+uxWF/6hPQlAoRvXUx+\nz15UKLvbn4BCPlU0KoPb1dUmI/YwEq9OtTqrK60TUxE0uiyBD/n9fl4LaFYz\nkvCz\r\n=YD91\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"dfba44c03ab276dff7d142b2b7273cc92c7c21df","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-alpha.6+dfba44c","@apollosproject/server-core":"^1.2.0-alpha.6+dfba44c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.2","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.6_1570661439987_0.20300651070067444","host":"s3://npm-registry-packages"}},"1.2.0-beta.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.3","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"17a1d7ea1e4ee2853d84dca33afb75afdbd6cb48","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.3.tgz","fileCount":7,"integrity":"sha512-MT+ewDxBlOz7UuPKpY2ms1pTR5ZxNnQdXLWdICCeCzkTqWAQkie6EAqyn6Q98sFCIroL181bSYdb1U1nmxQFLQ==","signatures":[{"sig":"MEUCIE507Z98+lsLHIZUK+yiPvyjt+iBDJkkYupaS3wg4+K1AiEAtDwBWMMzg9cyW99myMYpcrnp6CdUwJ7I2Z10CRXFoTA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnzthCRA9TVsSAnZWagAAfS8QAKCO1q7PppZewye4fg2V\nvveButRpOEe9i3+vvPXmeezBDQM0h/gguNitzfXjr1HDt9kRpPfFILm0wHal\nVPJQyuGzxnyloqiHAlvv/LZZgzuF+fZWHJ8YIXi+FDQq0tqIbPjNVgf0HJfp\nJWlT73gXcrqY4y/HGQUo5vuDrJn2QJswd+7M0PlNAlu7bopin0WGP3v/sTQK\nJ+MFFGJxXCJYYHK34ax2xQk2/1tpyRS1CCFc5nBqP2WlrAiHN/H0zQxlsJf3\noTerXKX4x6JwVHAIPlN1/Of3qtsFH2AZTHcmIZ+voP8C44cc3utqtoNkB0Wc\nZO/MWG4mHO5TQDDGD5i36njuvSCM/cYajqTl26a//iAib3FPleshw2huqoLa\nTUjM8VM2ICTMXxDc4Ywd9Ws1UHMRYCusfT+nVTl/1TKmoTniiTzV5o0o9AbV\nS78VPbCp46dI3mkVvkFjKVKfBEoSAMB2J+M0kODpIgFHQBnWnN3NyewOU2VU\nmHQcHssHxnuhlC3OJaoeS6mEiVFamXg8PNt9IR6qhJ/q4Qbi/O6iBJ53/jzb\nuB3HMfVsHhfxU6HquMkv3aVp5c+j3xPXVtMWrlXF33mBGb2fPvYtbZAulQD1\n+SNop5uiPrnoX0w+kd0uxLFKa/KvOs68qlZsYQYShJxVFIIoiWw+tuEi+Q1H\nfV5k\r\n=TbMw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"dea8a596427e2de29210f26564728809d21704ee","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.3","@apollosproject/server-core":"^1.2.0-beta.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.3_1570716513246_0.9051739472078537","host":"s3://npm-registry-packages"}},"1.2.0-beta.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.4","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"585d08b6f3ce4060b6e3ab6fc7422ac0b975077d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.4.tgz","fileCount":7,"integrity":"sha512-QEZDg+rJI9aUn5uFW4Z1bUlEebCMBIWjW/II09eq4OkbiEX5vLlFGSUw5HWamNKVopyTqGLwqiAzcZoiIS64GA==","signatures":[{"sig":"MEUCIASE5zfkISTdsd+oAJLEbSZKdrQW0BvD1/d943UJXUWFAiEA1VRhzUiSHjbMk/NFebbINo+HESMKz5vlluWhk5eimqE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpGqsCRA9TVsSAnZWagAAigUP/2PjTO5DJFivmG/GS8ha\nH82GS7OCcj1VOosVEG+u4t250qpAzVG1dMcd+8kt4p/C2pZuC6GV3TUx9lfo\nZDO0GQFvuRFQ40B+9EI87XECJDUyzOmsU6P9zlhH8v4knf3k4avJ2uove5mq\n17Oox31DvPr6PI1kolpVLhkUPHGRxlTpovFS1JvBv13E8DDYiVnW12V+uEGP\nJbQEoNAFjIBd0vDUo8Jkqfi61F21sOPqKMZ3zRc8DO2vX9YacxdwySX7e+pW\nmg80Sn11Ow+oa2VVfxnOH/MzKANFfBypnwE+IE/MoKidSdLz+ZTTOGX596gj\nnveUDgU/UzNl9wv+LD1V3/u5LqKGt0zTYTicW9IzuyGxlz0FBpDHkmekOlLH\nVC/ZJfyoQLENDbeYDc7XvbRPCHaZNUz7DW2Bm8tYCqnJVaqj7aCCXGumJBA7\nCqNXmTHSZ7OMFdM+9RsZVEnLvIcf25YvzoytqIo2l3Zjoq5w7P/VBwSbQ7xf\nuwpVu3MULimYF+ooS5WwB5X38oAhmY/4AejOCHVV7T14sh69ziK+hH7jKLO9\n+p/csrVD8+D0NyGkT2UbFXcDfsvnAHFWX9NuYvTjTWHSW26iYxsNayUS+mST\n5N+6luwXXmArIMVgOJRmMKBmWyu9uqDgGTdilAZIGVw+eRyE0+N+tC4BXkS1\nTIaw\r\n=Td+p\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"7c432b0ba334fe6a79d428e92d57c084b599672d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.4","@apollosproject/server-core":"^1.2.0-beta.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.4","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.4"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.4_1571056299928_0.9048492760613149","host":"s3://npm-registry-packages"}},"1.2.0-alpha.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.3","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"c9fa1ff189a9f89df7b1638dfdd3b469d9503c5d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.3.tgz","fileCount":7,"integrity":"sha512-Eotbdjm2XPVN9iP/2OnwEM71nIl7Aen0WLXVfE33FZzhSRmPsUgp/0Bm0NBMN0hiuBQiKez0oI4Cwo/5TQBhnQ==","signatures":[{"sig":"MEYCIQDnS+c4p/r4tvXPbVjzB1lo5XpzFZ0FsCCZ9cpEEvnOfwIhAM2ST1JCoKpOkHOgvJqSJfiOYNlq/gF1h/1lNDveknar","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpHNuCRA9TVsSAnZWagAAo9AQAINPVPe2bW20HlLsRe6p\nABmelNJVdqEivTLx2eNhnyb8oTMUPQ/4K8Y4HJCCPsQK1ALATxW6q5fMgF/4\nO5TIrdrWcjCDq0ae1ru/0QLq+FYdlGfvDP3ynGsAxzK44arhkgO9auYqkft4\nmIasvsD2F7ShDWw/MnnvgIW9XgXFVhWCC8fDHvkYEuzQW29KDyNmOsDSBzur\nEFW4NS9/quSm+AUqKUyJ1XhJviWuadNKQd8mEJMrZ31fA4hYZ3n2ISKU48Wx\nTDB47KZr0Bsg81t5QyGDd+nkRZ4ztXjA0ZfsDZ9gSClAc0zTTbbpmy6OmE64\n0TkIFJmT1l03uDCPeWfxkwRewsssVg2EPoIa5ILq0D4yptYM1+CL0YNwSEYb\nkDXM3x3huQ8tS9tI+Eg0o8F6vZIryfOc1C6X8oWEwvJDbYoZ2Qjb8JYwDs7r\nyfCfECulo6fpQAzCYPJe1Wd6tkW8AsntFazOl1a6jYpjI4GchnACCxoNC9+Z\nwuKpXRVg0aO+gMAvsM9hmO2D0lizlDfIb4M14Ra/6M1nbhWfzq1hP/gZDhtK\n//9BcaVatWiVlUpKRjOOmVulVrxEjwKlq+KfLR3u8fRKhw/vOVbkodWKEPE2\n4cOrv2aSlZLfZeDoxYyUQgCH0fLYj8Jy+r9N40p846sz70i1gi3iZyXY6d0m\nH3FY\r\n=6XuE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"44e5f5b3dbd51e7954a5fc250bc8e04132fcc778","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-alpha.3+44e5f5b","@apollosproject/server-core":"^1.2.0-alpha.3+44e5f5b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.3_1571058541797_0.20119223692523458","host":"s3://npm-registry-packages"}},"1.2.0-beta.5":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.5","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.5","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"6e82f4fac83d00522fad26fecaca260420bf9eef","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.5.tgz","fileCount":7,"integrity":"sha512-WNnD5pwzpBBjr4psQp+xL3V0EzhNvVhT0ckqcBz/6Qcbz57ZqrzNtaXXkj9HIQZzO8vKaE81x/r/20cakZ56Uw==","signatures":[{"sig":"MEUCIGsybeEnkriOmbla5KiOJ+GaBPhER6Chmqyd7Xc0wzaTAiEA/yZbZDS/9cXw9B+ZJs04QTEeNQO9AMaQVVQXtYvPFDM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqeaNCRA9TVsSAnZWagAAf+gP/0TzQmSF3FkWYsEvSpZl\n0hOotoH/CCwL5Ptp6pfQRZ5Yc9t7PXff2/vMsjscMsoeEdbnjIIlq/+ySv4k\nd4NOUsHexshqDGKHFw4z5lbkIUG7GeEIQaY7XFT9INhIcn7Tf57ciSTPTHKH\nLlLtjasQi1kEMYXsCmLDT2Eu48B/D0G2H2JXmQ9r4gSpnW4Z39GeIe7C8aIS\nD7uUh+pB9BDM5C4UmPQDjHXSwRu3BVn61UyC3b3YpkypLvffaihuZd0g7rfv\nULRV4WIy8n0NmgVgAVPZZLv6CG1gPM5M4+Ek5pYSQKM3yoj1v2L0r32KixWt\n81jlBXFUCvI8sfNqKvkMZHsc2wECeS8jTlibdIsENa+PfzLlX/zQkpxA84g2\nWjCbUtaON5x5uIs63pmpXdAhQaDXIeHRVpC/2GHGzDhTDUSEsMqrginysIsS\n46japLfsbzK37bnIrFdODBtcoZd1wzirtm7IoEBH1iBailPoxDl/6pIaUURM\nij4GfZQWXnhnfe5ewuLr56UScC3TRy8xUuXz1aj2pmvGOm925RHsDdm+WHXR\nmePfAezYAKpKP8YTtZQ9+Mkf1cTenTaVKkSarQc+sggcn91lRRqLA7wWafmr\n0DktKmS4L8vy94o/zd12g2vAZ4+2rryEEDECQISCC1FRBy0C8oyq9hrXNv6k\n2GgH\r\n=6ita\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"2e812a4025c0bdc9d99113fe33b76970ce7371db","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.5","@apollosproject/server-core":"^1.2.0-beta.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.5","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.5"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.5_1571415692908_0.10161255965212512","host":"s3://npm-registry-packages"}},"1.2.0-beta.6":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.6","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.6","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"c80dd4a6734c1538cbf5ed73d864791c6e3fd1a6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.6.tgz","fileCount":7,"integrity":"sha512-lA5vUpRFW00D6QqlkPq7tTMogKNeGMUqCTDfOm7XIyugMAdgtjAut+kP/Rm8jTOhYVPIAYKxhBxWf5RfqEt9sw==","signatures":[{"sig":"MEQCIDCWk5+2dQVDHUnY5vJc+PzPkwCY1NjNXHKXI1/W/SPbAiBiU9F6YCy/EWdJ9i4mVz0KkRH7TVXbJgYLqsDWX0VmRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrefPCRA9TVsSAnZWagAABsEP/2rnaqgo6NN9N8Q6h6o7\nZ5HpyovRab1GScPd3Jqk7hKdriTgCt1p3Cm6wWJ82JQwVZDDUdM6GRr+KCZ3\nSxE/hVKJFZjeoeN1fd1HOY1G7ZYlEP582tR63XsR7c6gZ3MGt3TqHMqXa///\ngfbQOWGjFE8wuMg3c8TkcrPtWVF5hRFrJxxQvkUwBsEqExYz85PCNDy81HAM\n+wWIEo0BuR2oO/finjlcd0THd49DPNJIzoqgjZX15iTMQEaGjSaYIxeMmERF\ny6KhtFzapouKdBLFdftB/YeXTE1xUwJlpe7AlbNJkiXAKgAZGbQgV6urPK8d\nj/LzAH/I0dmFNs9U1ObE1wb35DeRoooyirt21r25TJg1WPI2T5P7qO8oflcA\nhOnokXPBsrRvzU1PE0jKePgqxQfVxF8ZMrtmAvx9sHdGQ9uB+OTHBNxn7eAz\njEiAo+zpC+bSHi6LAbHVR8YWfiG17fOzdRViyVwxxt7JEaH7ug/aN/emdfii\nNMhxCuobdFP5sRM2s0BgHjHs25O5vepNVE4yLyybXf39WgfhAQyqMdTIGytz\n+BrXM9cWWjjMCZHsUpDMj521KOlP/FNPs9fUpSUq0AtGwZSj0qQ/Wk6nZieJ\n/porifduh29xL9bJIsBCWlcf3UirBCC1fEBtFLUIdwdyWPyT+7jJQ9dp3aYu\nXFyh\r\n=PFUm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"38464c64f3ed5b79c0bfefe155dc3852b1b7b339","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.6","@apollosproject/server-core":"^1.2.0-beta.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.6","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.6"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.6_1571678158641_0.19442992052177188","host":"s3://npm-registry-packages"}},"1.2.0-beta.7":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-beta.7","_id":"@apollosproject/data-connector-onesignal@1.2.0-beta.7","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"738f778548ee067dc61b1a33db5b1a428de1c2e3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-beta.7.tgz","fileCount":7,"integrity":"sha512-OdOmD6eP6ASO1vQM4YaHlBP2Za1Oo79869YncCcUCiBUO6j29Zm3vjC8ArltD9o08o188evpyfIFxnj5jojweA==","signatures":[{"sig":"MEQCIG3a4L78Gmz47Wa5UTcJDj4CxciSre4ZunpEbq/1v2PZAiAhS8gCN8eaRyMueHEKmpJSDbdskYb1OBqALXI+4JY6pg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsK7sCRA9TVsSAnZWagAAq/YP+QAaKqatbgly+emTqwBh\n2+uXuBnxeOeLgvScmGm8mV67hcFYTpA+77bhMT+BYC+PjFDXpGHfo9rj8mtK\ntSEbJekg7VFaDpxQQEsBdo35anKpYkhKvjohHSZYKSCXLtdlaHmAw8UQ6ZD9\nKe8c1F0E6CiJiS1FMcg08l5fVUDuuIxjCRoEfygURQitJbcTycOqgGCoaC6c\nDu48IxoDig/CIvVEem61JWLD13TXiakdunz+oazsoZNi7P3xvkQfGEv7ahbS\nHQGyxJFijb3BKB4nOd+rIfjTu0miD5Wnb54rt10L7mGckr1UqDpKAB8cCcrQ\nFEQJyARLQ9Fk2QUKjbKYe3BQfiebTSLk4Qmya+1JkY5z/4XySlZ195wttj5E\nwR/B2+7HQ9EyPLO3wKFrMHCStZGYyUNY+gH1V+oG0h7oOwICrO1NYhQIm3wf\nwZCDsJBscF1rBjIA9vCD9Q7W+pI0Y336cEZaw2ivE4vpb75d4wCj7Dt++OWy\n4VeyikEAV6dSNw+7m/PGBTArz7YUux4PxeyUslwzVqWsplftGkhyRECvtQUn\n3umKH0SYzp5IqqJzG9u9knuB3TMdGv0fCQjrZ2cmykHS77VqdYI1oZrfPxGb\nt1iB+Tp+ahdaflnnsD/GUpJDiB32ULeVBniU0fTwGAnoPahCeJPJf2L3CbiK\nTjpQ\r\n=1c2k\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"073af22eb70e7f8f8be3f9a3a8197f5e586fb418","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.7","@apollosproject/server-core":"^1.2.0-beta.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.7","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.7"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-beta.7_1571860203891_0.11068074867554412","host":"s3://npm-registry-packages"}},"1.2.0-alpha.11":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.11","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.11","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"b003c8749dfc114d4b14170ffad3e073658c992b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.11.tgz","fileCount":7,"integrity":"sha512-ASlZWlakh1ISVjXPqY4DQtG6fBdp6NYL0W5oyGyW49m7+Sp2AMRmSvIKjpHvARMiruFqu2b66usxGRJp1CFffA==","signatures":[{"sig":"MEUCIQC1ffW5VsJNUzjpF/ScYqUvgnseVYpjwJVX5GQK5r99KgIgWimpH1FNhnr61/Yus4ei/MtlIYc24SCva5h2oBbOBAI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduc7sCRA9TVsSAnZWagAAIpsP/1ZEmks97lJRXwg5M+EY\nD8fURzN+3u6Msy9sGHw4alr7oakw2slCAR3DIydbjLYBT+00vVZdIPxcTZxQ\nfh+SxiBfv9ntP360P3NP1GUTSMiNC2Atj26SSv1e7QzmHEn7cXdIWZJSYk0t\nOVQzUAB8HxAYm5VklNMDMMsgCOuJjNkydcFHUuHl8b4Kja5b01M/q4of+fUx\nbEQp2l8NfPDp8CY1Nr2iHtxaaECGila1ScFOrsD37O+/+T/SbHTfoVEZNPmJ\nX4rdeSG9LPVjTLAz1OWafR1lvi93dBf6hTHNw8ra3Y9x9A6axvdh+aKeg9r+\nDnrCbE/VbHOFFGwRgRPCEeqznOKhXZOuwwPhS/1OBitbZpYfC5P1P16kyJxV\nWKAAF9GSLR4SCluON7UiSMHEh5UATcutzKTFwMtBIqoGEatZ73CchiQWi0/C\nMtdesmB5ZaTQu4TMpIm3TpD2fESy5aKQtFGxd68rGrtdukHcUYE8Lb+Mo3uy\nGqas+3vYIljYa6E+h01cuPVaX2bFXsGXOgFcunkzZIkWw+KK5riC3YPrrh+N\niFOa3u7xW5jmue3WDqUuYo4HHuI7iY3qhKAeTuBOjt/BsUV67ql51No2Llhj\nb59WNHdr0HIHpLwKCgyM7DcKsm0s6bZpo1Vk0KGR5iK3RC56CvxgV6hYjI4m\ng1co\r\n=uGhq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"bfd2af79c72ca9d8e78b6252ce1521be99b66f11","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-alpha.11+bfd2af7","@apollosproject/server-core":"^1.2.0-alpha.11+bfd2af7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.7","@apollosproject/apollo-server-env-mock":"^1.2.0-alpha.11+bfd2af7"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.11_1572458219749_0.8347081184694916","host":"s3://npm-registry-packages"}},"1.2.0-alpha.12":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.12","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.12","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"ba873e9cdcd2c86e171362a19467afaa9f455bea","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.12.tgz","fileCount":7,"integrity":"sha512-xZqvyM5qGmvb+ucKl3+TEktHXmfaluTwksOr9Oc2z0gnP7457mJgrdBOFyHq+o6kbUqe9gZN93MnpSaNfqTR/Q==","signatures":[{"sig":"MEQCICTy976+LV4PxfyIlAkwNUZHqX35ePBtjmkel4dWVSU5AiB6G/Dj4SFIGQ48PzW01VI9UvFnj3CvgFVBkSNeKlWbpg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25804,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduuMJCRA9TVsSAnZWagAADFQP/R808H3D/t0HleqePj4V\nApGQuySqfusGzHexHaxd4UDWDffJLfvZCCbgfiHb+cKhsNf2fRBjG6hV1OB1\nuNXQAWFnZ2NMwZmrb07opJhzIe4AgtCj4XdE29bgPQiy0i4y3NcDqG88ob7N\nG1itWfsHGmIVUAQrfxBwv8+sQlMWIFp4RYr+ZnzEpETUlxioloJdEKBY8rw7\n3Tr/WNT63ykunGadhPMr3xdzKvVC1uz7dtrJiW3Q1WqgrBFANKSbYW1Y+uTU\nvPOMZnkXNmcfvtwMG9fbm4hdZwy0KmTFhj78BJkKV01l2M4mXgq3vJI9mJk7\nfAn/g1XNPzU+Vkm4/yMr2G81t0NYam0nYO8BwXysehDdeVR8s13dDL2i++Ug\nbOa+q+PJKxu+M3PdufYnBGUTe8dVWq6N5kh+bGf1WjsJaBh9ncpO26rIzSIB\n96nk5BzwUMLQ8kHq/xceIBlkmH1XxS5cPV3+zxKU+HCO84PnBq3iWBkrLF1A\nm8qKU9K/4OPmxiwTeSbEHqdD/5+gJ0UtwVcNtxqeLxxq4CiQky51Tppt0xps\nfcBWnfXcXHtIPJyVUle4spx2JLhAHxJZ4em+2PNM0px/0wRN9ALrCDTJfl3s\nHDgtWCbnd7NwJwGZOZdRTvPHWNAK0cHO+NRMtMdixaBRHCjhMWKGu4Ro7IwP\ngTIL\r\n=3Tn9\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"ca31ecf2f2104cbf6f822d2cf295eb5220c330f2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.7","@apollosproject/server-core":"^1.2.0-alpha.12+ca31ecf"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.7","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.7"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.12_1572528904594_0.9346753738320008","host":"s3://npm-registry-packages"}},"1.2.0-alpha.13":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0-alpha.13","_id":"@apollosproject/data-connector-onesignal@1.2.0-alpha.13","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"e69bfa3d0dcd33a197af8fce3e1e0b86cfb19f5c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0-alpha.13.tgz","fileCount":7,"integrity":"sha512-MM/isQLkJtFQsfDuRXq2NFUEQKoLU+642xQL0X4/Y+W/xEl6JiP5VYd5F7Ft9EXyTjWVd8UQ/3bNx3nKUBuEtA==","signatures":[{"sig":"MEUCIGnCs9JG71rlwIv3XUq81zo1cLCVTBmOj34dbKJx1IUaAiEAn+dnxSj71pMUbPxS0Su2y7kD1H9KQUsbBCfIOlDng0o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25804,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduvwbCRA9TVsSAnZWagAAtoIP/jr3qODNFKZqzjjlen4r\nZAXLFz5oUsg4fCOVNbIOjHwPI8V69l0Ba+/J5DcDRS3uBaAGJNzPd+kAaNpB\nT9YQKfFD5dAuxT72iIt8V6NhLM/Ty4Wa4c/e/9G0IJ2t/PH0XvO0KQ8MCfOb\nvuh8pNvvsKheDFWj6v7jBvaMMT6M7te8AYFK9g6r2v0c8saSHXTRvRS6RmIH\nLdNF2cfTY89umhxItKLBuoWxjwps8gQPwSeamSZ/nApv7x+UeKn5o3/zHS4u\ns7Fz35h+bZVvvMF9swCnAmXg7rZkGwe5nabGMNYsLWojtff6EY/6Z4Ux1aKP\ne8LFeM2U2pRv4Z8tw2Os+JyCOur/Mu6hw6IoKtWzY6fHgxgZi6T7qGLtsq52\nlDFY9CU+nKtljDmcIfWG1SIOYTAqYWRmqyNJghoaqJCQtxC3o4sdg6amyQ7K\nyXC2zipROA0m/QgA22JvVt4K1+SUqCXrqlnOJZy8fPmsLA/VHWk/69x7/vlz\nFA+rm6skyaYuEhcAl2EybVH9B6APv2D3UD6RkY2qNXTPwr5Y93jVtWqf+i2p\nphOt6N4XZOw4alZudMNVGczfIUdmbi1pSfDQbPe9C3yydF9TCtNM0zNJpEdv\nl/DiozTEr4lj5AKs7hKhf/PaRzvJLbR1Vm2AWRjH+vWbgwbaknREzUA2QLU8\nqLTk\r\n=/QFO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"207440df4450ffeeddc8e5a32367c5c1748285ca","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0-beta.7","@apollosproject/server-core":"^1.2.0-alpha.13+207440d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0-beta.7","@apollosproject/apollo-server-env-mock":"^1.2.0-beta.7"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0-alpha.13_1572535322590_0.7192957343566699","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.0","_id":"@apollosproject/data-connector-onesignal@1.2.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"02ecf103b72227756cf4cce45ff52aaa5101c1e1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.0.tgz","fileCount":7,"integrity":"sha512-OBM5CcKIqQ8pNqjufeRZJ4E7V4yDH+pKeqSye1iPExAuXNrB8dVh/VMp21GUh8L0Q28Im8Q24gpn39SRPgu/cA==","signatures":[{"sig":"MEUCIQDNr+7dak6NwOJXiJ898pLyAnOXtFQNA4lXhHysGUL4OAIgG93qfe3wgs8IbIqlR86kLtJdrqkxvRpNx0KrJs2xK+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduyCkCRA9TVsSAnZWagAAmNEQAKBUYuqrAcvnmdo1TAXR\nVwr85NQKokpb3VZ72zaiNFfMGaeymf+uxlyXCkCwyIcU29gW77CNiuXsx8lJ\nnx1y/qzcb9voNoA6BLq/kkhZ6tnrdUqKuaEiSguwD5CmRiuQU6jxmqCbOUux\nbSMQD6STJHkRRLdQZuj0uzy94Pgh/boXYPSzFAyX/LnKLNfZdVKvryVAtAby\nKyZHYEVt71vvOwHo37hn0zMhvp4L6oxOy0jYXrRLL/jEMiws175gaUWS38QE\nEXA+4DCDWbb04oFfe/agjA52k7RUBOmRX/ITFVPUk0lNNLrDEyBkirpxDH/q\nyU/X+ffAQMQdKg7APySrSAevazXHWlZyb6XKD885OXBqPc2gLHrwrL7/Dpop\nP8yJ8B1JdKBLaxzPFIwBLVfenH46dxXA356LnOHBIG5r554H2kp+1Bd2Xw6y\nTUcAb4MZldfwlQz7IPqimpKHs00Op1Ew/mH2nRsuA+PXvUB/JKEu9NFB3qor\nwxN0EtMrJwlWSc6q9dMVFSDysjhtqwj3jKmnOfQHVYDXufHtMTogdK59MaQL\nseK6E3bNGlDSxoOFKFsbMWg3cekG+PbZj1k9RFC8TMKEI7+R7Klp6mC5vF3o\nwk5sMneN74RA25dtIq7i11WQ6fKKS3x0hvBZzK8mA1sSThtZJzTe6pfSFI0L\nIhvR\r\n=GYTX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"855e66f1ddbdb7170f047f5014124138b9abfe84","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0","@apollosproject/server-core":"^1.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0","@apollosproject/apollo-server-env-mock":"^1.2.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.0_1572544675876_0.10381502192152015","host":"s3://npm-registry-packages"}},"1.2.1-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.1-alpha.4","_id":"@apollosproject/data-connector-onesignal@1.2.1-alpha.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"44a33df173ee83f904de3e80a822c73c352d2c35","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.1-alpha.4.tgz","fileCount":7,"integrity":"sha512-njX9eU1TZg6dVhOPpHz4KDRYPy09Xgf4QiZ9cf754/pJFtaqHH8jSVbhPvvtHOiLD+ELpAz3bIIQJlMseRcpWQ==","signatures":[{"sig":"MEQCIEzajuxqN/16hlmKN75AmfzRNE+vlI8KgFoPNGbZ0iGZAiB+XdFUL2bAgGrEDM0qk9gNSE0efPysIIGgps166ga3zg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwI6CCRA9TVsSAnZWagAA024P/0VtYJcoITuvuM93Jng4\nWGtfSy0LL2/BPCW5vz85YQZQT2vW9mGwNOXSdOJj2NE+c7u8e0CJ9ljUYBok\nYXWsksGFqidqLnPxLsnFOY1x8c+quaSbtbuJ2fFSvPWN8gUylURBGM4ZV28f\nwjwHgbE0wXili4SWQnBdv7zSb7nOfWson3dRgKd1t3CzZhyW9QUW4NFQLoaJ\n3cxOtT58lDJi+p5vdQa+nuv6FF/Pt2Lrt80CCeZwAtKPkurLPfAMvwGRbSSE\nctzwdUt2pSN9n+S4tfJrymlsGOPJ086119NG6fisi5qVbnxG6dGVG/4XruRB\nYD5EV7HJ/T2/uc++3owG/ydSqLBZtCmR4o2Jkbks3XVIAxx8zbjptpk9SuBh\nv2fVUFs3b6gzN2QWHjo0E6/q5mEM+GWzd6ioI49+Ys8q92vX3lXZFJ7eIgDh\nPHiNo3ZjgApP0mv4/whJ/dDCU7KYcLF79IGwRFSbuuVdcTI9UM1cdmjyUGKc\naHK661nUvQ4kEHkLwesGFBiu5OSMFExfEgxGr+5ckeYzaGXhv3fZkL1K7+ZF\nzcbMiA0l1luN4EuGf1Hsgx0lbitZkZcfB8cJCO9jmO3OSU+W0t1plUpZE9kE\n0lIKGu0sMV6IWhrzJSrZIKUtX2ZZPoOq5VA3gZcxjd/B4cKhTuXc5YMlNM+U\nauQe\r\n=Gsug\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"c9a41000105fedff47f9c74ccdb0b76eba55f855","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.0","@apollosproject/server-core":"^1.2.1-alpha.4+c9a4100"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.0","@apollosproject/apollo-server-env-mock":"^1.2.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.1-alpha.4_1572900481847_0.6713653807674373","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.1","_id":"@apollosproject/data-connector-onesignal@1.2.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"8154b8be70e6b9249febce629c1c06a4ae0567be","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.1.tgz","fileCount":7,"integrity":"sha512-9ZD9Xgq0W0h3+zgh9NRsj2MdIsze6hDMij85Oq0nKkPq/wlYmxZ2fUdQsWr7inyUPlvQZiqB0aUlN0ga17m6yA==","signatures":[{"sig":"MEQCIAiF/EVX05CQXqvl+CYhNA3TWNCuQBgnqAMoCfmv9JaEAiB4XUPsqGLq+lFp+merWu/DmCNZKnd1YPcUyyZbEIp47g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwZeeCRA9TVsSAnZWagAA+Q8QAJ8XIdOeeS2j4IprWgPg\nFwXZvq4rgyBw1izMn9/Fk2W+5jz2/67QD5Akb8uY2b9nv3hbZJDrTKQzFiIq\nUd4/tZihdYhwhnZ81IGLhPpf8CnNyJaYJdibMGe3G6pj785IrysUc0H9gDFf\nSwXGjwZSlKo1D31iMa0FahTubOau9BMDytiykj0+3tAg2DeFh6JuaPhOj03W\nQydFLly3gUHrgJpXxR9fqb3D+xFtNChwjaa2I9ex/1u30RDT9YeMrZWoImLQ\ndGnepiSVUX4m9yCkxvIQDwJXvhsgL2p31+aN1ziik9qSINqc6g5PYy8fIjbb\nH1dRedNfqeU9eKkVkOxSwru30Z2DPpQ2tlMCLPgLVqE0GCkPRAxzhvxV9PXi\nCNnhTs6QHH50lmbdm8k26ylmM+ksIHs3OmDFCEk66Gg8AkaIenXe/dWRdeky\nVCezvwLb1ImuykiTqe45HP8ZGi9GCTpkm2tJDTdM5v1qJGfP7DW97Ha0/+GN\nYa4866NF+JowCEmCILkaNTLahGFPbAFIi57yw3//4PAImFTd9kR48baIdU/b\nBgIjEqqK9TSogz1bd156MColVvnakypdXRoLWevK7o9+DrEmbMiHydvK2gSb\nROIcsPA8Am5O7qPfbnphnaJIL15GTQt+Zrsse4MV0E1CUjRf7k43KUPVn3km\n289c\r\n=R5gT\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"03dc63626795af82d86f1acf541721e83c929437","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.1","@apollosproject/server-core":"^1.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.1","@apollosproject/apollo-server-env-mock":"^1.2.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.1_1572968350473_0.9598220863835265","host":"s3://npm-registry-packages"}},"1.2.2-alpha.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.2-alpha.2","_id":"@apollosproject/data-connector-onesignal@1.2.2-alpha.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a97a9acaa59c5be33b01dc1293430db44e1b258d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.2-alpha.2.tgz","fileCount":7,"integrity":"sha512-6BMcDDGsC5yRFyBd7fmcOXu2bO5Q1yTsb4A5C9cVDEL+sDHOdAryuTW1JxPG3Np8ydX5zRfNIkpFmz3Z+GAHOg==","signatures":[{"sig":"MEYCIQCYcZRNmoAl4FIJ2gJqGlH73mW/4n9/F7bbjs5bI7Q3agIhAM7vI9ng+WgJDm8I8cT9sBePKkW1wLUhlt/71bT6PJY7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwwZuCRA9TVsSAnZWagAAZZ8P/RxBU3ecAukrNUB8cHTX\n1ERX4elrF3Kq5Cm6YU0i5zu3hrrsptPJo/OJGunrPWwn3skwUCjhCt6fecbH\nweZo4VFTN6rBG4ff4Akcxo0O+RqjMKaFiZhCgAumus+TuJCy9JPyMvrHd7yR\nYNlCqAhDbh0EF2cBkSIsZwMaxNJULilOi18BL7WM+aK7c7Wys5AEtApugdV+\nVlPwMRjuxFMP10CzCRN676MTceASLSWlHH3JyIBBy1aPpOfdU5r3NzIJex8R\n6zrOUNpR5H9trHxfEf8Nl3t52X2aj8uCMvEcFSexLTtTFfmJ1fixXo4xbADM\nGiXnXCgpF2gsLvDpFCAlvyCdiktOUmJlfdBY+xW4JvZuDKmvqKXOThrIWwJu\n2LZyc6MXxwGVoEYlNmS/guWFX2ZJE1UASAps5Gto6mRKgf/x4NqSwppB6ZVf\nYzHZlxQ7HSwXUkCeFIzoE8IdusMunUhFB9J5NNKSOKAw78qd6BEq0YoreW8I\nvREGWLjoIOUPjglPLmfYWgUkn92yBzmNRNeIsHd1QppA7Ho8dQNFwCJR5/Dn\nfeQ6GzriXoMJqmjkPMDuLvGBS6Vvnihj91mEpVxrC7omo9JgRpRuN9Bu2pXE\nfES34NQRqWAQiZgNNipqy8XVrAy7f+dLDfp3lulcaPEYkaj8bi7pEHZZVsY0\n/fjX\r\n=90AT\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"3113ed97faaf98ae397b9bdb76fcaafc84e993ef","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.2-alpha.2+3113ed9","@apollosproject/server-core":"^1.2.2-alpha.2+3113ed9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.1","@apollosproject/apollo-server-env-mock":"^1.2.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.2-alpha.2_1573062254301_0.014106630822516397","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.2","_id":"@apollosproject/data-connector-onesignal@1.2.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"64bee922630c0a42b21e4d44621384974a2ea8aa","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.2.tgz","fileCount":7,"integrity":"sha512-ko5ISAE2TzjgDiKIFM1mW6xcr6pTaSa0Nhubb5xwDLPJ66tvmpz/fiybx5ZE/88V9a6NrDxZmFkK0Kkt5wUtJQ==","signatures":[{"sig":"MEQCIDhdIja78IubHI5/nK93Be5my+dBauWYTVALV3xBylwhAiAi6U0faSVTxc+8zCD+QGsU1djydRcWfxpgf/DYDajx8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwzEhCRA9TVsSAnZWagAA+xAP+wcIqT8eM59ixf5epwNq\nWVhaDxCL0FwodQrsow37vrIqQpR2nGKQoagmVgigscvejLu8J5lXkgAyZSD6\nHkJ3/hl/2MuQE7EPqnmIqMOFyuW2w5Lf33s1Anyu3C+OZLVDMwYIA1glHzqJ\nXCVHJp7bm2dU1FsE9zt/MFCVkL2YCP0LqE0wtUHvN2WQkzNyrdYSiuMxA8PZ\nOCRjy5aAgYeDL4azZTHcXfGuIwt3T6lkPeXOVSpQAsFzvohF1RtgqP8MMSdC\nVYuAD1NLZqEs9SMNIStCYy5rCJaIBCnGZa4gWu7BGsM+sFhl9m6XFfbCagjW\npvyKASGZfo8SK1acUJAdi1BHm3mSzXbkDx2rVzB2333ZFq4nqVN3K2AcSNVY\nCJX9qWbP51M1h2EweP6P3YHaDLo3q1sfTOK905tnBRVFgU6caHXZME5nGTc2\nOMqSwOCQi8uu/0CGtJyICXHxfkUEq875ZyAzRMIqnBNQ64TQRFjYZbSc693A\nM0sUa9oZ4XsMnB/6Nz7bs6ksknRdJ1qvdKXcuy5Xw0I5M8KeBM5y3SAlNu7W\nMHLiKtQFAD53CcIDMK3UOr6BO5Y6UbpyJsqEVf7i6EWxS/gjY8mVTq9kjWbv\n/CT7apzHpaZFDYoEj+Yf4pNeeznnL90+pAAFfS+eR0/g6VRjWU3WJPbMghiw\n6HLW\r\n=qMa7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"406b5c3333a0c04a21352086ba6d3a25b0a879cf","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.2","@apollosproject/server-core":"^1.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.2","@apollosproject/apollo-server-env-mock":"^1.2.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.2_1573073184588_0.8300671410037224","host":"s3://npm-registry-packages"}},"1.2.2-alpha.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.2-alpha.3","_id":"@apollosproject/data-connector-onesignal@1.2.2-alpha.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"990c5a84a2ac32e1511ff3ac609422db36cfaa23","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.2-alpha.3.tgz","fileCount":7,"integrity":"sha512-OKyvTSBPaE99UlbA7Hd+A18KrQJCPD/mQCBN9hWbFmoZsXleDlhot+mKo5BgeAlGwXUxKtKLMQDEdPHjQ1pOWQ==","signatures":[{"sig":"MEQCIB8xa9Uh63KjUZZzlgS7JQD65Qkorc1XwIQf73d2j9auAiBmeeHTKnpfb5k/QVXK5qpShdQQeahK0qfWuBXxYwp4/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxDMTCRA9TVsSAnZWagAAkekP/34G+RgOk7D27c+5wUs+\nboCnHv8C+FZ3dvaAxxvz/LLx0uqIOukaAwJiygaKg0clO1Umybh+/TSUgT4+\necsMdHxCbVSAPt4zu5Z9lMjB2SrYAFuTgHxc6sAK6A7H4qw1OQWHve3M9OFB\naIiqVNIozJEodLc5s0w/L4cjUXKpSeD/TjE0hQjKjvMGoODNAS9DI/4fMAjs\nueH/p0jly1Tp7ClXG4FVHOyqqI3mc13LdWOzFlwGaqlX/VTctfdyAjfw8tVN\nKIydnbT/0yEqUQun7OwHBj3575CQqos/ppcZvXZqxIo+oKpWTNFIm8HfFvc0\nDBdokhaT+55LW/5fwCGzYQiN0BWbRNrxJUher8afgpStMEMm8bu0JCoxIpP8\nDh5kuqj/OkxqyIWmiAbgXQ3a/Rj/pXW0HsQq+glyuxTEZwpnNoTWFwRgly7Z\nx+L4tuOLNSJ8cBn6ZdTY8UnCOaagciCL+WEQDvjw0eDFLd1DBkOHHddKJ135\nX76DOdI5c+YyYruvwReJsfdfSF91s1drC+TZEvxrlc/A5KT8IcKb5DNGH0nS\n/95a8lvDtjMxE+cbrPC0loPq1k6ul5xsnk+JbmN8WbS+JECtkf9NzQ9lSldX\ngShq+FOC2EHhv3yzv2E0TPGaQJeRe/cf50pbuRIk2j4tHLWFkbeOUBCBF+UL\nWgs5\r\n=iL+3\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"331a84b5a963c5bb171b7788faa202852f98f4b5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.2-alpha.3+331a84b","@apollosproject/server-core":"^1.2.2-alpha.3+331a84b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.2-alpha.3+331a84b","@apollosproject/apollo-server-env-mock":"^1.2.2-alpha.3+331a84b"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.2-alpha.3_1573139219193_0.6968889674728362","host":"s3://npm-registry-packages"}},"1.2.3-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.3-alpha.4","_id":"@apollosproject/data-connector-onesignal@1.2.3-alpha.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a719941a48bcf32f352d10e972eca894e98a9eea","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.3-alpha.4.tgz","fileCount":7,"integrity":"sha512-jHe9ppzitJWgFoXK6+qS6iU4H/2x6qIDYioT3uMDOVb18ADtL5rGwXEYg6FaqGBHw0OttmGa+fctOMZqxvFdtg==","signatures":[{"sig":"MEYCIQCCcGAMl1PyCS8pasm8KF8Rlpt7ix21gPX9RxwBJ4fGiAIhAIfuoUWYSvRwMVWun6rSF9ztiMzn1tJtaxCQBflgmZFd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxHsHCRA9TVsSAnZWagAATR0P/2JgSjzwXBbK+gbsnNET\nEhnhEtmZ2XhXNuFgG6njaRCkr+/TOYP0RQdkF1TFYtLByZ4/ryZS6GsBTNuN\nL1ZUqp6/sBGKTC1CoO1Kffs764+nP18TbGBwhoofN5ArtuCIXbiWCBHarmvz\nHJMLdjhyUZfdzHKJ0QxOa1XAEJCc+4HRAGKK7jooEm5yWyH6kwfcYyIpgBmq\nfVu9BMK/U7GWYWnWfNKHRHQORo7+CcDjEhM64kuiNRud0JNMDXEp6SPztw25\n6nOUbfHnphh3bG2D6hAcmQ/Y+1UQ8gfXOQ5ndNOGI5CKu/Ea0cJyvlU1K+s+\nAYK7yr9O8evlLzFSDxo9ymZQu9m2N91MD1RGpONsJ7dqGmU8KOaE7Q3xrfA9\n2ZTwLbtBFu0/PWUgNF2xvY+x3RjA6PAA9O4cGjhvNZWuy7RmrqPldytlvvzS\nUNrHJfvDlhdQIOg9JuLpAs2b/WO0RoaDsml96zyTyhi55ig9lREkZ3wC6ti5\nhERUlZQEH4mBE0trLogHrpnttwNm9PN1/CAuhlLq0dkg/nquhd8Jz1TSmQei\nP+IUcirGB2wVose43pB2QxoEUhFvwLing9H/c3fmd2SnaYwsC20eiVxec+JK\nhWU1ZGjEiBrZDX22/f1P/Mngwi3mQ84wGgqQDquJZlI+AjukGFWGxeuyGbbj\nfBgf\r\n=l2Hw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"ca61e557acb717c484ceaeaad9071e51e1945886","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.3-alpha.4+ca61e55","@apollosproject/server-core":"^1.2.3-alpha.4+ca61e55"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.2","@apollosproject/apollo-server-env-mock":"^1.2.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.3-alpha.4_1573157638775_0.5231617622035136","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.3","_id":"@apollosproject/data-connector-onesignal@1.2.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"801055da7f176d536809af023f13e32dd5ba6d55","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.3.tgz","fileCount":7,"integrity":"sha512-PDTn5ut+nxJVrA7y4CAGXUPZCvrKk1w3+OYwOQV9Bz8nQdeFBGKH0c5pOjvZAJbi2tBDEu/vdlmeQn769lrhmQ==","signatures":[{"sig":"MEYCIQDTJXu2oOBbaCc+YVtKDBX4JUl9g7jRkrgM2QQPtrAk9wIhAP3zddFC8I2NBgbOljPX7BRDB9NpDHzKo7NcbF2RyTuM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyu73CRA9TVsSAnZWagAAOEgP/2BtDrjG4RhZvqQK6Pd6\nSsYcnV/lJvkIxZP147CxamIsKdNh//JPjz4tAeNdoDsItgflzxGl0xwM6d6p\nsbATzdZwznL4YyDUmtQ8EPVlCsK6EFWEJtFFdo3vOJ+8O6YlyyhL46XfdbZM\n1KON6eaL8dIXA0LjKooSM6XbOM9UsW2S99WdLMV3+Hs8OufIyaps2FEuaSRd\n4F8oGNll9oCpPjOtJQaHsT9jnUQAHUYeHVT2bIVdJb6YyLktU6cEWFV3g823\ncuQaqn6nOGxlrC42LGy1Vkryav9uFqAEQUp/VXAExHe/h8MkMbX5WMkTLiRi\nyVRgOR2dHzEqRpz4/5a0O4rTIaw0j1HVToWFeypVB6hdSlxQ2jzbRnsAvbil\nKQB+twT/ZJ7g5JKWfOjFUfaHGdvEQ79MkzP8lw+wAS9an8X3YgJDHgrAMbNh\nf3HSHTW4UC9PIw4GT6rwEV7gXtQK9f3DVZZ6dk6weLoItlYef87JHrdHJUB7\nTszl5MCtbLyRs3NKpS+K2plQxRxnur9+4UYlXgZrg5XUjRljczTKMte/MlFC\niHzdMHwkHC8GDuf/9wJGgjp5hTsQbGXlFtXtF9pZfTHTT6zjYRpgUFHoH4BO\naouiF+dcXsHQT01Wyy1ooQ3REzZ/LEOB2nTvJ2DP4fgN5AWyyEKObIRupjDG\nMyCD\r\n=7yxA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"9138069e8c05dfcf14843be0ca294f34ee3deaaf","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.3","@apollosproject/server-core":"^1.2.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.3","@apollosproject/apollo-server-env-mock":"^1.2.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.3_1573580535480_0.9253087823750263","host":"s3://npm-registry-packages"}},"1.2.3-alpha.10":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.3-alpha.10","_id":"@apollosproject/data-connector-onesignal@1.2.3-alpha.10","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"5e3917a26624b78b28b7c668f436a84b7e4b0f8b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.3-alpha.10.tgz","fileCount":7,"integrity":"sha512-eoYy0stwVnwgt4u7nzuy/OlTIS1QQ2xJcli/eIuyBfmn5eXb8UYQ1RLaxnJsta4+N+Uaq7sx1A1C93JG9fPD2g==","signatures":[{"sig":"MEYCIQC4cWRwFAuolC4GF27rxOsiUZcuNcO662UaroTgyreX3wIhAMWizMukcOEPEwvDs+vnX5GofMUi9eE8mUm2s6J0ot1W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdywHZCRA9TVsSAnZWagAAnS8QAIwOm3IEds3cKqQ+wmCG\nI6auLEbmW/UgNWxoiePs5fzgEmbQE8CDx7YJc/ggdtw3BNr5AWGYN6Zqlx06\nKNdJBKa01sjWYyO1WYCuh2YBADWxqUabutqgWQ04U8vqN6RPXGG2EaRp01PF\nMUXj4w/r2BHD99DDekmMbsGjMoVCeQ6Ihqpjadeu0iXaBCl00CkiJXHO3AGv\nqYJ85to/iD5hzDEtXCX8LxG4ZR7nZEofeGT1zEYeq2BRNNksDngdEeuk9bOx\nIOMCr0Q/ooWD2+C1ml/9+Fqgdvqg0rV/SYmAaLVXUYzNnLy1rnPdtvi1KkZU\nvySQ2Fb/1qJmnrRGVX4E1C+gXTmtIgBCBbAWg7iYFMzwyFjf49Ivpn55N+pt\nWvEhOEE5I3LpfwWIc7XfQnt92NE8rthLHnr2jZhzEoRcZeOTe32mXJYL+/4s\nOy4knAqLmNguu5fWlFHWI9MiTEUXJCh59nHjgYnROcrUQ6Y9XRnCZ1fn176s\n9mREVbBwJZZbBzq0qa/NlIBqkDqiiOzgDxtYXn6wCkBu07JF87CpRjdviKSG\naERvZ5l09JjO9CamHoGy/XI1D3+a795aPEfdY2z7VcjYu2i50sBi1/mgdD5q\nRotm2stkpsqV1ERqrO2xwckVSoRCJ9Qd/NGtPzO2vJihywavPW+RHfsBaOYH\n9V1h\r\n=9hG7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a67149ccd0c61f6ebc6471afc1fc7daf19791491","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.3-alpha.10+a67149c","@apollosproject/server-core":"^1.2.3-alpha.10+a67149c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.3-alpha.10+a67149c","@apollosproject/apollo-server-env-mock":"^1.2.3-alpha.10+a67149c"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.3-alpha.10_1573585369302_0.15564747044718952","host":"s3://npm-registry-packages"}},"1.2.4-alpha.5":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.4-alpha.5","_id":"@apollosproject/data-connector-onesignal@1.2.4-alpha.5","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"5fea507f9be079559b844d309f8d323396178213","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.4-alpha.5.tgz","fileCount":7,"integrity":"sha512-jTAzKpzQxjne8RpM830PecPQGJyGBowHfqLM32mumKZ+eUgv0KlRCUptdBCQHe6kZDDHq/XPntM3cmwGjXxe3w==","signatures":[{"sig":"MEUCIQCPdjOCB0FfNeNA9Box3Mp1IJYYKxOV/KcsbYTlH4z0GwIgd3Do6wF4yqviQ160GZFC8HGz61U2YjbvvBCn+eTqPdw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0wyVCRA9TVsSAnZWagAAwwUP/jMORX9wYp7dGBPNVhyg\ngzyPMA2KEhItcjPtLT7+TSVURKVl+Q4iMj6wZy94OcvwwXSe5SZuLNHDEhD5\ncqmXF1ECcabjVxgByy4n1D0No8c4epHqc/x5/SA8iGgmOOTZYu7aoWK4KBWQ\nBaA2U21VbuAC1iWqoQIT2l9u4N2kSN2eyYQv36CXr6ZGMaGjhvmDJar1UrLw\nH5IuBKt1p2jV8YoEH96C3982O0Oaa03B89jK1lZjujzgvH0G6nA7aI0RGY2b\n6W9PMmep21mugpadUJp9Ku748XkdvCmJLw3ryPr8SvKvhHYSERwwqt6eYubK\n4K/qFPueHNBrsznZ9pjazSDOGyzCxusOJW89PikwYm2kmS/YJgiL5jYWn/lI\nFP+WAv5DyZVyhmK86m00ofOzZ1c/9LAs5yGWKdtdItTzdTdz9dVL/ZU8FvDC\nrNxAPK4CsYyHGOK0fBtbbpsfOzEdPHgeXQhOxUirlht9joHErH1oQvT0skZf\nfS0ZqfmBSdWneaCraXHoTJet7+840rOL8oH5cyWR80NDdD6x5keEUR3ypFlN\nJtiXVr7K9VZo6NCfXF9W9or9qbDCMYQlLLu35vX/or4BlY/xdzNktbbOsZFy\nqixEHCE3+tJ3QdHsyZBx9cSuGwPwGEHvFA2Ihex+1QBpS7I2/17JYT0Fb1gX\noTlR\r\n=xa+R\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"97bd8d6c9552df21596e9a9243bd2d2db5209d73","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.4-alpha.5+97bd8d6","@apollosproject/server-core":"^1.2.4-alpha.5+97bd8d6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.3","@apollosproject/apollo-server-env-mock":"^1.2.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.4-alpha.5_1574112404711_0.5450269061487782","host":"s3://npm-registry-packages"}},"1.2.4-alpha.6":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.4-alpha.6","_id":"@apollosproject/data-connector-onesignal@1.2.4-alpha.6","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"0e9bd0db92d572a6ccc2b36c169889570302a60b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.4-alpha.6.tgz","fileCount":7,"integrity":"sha512-m78C50JP6EjQnFR2I0r78iR/NseTTexYQwco+FK1s5iGDtjZXQFPfHJ5bMAqI9zN7j6HsNNsCZ/hf3x0jymrwg==","signatures":[{"sig":"MEYCIQDphw0IEsNvw4qIAf+vah86VVF9DAtchlZSpMtuS7o3iAIhAPcBYUsDDlRd8p+DYMV+jIrgyIjFYvA0PTawCE9JRj8Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd0xXfCRA9TVsSAnZWagAARL4P/iS/XUB1mTrBK6juFi0J\nYcSy/QPNjjNKvcQNHsTOeJ6XL00RczH3otpvCmgdmSpQU3wV4j8If3sQ83Xe\ndk3u1+UJrnuTW2pNAGyeOo2Ua9kZ4iQt+slZbyE+5BMhfoh8KtWJcqB/tig1\n5vMZ16X8B5YMGOXJnKdMmsSVoZHSL+GAjzbJ5AWhPMP4wsrMFrn1W+8WxZ31\nX3XU8F1n/+S2C/b1NxvcVVeDUYWB0e9d+OVRz1/8xyC17rxyT9x+1uFXOPgU\nhJF+k7nP7vYravOB8neuCcOC96PcCqJ/TWYGjT++GUT+JpwSto0GyBs7Wpel\nVjE0gZY2vz2aKoBshRz3EK7VhBNAVhZ5/obeIUDV94Nm74ySXLHktqHw+DLm\nxdufB2hu+U+nVvyWNEV3w9RpgP/IK0YT7qohFGfVc/BHUBzbc6N72VmM+TB8\nQ8nZUSpXgc+LSGHlnQ8rKgzv+brJufhK2iagNDHJGK/DKwanJxtJmJChoaNM\nPn7sypa6e9PO9BRheWsaotkZWZXr55awnvSSDUJJvPxIq7t+bzR5hWq0yt5i\nacuJIxBc0O5xwdliq/rdKTKB7j7JlN6m0ToQZVWPGonOijja1HHXIizSwelX\nH/VEWKKGbyR4zCFuv1jgoPUX1uuKUTqDX6VhfE4SIHpublM2HTxhtG1+UAvd\nBoBy\r\n=NViX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"f9422a1a00501e8a5ecced24e6ad37c96b9b4329","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.4-alpha.6+f9422a1","@apollosproject/server-core":"^1.2.4-alpha.6+f9422a1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.3","@apollosproject/apollo-server-env-mock":"^1.2.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.4-alpha.6_1574114783027_0.32763791303244694","host":"s3://npm-registry-packages"}},"1.2.4-alpha.13":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.4-alpha.13","_id":"@apollosproject/data-connector-onesignal@1.2.4-alpha.13","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"b1f6f27caa47856f5ab69c200c1ae8beb65ea482","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.4-alpha.13.tgz","fileCount":7,"integrity":"sha512-le3vcKEy+vc3VEjJAYQ0PkeJBvcGNZsEmBHXLyuh/LE2yfA7ZFgMr9ScUzOFaA5N+mKmrD6qGlIztpihFJAR1Q==","signatures":[{"sig":"MEUCICSFctwBWd7bqzR6/svegtcL3gxFLMl5QoGXaRI/ey4oAiEAx1a+vcVY/IFV4K7/qxeMqDxngbhU49Rdb/+QcQzKCZc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1YGDCRA9TVsSAnZWagAA3hgP/AmI4zWzqv+OkjEp7+jx\n9bn2g09luFJItVnkZe5ophLIpgbCUtDg8q31Q7XopBS7YI8HB9F2X0C1xz0X\n5cFLTawlQn3r05Q6fW/2R7WWwbJo7YKQF1cSLu/FYDQNAmrrIefYSkDGYqqt\nEHUnde4aGP/l5ut92O/WAwpL+ycYpa/8ozKCwVNnhkNVgTzTpFHK+vYMpxcW\ncrFAH5gLr5NvoHfyfThXxN5Dkt8Z4sN62qCdJhTZobUr6km5aKLiu+82Ft4l\n7Aee+UK/VJysfOeBT5WTG9LLcY5dyx/B9cOuGhPjpdESNtAchSx528oEpFUu\n2MVIdD8IQ0UxxD859PGcjozqLJ16R4LDnCH1SbkVy/iupmcdx0rDQaY/KgwB\nPVXJcVLgEMPjQ92Ycfc1TKXj9WgnFyfkiZ3ECDmG/q+Zgr/dSuLQKnJR+eXC\na8LByO8bFSQcAwaFmP/szaxI/VIawl2n/ntzbpBEsECyor9UhaK0P5mQxu1p\n/RecLorZZQOJjd1dHm7Qd1r8/kIW8WRDfinsRe+dgOrdWNfOj0UlJLB085SD\nIfENP9Xirey0JroZYTS1Pua4EdLLnMHGd5zGBLR0arzvjNBfyU7ckPuVpgc8\nf2nAn7NdD2XY2hjhF9niHTH2sOiek/dzD6yQ3muoFJlGOR9LHJOAY2TBBjhi\nYiC8\r\n=gPwq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"21f1d6cf97c5cb1f0132b34ebc977a6c69667f83","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.4-alpha.13+21f1d6c","@apollosproject/server-core":"^1.2.4-alpha.13+21f1d6c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.3","@apollosproject/apollo-server-env-mock":"^1.2.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.4-alpha.13_1574273411271_0.7230143828460771","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.4","_id":"@apollosproject/data-connector-onesignal@1.2.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"31867c4331a557c852ce4f5e9c06e2d6ae19486f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.4.tgz","fileCount":7,"integrity":"sha512-Qk+0OOuUdbB39NRsRFujhu4g11X0DFNqlObcqqRNwwEdefCN+iYA3dhJI4c5IsDyzuq0URbdMPGK/4pBkEZiyg==","signatures":[{"sig":"MEUCIFq7pLOEr1eb8ttdjkNsiXvWsnAvweofrrhS8zLQJmRcAiEAqaN+VMSJP9cPcKNts5YUQMGSOo3k2K098FAhXE+T6Bs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1cVQCRA9TVsSAnZWagAAntwQAIbPUVNAgPUFsOaKYWlM\nFApGxthy06hoJRTXZyo7Ytq07mUuQ5kqRgNDA1/Ho4HEDVW3t3EFtJo4FNCe\n+T/z++Nwr8oHUcut62Mm9Xmt5pNuGdkirZUEs5aGIgTRADvp3Ygqe3WjUBOX\nA+WUiee/XFNsgytFqc3Kbot30leMeSImMISxY9m7vDMFh94NjC7yFbXQ9tTm\neNeYv6ikTs/j+17Ktl9y7b6IpIRgaegRe4yXNTot2CUDm1Tv28UJ9FcVKLzS\nflQzr9S+dOJeI/jK1EcFN8luAjnNQb5A/cBDQDrGueYpahnPTR6uSXGG8hJy\naREA/ScS7Gfjl7VdTacSzx6flM7/OHVQC/skK+uzcStkBSOtFIBnEfQEh9wv\nH7zGwMozfA/NAN2046BKQ2aIvbEzkZR35r3qvZhvCHbEtZjzGds1TESkGKo9\nVKM9RPilk0q2ozi1Q+LZ5uRsxDdSc+VfGZpCBGWMhApoxmPHFltoVBL3q1QQ\n/KpXzC5GcOSLKTaPCDFJc0oHXRThY86aTFuJGnEODue4PwF0ueLgN+JPYJyr\nnlXjezBcZQPI5qHflx3RpZiSlSpxNgqIMLWjhSasOchqR5X0YMAT+Dk0Ysn0\n62vyyq1/2AYkld6LhUYySzF7MxX9ReQ2tyzSwxDLk3DjbxRzT/zbU4tQabyj\nEceO\r\n=/wZE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"1e867364d2451db921c3716de268431ae7783e90","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.4","@apollosproject/server-core":"^1.2.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.4","@apollosproject/apollo-server-env-mock":"^1.2.4"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.4_1574290767838_0.7619224886166864","host":"s3://npm-registry-packages"}},"1.2.4-alpha.18":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.4-alpha.18","_id":"@apollosproject/data-connector-onesignal@1.2.4-alpha.18","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"f1c59f2ffbd516a49d9aee870665e68c4ae046f4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.4-alpha.18.tgz","fileCount":7,"integrity":"sha512-0JHtnA2rIFzOPK90La3ubdAUCelZ/sBPF9vRnyALAZlFJVHKHtW1WS8ui5c5uFVz6jwmW2xKc3frIzW2opQB7Q==","signatures":[{"sig":"MEQCIGs6SoaG1AeZS2cqDLD/cwEUkX3150EakGThrfYCoqIIAiACDMKn6YEQu9TUysFTZi7EBJU4daY5fxnBeMcBDYzxrQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1dwzCRA9TVsSAnZWagAAdcEQAKJQzw5MgMVsNfQ6JjVg\nPEGVPUlfeTZAuyQYYG2Ual5j/Dx3Qk6YIiMxtmJ8FLGeHEMTuige/fswj0iD\nlWnO1sYgOnqoFCKavVjwfIF+4LWCyj1esJDKjaYh73SvzwfYXHhk/ctqYEpz\nY1yO7x/b/BNwa/4oITp02IgPf7fhfsUwNmAkhaWqsQWGentbCBbmIHHInTrn\nsctf7itKwRGBnmSZsRQIMvs/4hEM5ju1HHOcPAQlr5fhP+l9F2rKx0q9eofH\nwQ1KAaIp0KgHFNLAjMZA6s/OE7QyUZUPFi5t8db1EUasM19Uci8lYc/V34TE\nzXplEi2cyulTnTMO1b16sRPuJE72WM2wsNcxCsHqD8wqJSGpP9pea5y0ix/8\nH4DxYluG5KdcQ1/kyebcd5kFCID9hy3/W0Jv9hIDKlB0wUzj3Yqs7Z0XVBFg\nrVfzr7Z/8KKSRIfjV1zsLU1W8QlHwlTsA6QTkU+Ty0ht7GL91fo1GId1H5eo\nBRWZKZluuV0/sa06mVgDlQlCKbvkuVd+qGDDYg6dKXdomMjSDxdPLpJbQv8h\nkbjoJf/VuhLveospLZFtZa1lJelbwCIzxBUNM05Ep56isc0k7bJJRCEZnYtX\ncgIaJAZ8QJCRGE8bPYf7/kUVqUnoiZAap6saKhmAYiNo/AP8BVwnPiMcYjRb\nOGZx\r\n=UKnh\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"5cb2cf33fd88afc707c4515547a2d1dbf45faa98","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.4-alpha.18+5cb2cf3","@apollosproject/server-core":"^1.2.4-alpha.18+5cb2cf3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.4-alpha.18+5cb2cf3","@apollosproject/apollo-server-env-mock":"^1.2.4-alpha.18+5cb2cf3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.4-alpha.18_1574296627478_0.39555813803207385","host":"s3://npm-registry-packages"}},"1.2.5-alpha.9":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.5-alpha.9","_id":"@apollosproject/data-connector-onesignal@1.2.5-alpha.9","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"09cacd477299c6dab98f0e69fd2056e695d933f4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.5-alpha.9.tgz","fileCount":7,"integrity":"sha512-Ekzwh9wzuWH57ygSFLpiS0R0DcJWGjLAnadqhWxOs9aiE0XFYG/tufVb0tlvsbnq9MK2+KR5RfQTuxqNwJ9dpQ==","signatures":[{"sig":"MEUCIQDrBVuEvXwaSw4qeIwfXO1N+9PA1RsDF2fcpQFRCkAdOwIgXPjY7om5eIW36GQWg8nymp58AlE7IE5A3HKbUaqYtbc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd6rKmCRA9TVsSAnZWagAA3dQP/0F35CSkNyVEJEDMxWcn\nk3fbROmGleVp08buQy6V+BJqtLqnl1Tk8oMXvViilDD4ZDhy461xvS7T0rSG\nPOrEsV9XPn/e52LE+D++T4ATwWLLOR2sojz21GG6OYscQ3wOccl27K5GPNfU\n53aXkxRPXC+Ckvsm7bcxFnhxGAbg+59ndGB7svEFP6KqUsLZmob2+LxXbg/Y\nO6OJtFM5BBfC3rBH05bH4EHlfhQhHbPtLjkvSGYIYuijCxQhtSF8L5Tu9bW+\n24vYV1hCA/OpyyNADR81F1gFGzE5L25VA8Kxj8eyvwt89v1ngRw4iG2TfNXR\ncV20KMcNg6JBacj4j79S+jYHHX3lxEEKbl8fPSuTT3lm3UhI8Npf0fUzyuwM\nWgrTG2KiRz72Wifxu8qSCmAidYyD7ccUNKkalAnWGAvUMD8n6K23jCgd5iCJ\ninNYevAjX7xJwBAvwYAU30CkVPggSIS5ra8IDMM3C2rxTIo0mJb/z7rvg8/z\nOWFbY/4KQ1IYFawHOTYbOSNF5jvMX/vpjgswn3ZCMOOVL6SA+xbIBxJvW0/y\nI25+UODTY04Dnd81gT1dPj0EOZE6w7WW0K3pc9utbnj84un8IHZIJtGmDp8a\nlzd7oTpPYDH2/snBV1fTQoiyVRiaQZZDpZJ+BcBG86ikW/WQRXNqGcaxlXMk\nk2mI\r\n=Z10j\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"db32b636950a89e55f47f12aba1c315146fbd0cf","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.4","@apollosproject/server-core":"^1.2.5-alpha.9+db32b63"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.4","@apollosproject/apollo-server-env-mock":"^1.2.4"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.5-alpha.9_1575662246340_0.4565900343578053","host":"s3://npm-registry-packages"}},"1.2.5":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.5","_id":"@apollosproject/data-connector-onesignal@1.2.5","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"2b4f86799b7d0218089ca7946d979b1f424881e1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.5.tgz","fileCount":7,"integrity":"sha512-VRGAgYFzCLlgu/ULjP1pKJVtizhbekmMI/JS3DjzM1NGmjp3Rua5znl1kB8j8u3N15X6SSQe3PIH+Sx8l1uNLg==","signatures":[{"sig":"MEUCIQCNhL21OCsS6pa3KdtAby7fGzMsZjFfHiHb//UO4NmRzQIgHQquFdbMPfaEM6T+oePGmsGc0Nak0fsL7UA4+kmAeM8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd7++0CRA9TVsSAnZWagAAdPUP/1ds/If4TcmEqbzw7RL4\nku0C7uAd31mpDkYrXfcn7dFU5aEBlpyFFUEwgtE/59K3YrRadWxkSl7luEXF\nGGn5LO+8s508VT0FCM4Cn7D75hMLQ7LAhraO/zvauleNMPBaxlYPFuDDYbqk\nDMeYaJjnPT6LxYWcb9yln6DwLh7wCR5y+5Gbd/TN/rmVJDvSMyhsLnY3A/Le\nEcV0D2PUlTKmKD1q2FIOJIEFd6R2DKAsgW0JB2nuJz51lRQLAIUa8rDgrvkF\nIO5f7bXeG7TyJXGpT/QfJUeySh1vwhNO3qdXOqhL2NHoT1Ad0uWeTrZ8xRKA\nA/Lmji6rbj4szYQpQoqXNrGghA59uk5OLxsmJlJMalsaIbU0MhD7p7ch7hza\nPJDF1JcaCSXdwSKpTZCXh9rO/a/XByqticYdLoQBaQEIpNWXHdsLL1LYeZhE\nKTtYXy3Fhhy2b7HNZbhYKkSLr5XWu3Ys9ZV5VEHdaAWH3Secgll5IpqkrPCq\n38yxjsOrFB6QncMSd8T3I2lJChCabQS0PvBe2BIHNKjh33Bj1/CyI+y/26vq\nwOYyULPjDljmQTzFRma72DuBgbYTnKJxajIACae7Xlj+hwseM1phRztocLnC\nWvONqWkuhxmD3/E9HemYChVd9b8tA1yvVniIqN44TO6U0CvtQYRsLBbug13m\nN41R\r\n=Oa8v\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"fb72648f5eb1f33cb594047db79d5c025d47b7b1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.5","@apollosproject/server-core":"^1.2.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.5","@apollosproject/apollo-server-env-mock":"^1.2.5"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.5_1576005556590_0.5642162438520111","host":"s3://npm-registry-packages"}},"1.2.5-alpha.12":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.5-alpha.12","_id":"@apollosproject/data-connector-onesignal@1.2.5-alpha.12","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"1970b94a210abd23ff9df6684bbb9253b7546c8b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.5-alpha.12.tgz","fileCount":7,"integrity":"sha512-SS6jH8gL7yr2RgIQKhSff0guX16j4v0HBHv2urwmvtkXpErcndbqBFRoagqqasqsKPT9LGUKvF2GjfZqHcsI0g==","signatures":[{"sig":"MEUCIE159M7IpsqO9/+10x0E00UaJBma8fQ/zoLam3UT1xIvAiEA9sU4H1BFFRiUV4f7GUwyBNqxwoJo2CJSqT4d628Q7KY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd86WACRA9TVsSAnZWagAAtS0P/1UBVmVgUf2qCsZWfOZ5\n6LlrqTw0hf8MjGW1LgGEAlyXOGzjiaiXnFHUJhfg3b6L+Pm353ref6ZIAfF8\ndsH+mgY9HjCoW1xmJcr4rvOTfDxIEBFhszw/Ga+Na0jxtDA+1kUX1hhgbOPe\ntXPYSqyYFKgzJPSks4ZP481JDfYVUN9xcQbSqwW6VjYryhvBj/Wom6oimqj4\nnoUr+HFjsEzioecCaQTteTXLQB48WvJNTmTZ2mI5vdC+OYWGliNF2aqGriHi\nhVz1IJBFOdTard33IUhz1ks9wNQv4yPxtUfDoCdi+sfTBMm+ZJm1KmzUL1ci\n4+YA7ewMGwE/lrfglEAl3JBDRbfmadO6T8/eKaMjC+z9iS6EtkKn7qWr8GMQ\nNhAEMC4DKQWDEZVPqksUE3NlP8ZBxWF5cESnhV+bo3QIMKT9BwV4u+whZ5rZ\nQ6RyDemXd9xHwPF682sPuwYT0BlMPx4qABiD3+ROcHDISKlJOZpH01b+Joqj\ntBNZLpx6ekQncwSYZYZMY4DQAUTbkMy59TrkmQYtN55mUDjSVv+R4d04DZzm\nkc1fX1e2Ygri19Kkq06EcKAea7NbCgHxwg2w83AsLFca8N5vwV32Npf9UtG0\n+Dv6kXA3Jf+gCKlDTNkSCtqiWHh5A1o5ZdTnHwa6VmoTCBw2rTltXuysEyfC\nrxBj\r\n=4twe\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"eb730ef769c21137ef33b229b2598cd2f52b57d2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.5-alpha.12+eb730ef","@apollosproject/server-core":"^1.2.5-alpha.12+eb730ef"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.5-alpha.12+eb730ef","@apollosproject/apollo-server-env-mock":"^1.2.5-alpha.12+eb730ef"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.5-alpha.12_1576248704016_0.23462919376997893","host":"s3://npm-registry-packages"}},"1.2.6-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.6-alpha.8","_id":"@apollosproject/data-connector-onesignal@1.2.6-alpha.8","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"9616436a975eabeea4d62a3c238f99e839f8310f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.6-alpha.8.tgz","fileCount":7,"integrity":"sha512-cjNA1BUbMKYie0cGoTnQlGQP25wIYcGjVj/j2fnksYo8GrGnMrf9EXQI8gC+g99b9cm6uBna2br7srGOCjLcsg==","signatures":[{"sig":"MEUCIQCGSYqUWGEo+9jquvOfAweUjrgTd95c1YDR45KkHR8oBAIgOSIJLolAEGQpgIXMSbecJ53i8fsk7kffNtuaCG5fISE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25797,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/PFYCRA9TVsSAnZWagAAbYcP/0PSt1de1gJG4Q6BRxIw\n6N2YDOFvKoFcmeIMKydzFyACwDzYTfgQA0Wfxc/mFfqQ41yqa94oR8qc2/QL\n7f0k7q1WGL3hPhPBJTwT3J25t0KeBlInuNM4sSRaI1GvHazpCe9mD9d/5ig9\ntUgf0nhgLIYvc7t64e97V2RezK4/GrfbaGjKjRBFMnWJ29QbQjzLak1pOoaW\nGe9fDQF+RrX94qOeuYQTF0cI+EGwQVR8+nLwSx7xLNKMBGZcHyacWuV3UIj1\nB1yq+4KxeJfKCQ52EsaII3DmAV7rEw38QoMrEg4D56S8lSK37df24luRhx+t\nvmRtf3Jsbos8ngJ4r7fUVb0S/I40D7K6mNoC+5DP9ys89Pa0hhlHbjjK0oDj\nfc3YAZua5RkAx3vcL/BQbD2+EGR/Ts/u1sMJLwyIboEjUyO35D9b9HVkZVdG\njAjjmZzBAQCu1zcXeqRFglu/R9IOh/SaySM+zJEP8FmHbHI7wDBDdfj0NSvz\nDUaFVdFRRZ3s5hNG+TjGENjXvpLbSOUgTjaE2x3U02Vcczr7fudseva/MkMq\nDpQ15LJ7ssLwUTlXqRvUR5x1NOMUJEk076uD/LjcWTVFqOP3mjSvDYfCiMh2\nucqndKFAqksd/huF2R4bXIDdsM7vJOMezWbsrxfffCL6AOiCxiovKsObk2q/\nbTHQ\r\n=aq0j\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"e5cbc0aa1136e49eb0788d439f6647b89b585b69","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.6-alpha.8+e5cbc0a","@apollosproject/server-core":"^1.2.6-alpha.8+e5cbc0a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.5","@apollosproject/apollo-server-env-mock":"^1.2.5"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.6-alpha.8_1576857944123_0.5077670500672897","host":"s3://npm-registry-packages"}},"1.3.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"f3f5b4034424cd0f7260c385d8eee4423554ed3b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.0.tgz","fileCount":7,"integrity":"sha512-qq40GChM1FP1WTjtbqgYZ9Qfg1v7D6OFL+5vYD7B76kiarmF2pS+op2WyCl4FbEudsRz/109ni11Q3KTIlJgew==","signatures":[{"sig":"MEQCIDyLSdKkPTNpzBsyXg9Pt27Wzk7qx5nqr0gPetP2RkdLAiB5aakga9Kko8wiqEctku+2NBnZPUjXCcgs4NdSaq0MAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIIGoCRA9TVsSAnZWagAA8RIQAKFVXAHxInQN0buQt02k\nftAz4lnWJzdAhtWoh1Qy+TYKFznoLsJ9A57PdrP7VWQf2ssKBttG/RXB5WyA\n4VvvLAhDxTe8Xr+4jmTPcgMl05gVKxtgQacwMYt1W203RWtBNK4na4ljpFNZ\nphPpgspb3BjKZPYFFkbvLjKpwyOmpL8Bvu8hIG3+rbu4UB9q0TMQnELPc08d\nS6airgA2J3RXYdVGLU9bHMJ2BJqiUPSGyjZawvVlXLbi43Nks1uVBMWI1QMo\nw2hhimRF+BUyTFQGVIHtDOLtHrTI1GpIEj2Ds6cXI9mZ3JLtPH7H69RWHYfT\nHdkOc5lB+bKE5KgwCgoJH7O7W4ljUjw97ln+rL7mrwP2PJnMbSB9+zvScdIP\n7u7jA10NCMukbPPE1yPc+uXJx4aohQxZWNBjyxqMz5ac9u1Q8TlSsXIdP0Et\nC7SghLwAIlhhon66eus9zIVaeKYvbBM6EMtKOj/bb6xvNaISpMDP6IgN8UkT\nEF7Yc+pDMsHTiIO5om2DseatNaWlgq8bPKPM3g2aLu4ffMxlibpl4puJAsLx\nYs7qL9zYc6h8PwxWhVCcpvnJFooK+SwF0NXdq/bhEQwYBOcV8ItUl7uCwWUO\n8q7BWhQzr9JzTWp2QeggESOFpysXDTpKgji5+E7jOqmJ3TK18xZ7IwOfXVeF\nR24I\r\n=efVM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"a7345a0681a2efe7f254bf387b6c3c4c5349293e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.0","@apollosproject/server-core":"^1.3.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.0_1579188647724_0.9812556538783295","host":"s3://npm-registry-packages"}},"1.2.6-alpha.22":{"name":"@apollosproject/data-connector-onesignal","version":"1.2.6-alpha.22","_id":"@apollosproject/data-connector-onesignal@1.2.6-alpha.22","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"fcf6c7f703d7674e348f92e488e8122c48b5b7ac","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.2.6-alpha.22.tgz","fileCount":7,"integrity":"sha512-1dXNemrqSVI/VIp/+Yygl1Uu21PqyocLXjAvAEtR/ulTYnMDBypSbP88mdcgmO9zPUrPEncU4TpORgk1kgey5Q==","signatures":[{"sig":"MEUCIQC/sOpIRg7+FiN1W5BHD4tThDIRsMxI1GZ0syrjFvM8vAIgVH3CFEnyDJiG0GaHzHQ3zmx5p81V58a0t4OBTpmPKSY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIJI0CRA9TVsSAnZWagAAdBQP/1c+Sa5QT7FuBSNlZeCC\ndsA61CrrXSXzCXm2Vyv4msbH/fMMzUbGwO6wGP7DZF02uNNcWH9uGFRldr3V\nBgF5GE9v9EQ5/I2qI95WFQbkAW2eX9hT8PqS5XyniZLyjWegxczghQNo3Z6p\nUDz925SwhCClSA46xgTUugZ3aUP2tlsmIWwCjlM1zCBukZ0QcBUxPXp5TRur\nI8bH3U4gbOB8wa3aSHDC1jkn/s1p4xabVKRsi80u4L7LuNT28o3JGfYvU0LG\nW8D2j/EOhaq03CkAwsoU72XPmIWiIkaQ2WW2tiQXsnzvu5VAnsPXVh5dN3Mx\neZYN2iON4lrCGYR/220jmMOSINv58r47suKuP1Bof8pRHmfHAo4ccfZQl5OC\ngw52MViqP3ObviiHQuQehoPe6QM6EiO0h1Z0I5DP+80Qz+8Kap/V54kQQo+U\n9LBUjfXYcF6HvcIyHY4TwaAOY1hvWA63YP4QC+GhQqZOF5XB6qUmHp77gWNx\nvUGaOJD/TQZhSxhcyQCMfXuNT3RBJPJ92hjJEqdmIp7dBjYfB2qcp0eXm2YZ\nQVxAA5r30SqJj/iL3FKHe4cY5hfXep7Y6FxS7jOjqIUcuxilV+Zz8bMvgYZ/\nLM7wunE/fWZeAfg14SXzhODpxFhEat+1mk0Q+T/rjr799FXIxAglj4qPY6+s\nA1ej\r\n=o96m\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"908f5e3aff2138f450b571c49b777a1152c49d11","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.2.6-alpha.22+908f5e3","@apollosproject/server-core":"^1.2.6-alpha.22+908f5e3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.2.6-alpha.22+908f5e3","@apollosproject/apollo-server-env-mock":"^1.2.6-alpha.22+908f5e3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.2.6-alpha.22_1579192884366_0.3678293188779622","host":"s3://npm-registry-packages"}},"1.3.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.1","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"66732f547e19e006d96fa717415ac84b022bd57a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.1.tgz","fileCount":7,"integrity":"sha512-E0kLa4TKJWy+R4+VaZUC9iHocsbKnUWduicIZiODVeLshpiLx6WcNINRwZtjwAdBDcOgDkHBn2TGaYQtmcZT1g==","signatures":[{"sig":"MEUCIQCFLIRqfht1yaqzsT38c8WFbjLzr+QHndJXPW0TRroOtwIgL0cPHiX9FbGkgQstDCm18eXpEdX1+r2Ry4MKGlyVRVc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIM8dCRA9TVsSAnZWagAAkqAQAKJoS/Ar+RlNh1KYKW0k\nHBZK1fqQ4uBnaBaKcrgVqzHOEwWiRjNZnBBSislkIVI0SU5G8VJADEJaOHwL\nVKTUfHNBIwpDk9DMqjSo81QUWZwZncJXAkzt+YoLtrfDm3h744jqV2vm4MGF\nL/VnG08RSs5MMQH++/jHX3EDuLsajHZ5N4pJIbAOX2xzOlO5tSL9qZjS5+a/\n6uorno/VVxq0mmz+iGPT+fiMy+/tRiVldSnvuae76+853ZhQp4m2sjv0MXcN\nMeLtdl7ade5mWfgshIKOVnV671XJUxESOOkTHsukzlw8OVLR5ypN9f2bhX5D\nWPOlrfL6yWcjmHbrfaugKupvjWdUddqhTHUQkFWiGcYfRczhzBmKmgiofCpm\ngpE50K+M29AJ4tI+fldfNiUJyL8oAreHqF9evkz6H9cdVl2yh+eSxry9PEk9\nhvNHFpMh+6H6oZ0vopwyurcQS1NRB91aFyyTvMaIYE566ewBIQWpdU3p1gPy\n4oaz3GyykOKOBmVgIRIXf4RV8WGobBILa8lLqOkdozLVVDThnT2/c6VkAMpB\njguo65sq7jFBkw9TX8LDAhVDuhugH/YCK1x/Sa5D5QWsmw+Qu939MgElRS2N\nPRLlgv56+hDOb8XyqzfVrs72V5hz7bP/bwI1TaG9Wtr3fQrKQDiJVyvhVGd8\nIi1+\r\n=qfdq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"b027c945a9917fc329091277499bd9a4a6605fc7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.1","@apollosproject/server-core":"^1.3.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.1_1579208476939_0.7531649088666639","host":"s3://npm-registry-packages"}},"1.3.0-alpha.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.0","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"bfec2fe9e82efae6691123235e3783a06e486a28","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.0.tgz","fileCount":7,"integrity":"sha512-jcQ592d/Mn9EPFZBFitR18EEauahgAfgDqFdNs2FdZQpZuTFFZlkwB60AlBle41KobxnfJXoiREb/uOm9C+Qjw==","signatures":[{"sig":"MEYCIQC4o36DeB/lIQYuqCz6yxusKs8VPOBe7hWKqK+rfL2KGAIhAK2y8UpZeoJwF4Rf57MEXG3tLuATwtyY0I04Dcydti4T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIeCJCRA9TVsSAnZWagAA1SEQAJKrVmMAJFKWlVzQbzGz\n+cwcyDz2D44a9rXAxPr2KJCVE+bcdXpop1iM9ws+yS5LS9gsDPlQJi54ymf3\nfb43WcXvvCCnxnuejRJFP//XhTc/6VlyvSl6SU91UsY5rjkMH3QM6nkoZnHF\nQ3k9Uoh+2k7QZeFyfokb+rSac30jpCo2x/+Bd4LNg2p4E7EPu2fC57dWQVSD\nz1F3pzwuGHbmzUsXPrt+WcMY4kSy3OQzkt6j1odl2CZ6+mGi5obqxax3NgXf\nwW4dMKZ0dWoOACB8mUZqgrYG1Hir50zn4FWRZYfLp7RrOv0QP/+iIuH0am6m\n/Od6Aq67f/oJ/QF9AFxYvVKf2coSiyyhV8w6DWqa1q1DNq6pPC2MSEs10+FQ\nVwZyb5QIhgNWYrL2X88cDAZjCUna/srdZjdjS1lBhGLhDBKqId46L/bmrwRp\n2gbJROQJm0ZBs0zCLUABLg+m2h9piEmTb6UfEyNIJCJ96gNJs7fY7PK1Sw5a\nHMlgumyMiXMDm8kMOR/YHhQwQOaXTIL4wZxvymIbGSl4WmUxEeLjXF6XxrEf\nCVmQ2xGC2VD6yX/G8mTblzs+hdAmyoW5579TcJDhlJOnpl0goi9Q3y45k8+5\ny+2PqiJX8MfNA9ZrepHxPzUjnPlDMZA9z4GPm1tlsfhnnjQESLWvQkkLNKwS\n2daf\r\n=kTwN\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"8862021c02d3c430f0968feda46c22ceecfa2bb7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.0+8862021","@apollosproject/server-core":"^1.3.0-alpha.0+8862021"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-alpha.0+8862021","@apollosproject/apollo-server-env-mock":"^1.3.0-alpha.0+8862021"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.0_1579278473395_0.9443047920249179","host":"s3://npm-registry-packages"}},"1.3.0-beta.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.2","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"4cbca3bb9492ef97411cf32b6791dce8305f9d72","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.2.tgz","fileCount":7,"integrity":"sha512-9HWTzS8SfkF13AdYpNH1X4lIOFB+FiBIVsciQNoUTYfNqPGpsqSDLXtR14bVwthn74ypU+0VJ3ROBp8OUnPO4w==","signatures":[{"sig":"MEYCIQCBIQ/xNriTpbdPj2aGYciLKwtFz+amY6xz6AP+E7JLggIhAPSU53I7SdguRTDzpN0+IesNJT2mXTHiPe4reT/VdzFD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMILnCRA9TVsSAnZWagAAXxEQAKRekpxSoa5SLb5eFKGf\nVrFuzB1bDFfo2Zu1NAlZDnDMPXz+YBqcHecvNdyH3nWwwLQhT1fO9byv+EC0\ni7blKg5BdNz8RCGjL6ljGXouDI7jh1ItdYd0p/XlBOiwqVhezDdl4hEUCt7B\nGBV8m1kkO31pGHxDDKHwdYeIYcWoNXCrBH+SICnTZfOo2pju8xzN4Ce/PFCA\nheZ/7rmG8uIFTGbdL7Gwu3SJfs12gqerBg1GVPR25mRAvmsR2pBNs/hA/wWP\naFC24S3qVTLQC6YpzZAN3wxzls0tQOiuOXNZILDA+H1CvqoAfqt4+urwHPa7\ncj27zk+wKjPOf7Hg9uL8Wya/halWi8Qv30Ct5/r/N0Tkmqvi6nCQI33T/WDB\nOdI0YyPw85PxRSVI5aO9x6V8dj06at56P3YFjyPxW7PVB1QDfZ+C81BZFziy\n4V/qZS5O4jE3ROrcUfIaeyC5pDpYr9azZRbiWQO/+cQn0jB04YvCpj+hAKhV\n9adCnpQC7nEwCbhi6WbyrhphjxkIBLuHQ0xJLTMNEXIr+eoVJWDVXzEeJJOx\neQ/BDyPTg19Fju/zPSHh5vyQjNYZhMd36V9nn2rMgtMeVHI5/lqFYgvSSqC8\ns70siE0Brb8RkaQRF0M6pe89HcLwMM16VTdUPmCohmmUc8r2q8Ynoi4IG/L/\nOMzY\r\n=R/aC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"0109f278cc7218bbe9bf66de6decce6376316b43","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.2","@apollosproject/server-core":"^1.3.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.2","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.2_1580237542842_0.25711456035456615","host":"s3://npm-registry-packages"}},"1.3.0-beta.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.3","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"2b200b29362854bb07a72ff29acecaca58ed7d0e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.3.tgz","fileCount":7,"integrity":"sha512-6ZUhgSf4VElbOf+FRoapRIlj5V1ihuLr476Lzi9++0Pm5DLLAOBikVdLW92TlGVoAVcJ3LHWFfs7YVeI3ddNEg==","signatures":[{"sig":"MEYCIQDx8jMKnyJEuTSD29VmeSUzS5KwOHIVufplgp8X/muqJgIhAOSJBlnKpF0/AlNNc4CE1lNyU41AISMWLn91n94DKhin","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMJgxCRA9TVsSAnZWagAAqusP/jpIERjqh7u9rHULpmdO\n5jj9WpIvGPP6Dxvgh2pgtALV1+MzZPchB/Ugv+JJH+vI3N+d+I6qeP7spi5M\nXiDPF/pWrS0zaAvpI2vy40UlmuKfEWBBP0zD/SqNTm64o0GeGki78Xtbezdb\naUuMxVLl2sFJ6GdGWPg1Bp+vfi5r9o85hl9sUjz0g960z7pw5Bp9HoTR1SJo\nvI7ZkUy+wbQ4oip5CAX26ZiYFCkParNZx8D8co6wsQsl/R6eBiV0vcxqNUjK\nPUgATZVIpvLsTTc4Mqh2biHm/1lRaYlb0ISFWWxaaYTIVrrf3mIY5lZwbAYp\nHxpVGUHFHFGnUz0lCm80hNQP1Yq/iPxJQ/HfwcR8XPwg7mxMS5F9nIl0Y76M\nw/wZwECx00kyVtefoLdAKfaYcmkwfZEj1KBEeKsOCuPW6QmqIZmT7ZOrw7HV\nn9PupIaj8yHBl0kouGhoZlFPIkDs7gVlUrXNRrb10ZeRl4VYpzrcdZCignm9\n6KoFNkN5+WG1L/ioqpBNf/7XwhABzuVJODaaPngTJLO8GysT1huXVD9Zv5UW\nv+BnzrtzSNpg1pvjrA4bwkoVDjqZEgvjznlDWvvw5ek4hQmr0/pl81jSEL2G\nCV3Dj6pqito2LWJcC50VwMicHVXHRCfyd8z7n0tyZw+pMRaXLCpeKVi/C+gf\nIWbS\r\n=U8Qo\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"1da2572c36b545151a59d91ec093f2d3e935a29e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.3","@apollosproject/server-core":"^1.3.0-beta.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.3_1580242993445_0.7020134638492046","host":"s3://npm-registry-packages"}},"1.3.0-beta.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.4","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.4","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"7b6c4d5217c4921c0e7ef8ec35cab3e3d494465c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.4.tgz","fileCount":7,"integrity":"sha512-ABGuWLQfKWrCbcOwuTzad1/I5Vd9Arl7WXiq4GOOSP0GTeFqOsCaAI/c0734dIIFmSUSTF+o03ftciWhbrAvKg==","signatures":[{"sig":"MEUCIEx8U2quHFRnsOv/5IbSI0QZz3128cnW1ZX9fxqdremzAiEA1bH6Q/PH1NThLS2hxGzYfW+JvfrkkdljaUwTNIq4nNQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMYhdCRA9TVsSAnZWagAAzlIQAJfAUQeePHz68vX6EOPM\nVqYfiW5xp7GuHoJEo//khaKu13+O3WxKDDxn3bKTzf6vsvIxdPJwkBnVnEAh\nWMdZYFGEZMZRSW1b3A60vNjRSNXF4uyq1P4PECVifbx1AIjLcicgSqj6cFGt\niSzNmGhipnQj2hraQ+EkKMnryoCa9Shdqc8xM0rcGDWMGAtNlgPNuawAtl/U\nzGdlYvfuGXQTVhYLEpNe681iZ6VK6X4fSQC6QXazfH5JFEHeiOT/XJEbCn6f\nsQRWDi5h3jSKwSXmdwYdqqD9mcoM+UecowgBCZPD1uvtNJN8N3kcJCtihmAk\nCbxPgVsCaJfc5UFPHwiuqD0gCsbVCizNnFlnh8B3HyLQIIS5EX19z0ZKWYSR\nTE90FlDxZswAHjOtS2vq9pEr5cmwblOzaXw9nKmItQ1d1LaNHV4BQ6sogkkA\nbX0fLFBKo5F3ds6RaUNPnL19o7d8PkD6d+h0tbZYc29BjSsruPkfRvZhPD3g\nKEXAX2opbF9TRha/363y1hQYmoAFdHFlCFrH8a8ImG1iG0g52D/EcIwijrHh\nfRPWVp1J4/w3GgNmeO1Gzfbbtm1WhffFOgm7quIr8R8zVh4UCcuapF5q9hu4\nBCmDuG7IyBwUPxyfYH49PGklDJWgp+1+iJa1d41qB+ty+UWf0XKPncXkoTte\nRR5B\r\n=cvlU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"b129d78d8be5a702603f594494719f1cebe0e981","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.4","@apollosproject/server-core":"^1.3.0-beta.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.4","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.4"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.4_1580304477101_0.18930821380193752","host":"s3://npm-registry-packages"}},"1.3.0-alpha.11":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.11","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.11","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"144ab1dc1a280d58f0ab9a80d878ee2856d962f2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.11.tgz","fileCount":7,"integrity":"sha512-Gb6tWtZWnkpZFFXC7vFSiupG9fcGk2Cm9xsbdNa7cj3ltLTWAWyn/D5rq5IOFAmmpsGKoOvH3TCiGlfQObm1dQ==","signatures":[{"sig":"MEYCIQDOysS9F+2IZ4j6OogAc3klLmKF96k7mGTauacTeZhIpgIhAINuIbqStxwcQTmtx38/wGfnoS+lpjtbU5tJer7Pctap","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeOa+KCRA9TVsSAnZWagAA7swQAKT98Y45EFJznuH9qwlX\ne23nV7WYIx+9Os77flM8xPNkdHbdBYFj5vecpBdWaQD4mXn1yytMOHHpyIdc\nxr5r23ljN/3xRAeY1lY1vqKRj7IrY5wEcZD7B+7IDFsNmQLjZVv46euEdkyA\ns2BevqtdY7X0KUAEC12YCXWFSMbI83p8O6NktX6+x6VEtWBuUIFc0yLa4/2/\ngedMlGI6rJKoofXtFc2HOOTYlLCj1tVqdeSO1rc37hM5PJbyWsOYGS0nh5dX\nxLUnxpIqLqaQlmgojr+k1mFAaDEyZI3J3qMm+IscO/jCe5e0VrqjNCe3C7mK\nD+7b6lPRGizkbGtkcEvSdf9bSnigvDy+IMMlcCIEiiTJIfO4h3Vtg1/HeYk1\nGN4gUznRWYvzdCVC3TxRi91Na4WRFpgLmCd+1LO4/nxEIJfVej84+LZklCY4\nhm44X7fRFIVOM3pgqgqWTujvEsblUPvftTOQ6XkFfVpVHtsy+alUdizmgf3y\nPlKPhsVWT5KCL3obEeYco5o10Lvq4mMn6rKPrbLTYFmocjVisQJD1D01nZn/\nvGlck8HIbl3upUa+PP3bQ+cSEBjGJWyCvnnx6lWUKqDKQVYweBeWYyeeoiHF\n1AiKF3wBcQj4OTmDVsfN9KJd/pKeWKNH2kbxFFAv1FThxFs5sw51zm9Fh50p\nWMc5\r\n=fSUG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"7294b200e72bde35674ac3f6a150da40d88d9366","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.11+7294b20","@apollosproject/server-core":"^1.3.0-alpha.11+7294b20"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.11_1580838794284_0.3447839406076072","host":"s3://npm-registry-packages"}},"1.3.0-alpha.17":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.17","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.17","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"928a47f841d9ce8737684502ccfa8c073fb90449","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.17.tgz","fileCount":7,"integrity":"sha512-7ktjTpdsh/RyOuq7hIKfEDnBnZee9bFRnsI6SYcUkw8IHKJApVOt1Espqm2hxV9RTUnbPS36RDEKPvh0LqaOKw==","signatures":[{"sig":"MEUCIQDkF3dtCFOgJ+FRcD+tC7T2yKtjTim9n17IWJm71lUDMQIgQXkq77aERo7Dr83okL+LJqOP5ZuhBqihQaDb74sBDnM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25814,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePFj8CRA9TVsSAnZWagAASzkP/RHZBvBc/Sp83P6GwAl/\nbn7btlOhtSW4KqoR+ZBU3MzivqBJuceQeBsHkiI0MZ8qV4sj6u+IAam/M+TC\nmLF/9QpAUbeAI+imRCYECA2sf0SLLjd9hm3P05pxtYpPLvlt6rFFqAKO7LDO\nZEYE5yHYFIU7MECF7VvNqD4DVk9N41Ezd/9Ns+hIabStFqz4w+/uWo0Jb6z6\ngnVa1wHiY0mOvEn2gJPyzShDYN1hOGGb7dlMaucf2O1ZPkpcmAsA5KHJInIZ\ngioswSlZIBV7pO7T8ErVWBA2cWsJlMJoIMnlnJ0WprKpJMdu2IPrkPyZea9R\nTsB9v/LTKO/09HFAY7f83OfzXGxbwzLvpY9Qeff9jp29IJIsFa6p18W0ob3X\nTY43qie1ZRWbVHRr4JWVGW+7On7xjLnWSnKWrMPsW6rVX5r9y6K6uHVLExhT\nf1sdx4rVwb0GNEmDg2HdOxsgzhc/suPG0Qvdxc6NoWZXWehF1CtugmT2Xx/9\nmJtzieiBswxuHo9O4P+v5sPHnswzaLzLh7eQeoMyFsimMjI0+TCGfg+ux0Vy\nyb+Wk+o30yw0MpW8qMnmzR0y+zBkLmUfUs0rBuFKhs/hMcca1wIXSh6InJT5\n4XxetW/UM8KNHFLflCjDkPceLOo3Pmch+XUj9CxBPKlKKy93cPk9SnUuyJYw\n2AJ0\r\n=Po26\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"d16c4826f9ee8dbdd66aeee1822effa9f4014326","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.17+d16c482","@apollosproject/server-core":"^1.3.0-alpha.17+d16c482"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.17_1581013243678_0.5112696352667014","host":"s3://npm-registry-packages"}},"1.3.0-beta.5":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.5","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.5","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"9556f06f878b9f1eab5767b482f21e73e11264e4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.5.tgz","fileCount":7,"integrity":"sha512-YGMy9Gowc5fJoTf2nW30DLxGhArhnN2Wvmy2trshe4s7lIHb2LfE1do2+CYBwLs7dpz+rv7J1QiNdDZISKA+UQ==","signatures":[{"sig":"MEQCIBQHLjzmfpRoClTEGWQRB3q+YncoIWAW8cI0/ulsNPbwAiAKwZwALYYy8OSpYuz/2z6HzZJbarDCcRfT4tQt4gEisA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePHLyCRA9TVsSAnZWagAA7dIP/RAB6N74LQfaEMYVFRtl\njDPJ217n6Mq0N1+a2xCZm49eoGqxNuSIDCaxX+WzlyJwChFPGQdGVyA9Te49\nIkkNIm/hErz6cx43JIwe8LBq6TGXWVchUoPpJjsPgdE3VVGjitnJKgkwlbu5\nNPjsdgpxVwRWzqqkc6pM818PwiUmE3/bFhO3P/11Ch4dQuvP1yaoW5tf9QTh\no5hNQb0nA2bLvMaPuH1qVWQHK1v7mS5P8p06cKkZx2iDC9a81Pb7/RtZsrrw\nkhkL6GnZRttF+Lr19qrWZrzcmh6sWG3CvjZqq4b2HMCo05/xJEP/buQCH0L+\nRFeQ2WofdvqxLiPRIamfzvYfYlo1Q2ttHOsvlP9S/4SCnX9SYkgdgokjn945\n2IVOiYmPpgPxE2OBth3/oYTnKa2FlohLV4Ox+Fl4r8t9pEDPswiTR8+NsA+N\nfwSPVpT888o+PwAtZQta3oer5Y+9wvJvNbTrZXujwl9WEzJFgl7Xmf5auHfq\n27bF18vVaByDSfON8noUxWm4mmfUmTpYpshk8lu+c9iiN/Gw6qMH1UXT6ZfS\nyB3lYljQTLBkV3zJ0TGVarm+U7jVp8RihLfOVOXqcXQG10YqtaHPm1qs6S27\nd5ItEc8cNQJ+JBq1rtXrYz5w13M+ASHesmFv7rUpX4DDn4LvUJ1mF5HV+SkR\nvxjH\r\n=gHZC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"e7d9bd731240476ea19530b2bc7ec66b70901402","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.5","@apollosproject/server-core":"^1.3.0-beta.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.5","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.5"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.5_1581019890338_0.41540232515372355","host":"s3://npm-registry-packages"}},"1.3.0-alpha.19":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.19","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.19","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"755d3570534cf2345246ffd2b694014b3014534b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.19.tgz","fileCount":7,"integrity":"sha512-6L3iAZoLQv4Em3RjkUDBOY6G9Kz5fjkMEo0FOqrH+Ht9CdQyl5isNwhIugiWF5DseVfSLSXKNsAq7RBw2q8aPw==","signatures":[{"sig":"MEUCIHN9L1IpxiANQbQ/w9m+1Su2OLO/GYBC21CVkc0BsEFhAiEA9ADSzW7Fp2TfbXzORecqFUGMxs7pQLx2izfOvfwbSJA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJePINkCRA9TVsSAnZWagAAqRkP/2VxDipxWimyhYKEzbD2\n1wUOzU9rm2JNvRaGWZ8wVDaKiOoU8wCXCCwvwtwMU6ug2ow1JPzX18IOgb7Z\nI4J/UCETlqvC9Tr7O7fle+jTm1rF8aSwwn6LVHoGJMQqee1IAn2JCX8RaJx+\nPu96ghRaQmkS/jU2FmovFs4u5tSBCLhR+vvCjHM4cGkGYTL2i0gTRCucxp1X\nON4vKI5ldavrOtTGRbll0lnDz8+nX5SYdwEha+72v2QoE53s1YiwFZjh4WcS\nmi+JmwLVcHW2C8ctq4sTFSXXGP4WKi9siakQrfsQvzvIyH7indMvVyPbO1RY\nMFkAChuU1vYX4j1l9lKQFu7sBWGSGRfB3f2At07K8i38LCC11hWy4UlsvXt9\njZ6g0TpUxDu2/tuVtT3Jp9ZiZ3IgIPsK/6PxSNOBwh9KafzENJ5T+/PacfXM\nbIJHFBvldZxFZe0WvSs4Gv3d3Da96dMjQtX8+TYPsaFqUuJAhl0ohG2Dmxj8\nFx6DM2584vDwWEYctg+nE7Q/vDxdNjh54yT9VQHDd8f9GL9hKwkwFjP7r2YJ\nT95h61UIL2l8ktoYrLFB5AJa9hKOO0gtwAA0I6PbvriNvH/KfbrCdhPhUV1T\nkZqkz6RWQcNf8F2XCGNOUVk8mRsFgUpjeAjIqJY0vfZw0VCkj/ej9uRi0bA0\nytnR\r\n=XLI5\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"16e8033ba27b8133042f1cf77a4a1982f2c48478","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.19+16e8033","@apollosproject/server-core":"^1.3.0-alpha.19+16e8033"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-alpha.19+16e8033","@apollosproject/apollo-server-env-mock":"^1.3.0-alpha.19+16e8033"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.19_1581024099891_0.21054993956650492","host":"s3://npm-registry-packages"}},"1.3.0-alpha.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.1","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"81f700ca799acd42d7abfde3db0b0a3757eae520","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-SGY1RspooUxOV7cCMX91qeKTKhV9apKePhHW2BtGnIv2SpvE86CGwklTVBtIO01gZ6AcDlgLGuz24FGuyaQpng==","signatures":[{"sig":"MEUCIHnZhnavuAsNqm+b6SO4wuDe5QdqExUYuQs28JunVrVFAiEA5PFuYd7sW6Fi0qCzrI+Rx1n+epFIMQicVfS61s0n9rY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeRFJoCRA9TVsSAnZWagAA4uIP/jEvAGUknHBKqJz49CJY\nu1rzdXUewmTF8hfEQP1GEZWuUR3KlPcOTQebhggSX/dwgW15UCi6qIZpBU4k\nsRSoZ5vSPfrwqKUoh0TuQa3iPsEBY2s8DFw/IVX0o8DODhOXNKFqHBWO6MSP\nbyclHgdZV3h1iy4HsvwTbX05uQtnMsuLawvHFugkjB1OfKowGkNz6DvKtLUQ\nrhIOeI4wWuW/4NXy5lrRH7KxvT30Fqan9uk681kB1URUe60yOBy9FsxTMO9g\nKturmZMZACnrU1wWixvHR5urtrWIrSJIRKT7R7jFIqZXrAAao/XITYoDJIXN\n6rxrjsPpmY/1JO2Si5ZYw1pLMIkOBHTv/sVhIbAINSb+JRhWhO5WDWS39rY2\nxr5R0r3HEM+Tll5Vob/1SzXPHgKxUEEDnBqmcTmtKIO2mjkfDpFO2jlOvK5S\nrbEwTDcb5YK4uHWR7+6R3Ioph8bvhsrmunw/+vfmXjH6pqHiDtq96UNln2ll\n6jdKD2lJMKzgnx3GiPistaZdl82YiLodUUZrETrZ6SdLUpwpk8ECrkLfpfJN\nstqBgrq/lP6XuZxo03uZdNMBiJS+xBrXr6tTQuWGl6xEXyaGS4qgDBIUqkZ1\nYXo96xU0hfJTHRfKwC3HQ6WZHeL3YpcamaeN+xF6/WxW4qkfdDeKYe7uEPN6\nMMJ3\r\n=3kNU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"c308a6cb7df9ccc44e65d73c3a9a0dfaf10b951a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.5","@apollosproject/server-core":"^1.3.0-alpha.1+c308a6c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.5","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.5"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.1_1581535847935_0.5497449606425795","host":"s3://npm-registry-packages"}},"1.3.0-beta.6":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-beta.6","_id":"@apollosproject/data-connector-onesignal@1.3.0-beta.6","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"4f02ee665262e38fee8f6937bf2421482ee29051","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-beta.6.tgz","fileCount":7,"integrity":"sha512-9MDcixvkymy0FRisvmvOZ7HAzG4+7HpZc9JsKpxyYJ+Dy9AiZxnqTQxIA1HnmTS9JJ9aet/RRxpy1TJHfsd5bA==","signatures":[{"sig":"MEQCICewslocL2/jVjOci880CnPudyim2mCCaMl7glvsEJEAAiANMqXYlGHUfZPaz2jqRQT74JDexyLbsjl7RmoiwKvO9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeTV72CRA9TVsSAnZWagAATZYP/R7f1X5akVy6vkvaAhrs\n+Z7OJq5aPfd1ss7tcwV/MPD7D9X3QU1Uiq3IC/CB4+f7bZZffEfzQhvcz/92\nmhsil0LvJscMDwDDOgpIo6WZY6FzPlWSK3yHt4m6+M6WavISchUyv2PmV2D4\nj5LqZ7+n8+kdZja5Th7cSUYesJStfcVWp4T+bjcjUrKY6bGLaR0fPWP9n6Bs\nF1IWpo66WlJc00zirWViDw5vl+Z7k8DgEYmJowc2EEhEDs7xPW0/qgtTfjlP\neMweaASBPiDbeuQPVMeaGHGjv6IaH805cvjvyqJKrqJ/iuKZUtXZ6wZEn7Qz\nLMNUFH+/bKNhswZCdE+TNJYmeRrARTqtpKQbitznjPuphTeP/2kOuR3YdUvG\nPasEKCwdt3j4iLhBpYf2VKESBHU7+MZ9PIB4I9Lu1qh4YwvFjbNahpu3GWkT\nBReC6u2nEM3IxLNa4eoepZJnyAgdIMaZl2cYpH/2PgiFMNek3ynjBGHhOLQM\nBt6G9Pj6QRqo65jf4L5tNvKXUNEVLImuU55sqgL2L/uj3RimMOXxfyFPPwRr\n+C1UlAKgULcGPWtsvhBE4gP28ykUO0cALYX4VSgN/4wsDU8sHbFSwS7AA+w5\n5jtiOnpmH3WtgfX7aoVpQe9pT89dS5hx+k8XwTVzbMaFl5mJgMrvj+IPM4T3\n0yhL\r\n=E9zq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"1a822d0545c45ceb655b1ce8b19b03b842ad4d14","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-beta.6","@apollosproject/server-core":"^1.3.0-beta.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0-beta.6","@apollosproject/apollo-server-env-mock":"^1.3.0-beta.6"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-beta.6_1582128885747_0.587422814177557","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0","_id":"@apollosproject/data-connector-onesignal@1.3.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"e46c3ae06a5a56ce343e76e11919487cf247fb02","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0.tgz","fileCount":7,"integrity":"sha512-91TbK1Vn3hxoHtyHqz7De9SWVXcSKcwiRk9n/8DF0qYsMNK3wsTPNO+lfdTayRVfKl6fNd2TeCxH+/wi7y4rbQ==","signatures":[{"sig":"MEUCIQDOmsXi8y6E1qTvexODEA92If0iB6L7rkiz5ZVV1XVnnwIgLNDcKwEeWmAi2oa7GHR+soDT/33sqV+scpt+DuhJ9zs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYUAeCRA9TVsSAnZWagAANwYP/RASRW19NXSFHr8rfcJN\nCdHlS7OQHs+hnFiqmYIoqKXOuDEdSak9q1Pw38cX0nxwONWbAgfjVe4tMjSR\nUViTayg0rl9WBpMPDNqqdl6GhnnSoWjrnBtpvPAUyVyfai74IslhqtImlgX4\nmAUaAHgLGIUT4zKX6yVFN31/mBDWbvdFg5Ni+1t8CQGwzYB29uGEyq++Jac1\n0/N/UHu7PL8o1BZzYUIQEZbO6q52kV/+rQAkq2DuL/io8dVQqrfqFFuss17a\nOdkd19sMOYTtbc7IW4XVqVWTapRxA4p5MN3pfleMJPL0t9PRaclPKdo5m3wS\n32MFKopFRiklvSlFyEPl6hPqhuTklw7IQPn4ZLgLCOb//crawh0AK4qulyjk\nBVTutOFxPcuSJKmNL63nfrd+zm4koZwx0NHBa2kQygdsqwZdthjPynMauES5\nj6im7mlU2dOr2kYSmgrwr+PcaFXUnDvWt0EYQ8viz/bJBDG1hhZCw3kqRaxa\neXKei5YYmAM/W9xI9YBlCkoG66RzA0pGPQcPHEMXuDme37mhTl+41DG4ZZrk\nGZgwmtNBsbK50FkcB6N1Jycoc0JrtwYTxDBnoP8SRH423+hpKByPwNSXKufL\nxbbqGokj5yFMiJaAO7wkeiYm2Tm3kviHd24VzkFknqnby3JYrmHQ0aB5rE8h\nBjSN\r\n=2pre\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"aa1df181f575995941c9f879e45c88bf72a84150","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0","@apollosproject/server-core":"^1.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0_1583431710552_0.10449116485421905","host":"s3://npm-registry-packages"}},"1.3.0-alpha.21":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.21","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.21","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"7f69c9b68ddc98a3588edf022fc492046030e249","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.21.tgz","fileCount":7,"integrity":"sha512-p+M9/X9zKFIKqiGiLwsjMX1bx1oEm9/HiK7J82z+BdVVUd27Di7AK/oT48rjc2KBCNxMu3/PG2Dv6blwIvpR0A==","signatures":[{"sig":"MEQCIDaCcSSrDZG4bwXVDZzV50OWNpx7VvjWVrwCSJFMD4OZAiBeMr0p0f/uWwmbEFfFQNszea9WKj90nrHxReWCrevp2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaQmqCRA9TVsSAnZWagAAnhAP/32by91RMTOUyGwagT57\nebmX7+jeA7aRlgJIQpIDyElNMGmXpfEZ+6NwWfgTZysNHZhnZJOuaJPhTlkd\nJZS1tPVPV3W9F/mO6TAbFNcYKfHAtr++Wg3u+SHo1NGNjl3NIAjQddaPoLkj\nVEMi25wI6MxsL4xNfdgVMTdVMF3EPqRfSRPCIT1dM9sk1zp8YVYY5GtgyuWb\neAB54peJtg0uPrBeiz9sGhhvqhmeohaYot/jg3CxH7rHvNJE0Y3+G9/HNlAC\nl48BTkW/zRYF0AD6/NGcvyClj28JwbnQ+FPHTLAMCMKEw0KrkTi617SFzkM6\nKVOCWLuLCfkQZFkVz8BpQn44rFe4D1VvnWnaHeJUZm/R30KXRpHCOQTuQWUH\nv8k9it75F2kgBWfgDiIxSod31ZmghFu3+1gOlrnlspIMWqOhgaj1p9tvMkgs\nHKccG2hGh0NaLvbii3KYmaAPiQlpPjdJzrXxwX/0SoDjrQgo81GuW21RLUJb\nf677V82qnyYnGHT3zRRHEmrg4JeE1s28E5IMZ+wB7nSCHskng/0jaSuMWxkf\nVhZGjp4maJ2PbgxBLj2FB2UEE78NTyuy8+B777SdRU7L9ppqFhrpLInVAT3y\nlK5pkPjFoJgjFelECShN1POR1z3XNSJRRU7H6fn2bPi/Czu185CmvCKerPhd\n8BiU\r\n=p7fB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"1fc1478dcdd411c3a56c58346c7db3eb0c8b49b1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.21+1fc1478","@apollosproject/server-core":"^1.3.0-alpha.21+1fc1478"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^0.13.2","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.21_1583942058494_0.593108843592931","host":"s3://npm-registry-packages"}},"1.3.0-alpha.22":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.22","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.22","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"de53e405531de30d5a23fceb1ba2e26822e83a05","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.22.tgz","fileCount":7,"integrity":"sha512-VtuNV7nghRr0JK+mvslrh0E3U3fwz3tDSmw05RNsdpUl/IEvk2M6gWmMw9pyc3/yYG6nc5aEaOMARm1wTA7Kcg==","signatures":[{"sig":"MEQCIHHM2L0nDVT+y97/xaTJyy0FZs+dkDRsT9hSX4k9ViS+AiAau3X4RxXeqUllNa7DyyAc3JJQdXF77eznqfI63uqloQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaT2vCRA9TVsSAnZWagAAsqYP/3n+hGZk44GX+c6WBudn\ndSYi3PUEOuW7gWTz/HO04L/rGpfQR7f9wMXMSaefFLt2LeONrxWovpk0rYDV\nGuqhaqJa2+JLfo5ypkCZu7UUrNfai4zbpN3y3aLFTpLs5NlnmHPwpvfHBHBA\nK6CwhIy8iozkCD6abkv3vDlx2484iOmJorNjw3rSGa23aYQqJXa2+7eLao8x\npe6RfIty1BnywapSt4z26dCfCjNtJsYpjt1rX/7Nj9BrBCSYHbPpOeoGOi82\nQNpcT+omD9B4Q8UPL4efyMhQ/g7PXHhFsBsQxVb9O1BWhV1yIXV7IqA5t7ZB\nuGviVyhP37BIPFlyahV8hbiuHAkJm5+qnWOdYShY/+CroaxCpz5pbtq52Nmd\noyBVOrnhVNLbYYiswgmu7B8WCac7fE1R78U/+guEK2cc3vkJscPtLcRc1ihS\nXyHNLYv1ptnAmim2bKqRHicmtPlzCF4tA1mAEh2fBqGZbCPaGWuB6q/Cr3kk\nPB8fgJV0HZbN5IobonxkLMknUMZJN0wLjIUoduCJXKPVQiJeXXuJnwDVyyWM\nPMeIv/L2NV+udsVLGZ3568fNlLWYO3JWAkHdNAhQtZd2YN5TyemeBJmHrwwc\nq24AGR2CDXXZo77flihnSiTb656FbsgSSZRllLzcpC/Iak+0BmZRSVQeuc19\n6iy8\r\n=EdEY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"36aeb1238b09c74282303e2b1e1ddedeab9cdb8f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.11.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.11.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.22+36aeb12","@apollosproject/server-core":"^1.3.0-alpha.22+36aeb12"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.22_1583955375067_0.6226736782980784","host":"s3://npm-registry-packages"}},"1.3.0-alpha.23":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.23","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.23","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"bb42b8bb17618588bc077167d7b511bb5de94228","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.23.tgz","fileCount":7,"integrity":"sha512-ha455N8SKtWzC7cXZHhQBCJCe/w4XkuWF1htR8D8tF29J5blkf3f7LVzfqSNAHghSujCAVlvVgVzTohB/iRu/w==","signatures":[{"sig":"MEUCIQDccu29fjPoMmLjR/3H9hrzyDtukkBtmuAr3DPDskfLxQIgALE3CAvP+EcaPJZxaez/mj6UcHa99QaRNEcox4dXzw8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJea9XTCRA9TVsSAnZWagAAvZwP/047q/Y0HkTc+UknKyYM\nScQHO+x9WW9YDGI3p2vrX3k701diVVArVhGxDOtKEchNTWm6f8cduaRzgoqe\nMWOhxk294VbPNielIEyEQ4ILqWjRRISTy8thKY3eRWsu4cBDzMzxeC+wGF6y\nb0EV5cgnES+NrkI3GRx05lEOvTHpwqHpUKYj4EDlxuV+B/R0w+K84MCL2QyY\nSjO4XP2jh0G96b2gqMyudLWvAa7Av+RO3xBdR64qU1DkXvar7Z6UJBhs0TEd\nWqCb6/+6hL6HgfZq3+aGGd412a7yfH+dGWMmUuyWm2hkpvznjQSPTcayCOj4\nNfGMu25w7JD6Y8yVWHzIkdKSXZxXUIZNuE9dYJLaeJHUnoJ0sjN+nqyRoZcE\nKq2t78mpFLiGspH/jTZc0vGQPlSlc7CZXH15Bt7rbwVpvyI84W4zuivp/00z\nyv565qFnKMTF+/J0LWlICwjAVrNfP050pnfUmYPe2GxqPNV1fGURDyYoJ8Vk\n3xz3oJUf6P1kdf+FWC6F8qY03iz90kiNpvowZCu4z/ndXaVIw9JRT4Azun57\nXr55npMD0072UAvbfLYXX36FSesQ+7h2NOWieVMC42fTo82eeSEHObLZds1y\nkqBwat3LEUYRnWq/wr5xJRzoPbOf7R4irQ5XulLow6d6h2uo1Q9VW/sp28fe\npBci\r\n=z8mz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"d114e1c5e19229aa95f88e787c10f7e7be82c217","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.23+d114e1c","@apollosproject/server-core":"^1.3.0-alpha.23+d114e1c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0-alpha.23+d114e1c","@apollosproject/apollo-server-env-mock":"^1.3.0-alpha.23+d114e1c"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.23_1584125395249_0.33683085364776955","host":"s3://npm-registry-packages"}},"1.3.0-alpha.24":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.24","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.24","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"430a1c08e5214e26429a9f8a52b26ef3f65ea343","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.24.tgz","fileCount":7,"integrity":"sha512-BeRAoWJO4PuQu31rXOQkCNKX83L0HKccALUQ8WYz+PVoXfXSNeaX3eQJueKG8PkcYrZmjCdgPy2tsNBqOpHwxw==","signatures":[{"sig":"MEUCID01T0N5N8+PNAMPCQNo1Go1RZ7u5DnxSwRO68ke1oeKAiEA3sMliCGtGaucKnmQMwDEVLNTUNti+cLx2dd+BxxYzmA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJecFPtCRA9TVsSAnZWagAAH8sP/RSrG2olLslfyODMQEac\nxnXnItEZ0bcYi05H92dNHqbDXX3v2A3fvFi6tj+oaShy1fb/DauUi3IzBIJB\n51wIAS6uZTH0fPRy/a9liFvKLGAeCGGeHJtLWdUQRrh2CpcrMT5a3SMVD4dk\n9gpo3vDUwXyqQ9o06wpZJXB+6OrpW1mT/FKYK2HlTKvJEoP88I8Gqr/BvP2j\ndYhYhYiRvxxdzC3ar507/i+PnZBtts8OduwcHY/vwhPssifLBmgNGQvNqETv\nmNsAi9M9mhb+tltD4y95v/EQG4Hu0VkCIPDHSV9MTVhNIfDnHFN50nZBy2/c\nIfvxc89MgrAuYjw91MoVJmMvoXV51rxGxaFCw1YPoEKJgTO7ncjULzgjWn0w\nVzZc/vUD40chKpNL83wqQ5GhOllWQns6eNigyos7Fgb3X4bmqS+HxH5BCHbE\nrTeTOZPCP6Z9ZLfZH6z5P99HlNFGJjEfKrvq0yNkqyq6aSK9e9V5mmYfMNnA\nqcJY8fBjjhBGebr6KjPFi9F1Qlrx2ZlXMVDTyilUikDEsegF3n1IG/mpqqLF\n1C5mqSRxJH/P88MseC7f+5NwiGCBwNh8HWEzPgQajgLGLi6KVzh4tZltVbuE\nt5b0QY6y4nGWCq0XuauOyWGshijPprBEt5ctl6efFCdWLaMoceWPqvPzpyfg\nQaJn\r\n=KF6D\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"ed1579e630b10412fd3025ced9c66e0e3bc2be7d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.24+ed1579e","@apollosproject/server-core":"^1.3.0-alpha.24+ed1579e"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.24_1584419821093_0.8041062487724224","host":"s3://npm-registry-packages"}},"1.3.0-alpha.31":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.31","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.31","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"5631666e97d57f36df93b691be9522015668c04e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.31.tgz","fileCount":7,"integrity":"sha512-Ig0o3e2D+08X/ckdMfLbQsKbokQSFeSRyKO6G2Vw4Xf9IVtRddFLYR1eCFGNxolJwtFzv4Ue2tkqqWsydxtLTA==","signatures":[{"sig":"MEQCIAlPF87pDMsKPySLLRBpHC6+srsk4gYenr7Bww39RhHwAiBCF+i4XKoiQkFhD27Phy+JfcrRxosWrIBXw6WaNTb1ng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedQDbCRA9TVsSAnZWagAADMMP/AzhtoBUYvo8lZmGHhcq\nkUoFcdSa5ghmhQfXMeOoYLSv8W4CDm0Tmm53vfb6ACwLrb06pwoK6Odlvf1t\nTsTbjs5qedhxblwhj9gsyrTrv2b5doHUm3YHZtEQ3ORTd4lO2M2ZY8mwI19T\ngBGS3mdGrLTk6z221yOONDgQmn44zHr4RWxJktOPHKjsGayIthR3S6hIBG2t\n503qUNlS4R1GNfYNUMj1gwAFQoJZwIEG37E6v1iFchzUW6+jzK0/WHutDDtJ\n8vsG0UAOYsClAu8YQcUBLfzIuT/W2c4HLoaAXOoose60oTZ6pyq6chzD2wgb\nBKRg73yFtGIS7SPMjBFcMs+CH3KcoOYCV4jC2ovQisASmH6FkBFLN+BIJPpa\nAOvMnHK8HxKj5y8txJvo2VxgtFbypGKZDWrgBDGOssSfBnbr6e7plNBHT/JD\nROUZJD3Leec+z0nS3bV83IqVWW4UjLfpmw9t51uEFSDYy7cJeTdZklwBsrIU\nAd35+/Uw5hEjBmgyO6gcyVZaBEs/dlumWEbmMVXQwtoL0u5McWH3vVGWu3iS\nh8fYGd7BGgowIm1g1gNmwdOgdKDVjtDQwuE4h2dDOFVcyhnwmFuDTnpBkp8s\nxlL5wUva/smAQrjXiS4pNEascWfsLJ9PUfjLW92ZUEbmydDIO/1VE/C6UgSO\nihYv\r\n=Ggvu\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"412bdb6e0d8278d438bacd8bbebb11fb21440813","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.31+412bdb6","@apollosproject/server-core":"^1.3.0-alpha.31+412bdb6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.31_1584726235305_0.4492315929274957","host":"s3://npm-registry-packages"}},"1.3.0-alpha.33":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.33","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.33","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"848014c32daf4a24ae4afb2e749ad92d85a8a91a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.33.tgz","fileCount":7,"integrity":"sha512-7Qbts6jMP0O+kc9xaXC8QPjEnKcbu47MKcTK0ultMZ4/bhhpPaD+wyXEexG6sTzAZQtTWp9nOpR7Vj06p5eVxA==","signatures":[{"sig":"MEYCIQCrb6Tv4oZ+eLqztKR4V4WlE/FN88B2WtCucf2mcKW++QIhAILN4Nnv8g/sle7Lx9LI5xcmoVnRLDBqhHaGLfZf0oD0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeff8jCRA9TVsSAnZWagAAoQwP/iyJ0+h6H9qpNenppQrz\n1OWu3H0hQT5qkyUt9O9YO0rO30P4ciqww8ERMeQgOuc6fEtO0NaqSt9bBEEG\ntiJZkSOR8Gai7+UFhFE1hix8bt1ONr6ryEQIIJ4FZRSHTuwIG5mhGZHVrD2p\nC4rpMxkRQCTEInDoGdqTyuM3phoyIiZwxforQqIgKFuTMRP9a5492gDqb3Px\nmb2PNJXA+zl2tTwVYXSoEZQIbVfsYzfFZ2E4z5eRq4t+dZfLDJf4AfsNsbeu\nWPPykQf82ZX7JIgqNR+v80yt/ltNP1kNV0V01zrcs2IMUQD6KkS5jSgCzIsh\nsvbuLDg5+zXQpnXH5rpGc7mz7dVvY9hQYu/W/yW7I9JTWNmH2xPoYCcexIT5\n6NIdhbLIbZGuItJNWwfv0D3+tpIPlJ6egcpoKVrl0bDDXdnOfd9kQkni2USp\n0/ltlD4U6G+N55OWdJDptdhb0wIDCGQCxz9ZpT78Oui0VmfUkjLaDRXNtf8V\n9rXZ46bZCulUaoxhVGVMcxMRGL+mZBZy8rS83ymGFEtQAWXowrC9ePzdG/yo\neGCbeJ9gXJCuVpZei/l7a5q1nVyTRIHcGe9A0qcV9YTRNkClRd9zDqrGGnEo\n6rQkZKVNvbbBND3IbcpfVJSwqap5UemD8PJHfMyXqGVmSe6ACqlYsZUQ2cJD\n2xWu\r\n=B5C1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b75278a36d14b1a7d06f04f2f0b6cab364ec31a7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.33+b75278a","@apollosproject/server-core":"^1.3.0-alpha.33+b75278a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.33_1585315618830_0.8334578309027374","host":"s3://npm-registry-packages"}},"1.3.0-alpha.36":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.36","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.36","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"f266157c256d3cc219d972ccb40bedc669a72da0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.36.tgz","fileCount":7,"integrity":"sha512-nR7RyjNHo5Kv+RTL8CSOMOyTRTwV0J/zIbdYTevj5FQh4lYQwn5Y39TrlsbV00QoFh5khm4a5t/i7t8XQ7ZJbw==","signatures":[{"sig":"MEYCIQDJYPP+SBaatczJRK+z4nylMvjzL8saONmkEMlW7AnZ4QIhAJQFVzgsiZ8wN+SNaXjk0PnXtfJMNlVVPMXvvqybH26L","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeg6R8CRA9TVsSAnZWagAAYtUP+wQC0GOKx2jpYdT2X3n8\n0pmSCZPtp1C+F20XOOuMEooOZKCiwv9VruC6Y/VdVAI7PEUSl6EQIMrnXQt8\ndfprH7zjN/OgJchTFLb67OI8hoXNkJKENgX2zUzWRn+9RQIpgAkuWuMYtwSi\n6LlHsN5Cney91LVJnqZeZYHt+nWmP2IdAZyzmkuvEpnYjlODJT0zn0uVSPuJ\nhP4THfXQZCGjSVxmL00Ek5Yj3oAEhf1bfIEiTBbyLLvqUuBXoLohoaCxL/vP\nmvjKnJqI8BqzYIZJwY26acmHFh1V9QZK4HZ9yvePE55x2oHrpC9kgQsLWjyw\n+1TPVVSH/BaxOZts2t9gnH83G69h2pLxlagaIOROmB3l+YgPPuMsHwlI6gHk\niE76flU+wFzuF7dphJr/HLxng32mLXBnR2uN46wHnSQdNj1RhoC9Y3e0bptk\nO5Aevt2fQ9wEGQYw9MAeq0NYF1O1rzSl8CV5t8iQ5cSFsMSWPRC7Et6EO+io\n4YirUyL5DY4lJBetOi++XygCFKVkQRT0KM+SA6vEIHMn7wDQereaM+F2lpQU\nfob6XwYZknXqnW/Q+A4r//hqUDBrkyz68B3IWvCFvxRpdin0WqYe5IKnKLx2\nsPrtDChHqWdBSrH73+i0AjGjtslTMqae/6T+Gk1LUdKbQb0+wfd6kU6TiYAC\nrcSf\r\n=PQsb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"ab942980d47991917257f96733d2d876b384735b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.36+ab94298","@apollosproject/server-core":"^1.3.0-alpha.36+ab94298"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.36_1585685627969_0.3537506925327869","host":"s3://npm-registry-packages"}},"1.3.0-alpha.38":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.0-alpha.38","_id":"@apollosproject/data-connector-onesignal@1.3.0-alpha.38","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"571dfe776b785a7ae914077b075f7430e5233def","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.0-alpha.38.tgz","fileCount":7,"integrity":"sha512-3R9evbGpu2YgWVOHDr3wulXYhAqgHbzNbbiEUiXBoAZc/A9uiuPyp2sk/RNqOVQfFpWHgHWlj7IO/0wTT+hQFQ==","signatures":[{"sig":"MEYCIQDXdzVYwyWxOZjwtQDVdlO2cCvBP4bo3yhA7wZxQWTE5gIhAP6PBWAJB0j2dDS/zwUvTUg/sEokan3d9pQzk5sSgOaU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehWH1CRA9TVsSAnZWagAA1roP/AlmjF0a/qboePTPbE/I\nFhvivg4eE0S9v575293a3sn7MNj/rj002SSi4wbPJCEmXW7S6vKUd3hklRrd\nylal5xY/dVKulkv1cn9R9bp4CBAuZEqdyU+cVIMn3K1LOpu5UwN6g5wrcEvx\nhcaleEiogujNcn4voo5KOaBbR29mpn7WVVFSfHLbOxPKPrIHe80MMMIHN1vm\nD2onkqlfSr4ys4D+YaSJVKTJtAMygdhikZbfOQCkAF14L+JhFRr1PRv32PIQ\nbifZf0DobiuBSHoACOvrf0yQPyPHevPnbzn7ODx1LApRA2fsciAjXWEwIQPS\n1NHrMtW5PjkrUcQN0AcEVX1bvkh4gIwkQLhgQIbtxigTsCj5VnrHAlJVj6wo\nI7nJcwjzgynLkdOi9Fr5VhnlPxe78K6kRJmrfnmPa8EVaogo48R2QGc7qota\nJ9ogGacjYAXEbvatAjlc2AHlZu5nfV6cXI6LpzZIGFNBtIbutj2LROndMA1k\nMmpLdOGzxoTHgllzDdO6KNDhf5rJ1l354X7V+W0DD0GSwoMVmnsdp3uncm+q\n7YkDhxV8kPvvyfLKP0ikdYGdmB8ziuPKRCnbmfaACDLDEtrxSROtM8iReI0s\n/ekM2K5G4a0Tca79SO2cOKz4U5pgbZQTBV9b9hmPxd3zNp81JFgxobCXB1M4\nMMw8\r\n=rTtt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"bab4733f0b94a9a9d6993c8f8d9b07dfcbb6d334","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.0-alpha.38+bab4733","@apollosproject/server-core":"^1.3.0-alpha.38+bab4733"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.0","@apollosproject/apollo-server-env-mock":"^1.3.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.0-alpha.38_1585799668838_0.6088520341921726","host":"s3://npm-registry-packages"}},"1.3.1-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.1-beta.0","_id":"@apollosproject/data-connector-onesignal@1.3.1-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"ba25240ba848345efc6276202d9cca9718e7f622","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.1-beta.0.tgz","fileCount":7,"integrity":"sha512-H3TJF1/rrF8l3vDjVYb3eDG9i+6vBrijSKZmZYXsnywOeIywaC1ZqAQwGWZ4fi05SCjLYlJBGZ7fHNYWK5MmZA==","signatures":[{"sig":"MEQCIBSN+J0TscVuOQIxX7BnVkn8ky12nBqXslomXfzQ99+pAiA9NsrmKkaNDht3qIGWRLPCB94cZRsS2dvaYoBJk68b+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei2mZCRA9TVsSAnZWagAA/K0QAJk5E3TKPyOeUcOUoUk1\nKDXAMdLQHRuiq+xlNtM5VdHE/7RcV1874x2IULJghCZfs+RNoV4p1uGS3q6s\nmAPvd5fTUwGwyCCq0EuwMOOPfYz/P3sbcJZTIlmT6UBEPivMUv6sMMli/zJS\nES1+GqkBzP/7MH2KxijzQlXcOfd8bEdOh98hNBXgsces68U3ADP3FIx078oi\nwEshdM0cfPxPWlbATiuTHGRboLatKS0RD0wiutw6O/WPjIee384sQjAnCgEh\nALHv568hO7MlND4/UsRfXPUp77aSos3/qx6uyKhw0DpAp8pN5WXPqImPX6sa\nZQkIFNJPir2fU0dGi2uy2ofGCC4Q6yNV38B6Uyr0HfS9usft+xPi9/mlZrsL\nzPtDl1MOSnkhqjrpjkD+ueHiPeQLWCjJdnLlobE/33wMMxaIm5RB7dqwHWge\nAophvsEp9CiHZTaGOC3t6Sltq48zYMxmeL/tCMBt0L5RBAgV+LAvNLsVU7S2\notR1qyl6e2Q0UdNzVycHEvYnvEBSXOVQU54ioMBpYYRz3hmSdOnR/l3/a3L/\n2hqSyhZbYdqBq8/aOwsIPTNL1x7ujDMHi5yS3iTmEyMCLvbEg7rTt7mEJVza\nDLp9AAGvr56L1/fAU5EKEAxHz99aGz42Wvi/cyq4brR/8NEUFEFYMTNpyk49\nXB0l\r\n=Efxi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"91cbdef2f01893967018f8303d86c8c1a8625ec6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.1-beta.0","@apollosproject/server-core":"^1.3.1-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.1-beta.0","@apollosproject/apollo-server-env-mock":"^1.3.1-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.1-beta.0_1586194841571_0.25932494627554425","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.1","_id":"@apollosproject/data-connector-onesignal@1.3.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"50cc32b9159e9ab08dcf4ce93c86c55715ba3391","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.1.tgz","fileCount":7,"integrity":"sha512-SWUrZoALlqH1YOQSHo+dYA2Vbk0dWGr/rz36UE11xNhemDJAxeLVDRlsloSD7JiM86rbPemLWNPxH7Ga4ROzTw==","signatures":[{"sig":"MEUCIQCPY7K46qSMNxseeJzWR2T/6DOPUAFIrNqGMyBrU5MPPwIgEhMz5wpaIrtx/ISUiv1T8xI+e1O4SBTZQcr3dQv4xew=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelH6mCRA9TVsSAnZWagAAH0UP/ih9770O8MjoR57M/vxY\n8PT2hpTs6HsSAooWV74Z4eiuEVKBKdOpawqtDwMphAhM00KyThKZmSWyL9gD\n0CRi4KqtbXEoPr93impdNkUY+5stHEmFl92zgtZZEjLin+oBwlz64dhjNM7k\n7+pad2hNk+xjdDDD2OtX0Wqub93yJJsP71I8ic5yrDrfACeA+jDq5ADvMcWQ\nh7cz99ItI/DrWMqfMXYY45bMsfFQrx548YT1Zygre62vcQZav73gXxCNJZtH\nXWTr61eEUgjUBlpL2H78ceC7EHquKSLZLxjzTjxzR77Xc+PPs9Bimpqhvh6Z\nLoMnHKH4RmGjtwYozV23udiRIk6LSkogU2pfTlCWNFTU/oLOwo9RDTfatun2\n8M9e61UV7M47I/d6Hi9jmmPbged6zQFdJrPUkhHaLMCfxYv7dcpvbLqz3Lo8\nrhnShj76wLRv0S/9t4CA0bp2YEJbq6pZYH203B6EW8x8fTEYjyIk0nbKfgRH\nSpDFYvqrNaLfWC+NBOk8tbJpg5UvzFZJDHsrWyrHfWDzdqpSiIpDSpKopGbD\n7WB0F5J7smsz83x6MzeYqlK540iuQi4dpyOyMpRYdIdbrQowDxN9H9Y/6EXe\nLe7Tgx2Pfd75gwJXt3SXHMwijemoho6eF/ULqzYcsBavM59llsIaro7tG8gk\ng47G\r\n=q3np\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"0265946d0836a6c9b373a9e07c502eb9f740332a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.1","@apollosproject/server-core":"^1.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.1","@apollosproject/apollo-server-env-mock":"^1.3.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.1_1586790053468_0.21504251714694522","host":"s3://npm-registry-packages"}},"1.3.2-1.4.0-beta.0.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.2-1.4.0-beta.0.0","_id":"@apollosproject/data-connector-onesignal@1.3.2-1.4.0-beta.0.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"d8c59ac6fbea2d3253a7f49f010f0fd82a5dc665","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.2-1.4.0-beta.0.0.tgz","fileCount":7,"integrity":"sha512-QfWAEmaM0TQruBOrAaI9RPtRzU+/mY59lOdpTv5UyuDOOYT0jCaL3kaGCXVve5rGKY4iZSFCzZoVvDz/Fnb6Kw==","signatures":[{"sig":"MEYCIQCEoZkwpOMdHN6ehVIQbaI6faM3/2cHTPxWY+7+3+9ejQIhAJSHjDFm6D7JGRbEDTwRDSWA5HJZQjR/pOYMJJbrFyfb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25824,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelwQQCRA9TVsSAnZWagAAQSgP/jGyocpO9z8Cxq666GQe\nVlT4vnRwejAgDG9U5djnzgmn6pDfmNGK8mivIVioqjqpneqyDk6sUpSY3+mg\na25hqZl8lkdl+opchXLG5VgjslmParto/9Bqop3K9rkQM4RqDh0QYEcZLatv\nSIA7OoxuPBnmnLVj2GJfuxkqqngWWyA5pmFNqDCaBWGjiCRhK2JdeXerF3xE\nbKeVac/Cfv6bYX+9N7NyX/J3SxGq/xDgvbeazANgBrdANeFZP6WXAS5L8xxJ\n91r8rDfTEjFahdXrnSQULRk3vL5dzImc7E+vGz4GF8x5nLukp7wlCqIFg/J4\na8pITW6Im2xFi9Z7HX5OP1EF6Y5P0QYFW5pIkihBoaTFzh3diB8jc47lJJHt\nxMiWYMO3h5CRKMdWwOwX4g592IPQUUWt8HHjYhkf4NWg0jFmcNxe1vK/YRTH\nMbWfXTHPfC//cE6ltMG8X2HY/IluY3At6BHThSdAkSMDrnVnHjXlZ4cfdt+g\nkk9Crvt4H/Azj7SQZMexac4B2kJiJPaYQwWPko6pEYr5ZCuEdl5vamZLulyL\nVovZVKSEwmIs5aadG3cJXi10SenI0g+5TELlEgi26vCkiWVvQZHQYUHpHX03\nh/LOcjU85eXx+Hyu9Yuyl6iToO5ZdUPBWAy+DQEIs9hS3HCVDsq0szlfYQNR\nVdEy\r\n=7C6j\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"140434179bd91c852b3315f59e9317dd51d410c9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.2-1.4.0-beta.0.0","@apollosproject/server-core":"^1.3.2-1.4.0-beta.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.2-1.4.0-beta.0.0","@apollosproject/apollo-server-env-mock":"^1.3.2-1.4.0-beta.0.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.2-1.4.0-beta.0.0_1586955279839_0.6917305292745637","host":"s3://npm-registry-packages"}},"1.4.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.4.0-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"030c16550733b12d36bd07ae3dd8333cca7ce5eb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.0-beta.0.tgz","fileCount":7,"integrity":"sha512-CFD/NUpROZCwV4ZiT2lmrEU4RCfoa4UZdWXsmbZ7COkpj6z4ac7TYWtwijrjS8lbvaq6d0AwX4l0QufnI4ljjQ==","signatures":[{"sig":"MEQCIDeH1Kr+PqyL34+Zpyv9PU4G45ZU9sybrxKSsk8fNSANAiAyg572G/sBCZCkFWcTLslkEjk7kOH/amfnSXyxALLyIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelwUSCRA9TVsSAnZWagAAOxAP/3ReTnpr7t+Vpp56+NDB\nrhAOninyMw9t5BjQzDWMSesoJ7UjkYuZZfbq06FI9OCg1styrpeiZ5h1x9WR\nN9q45hS2YLyoKnVzR6bH/v4b2QEseu1ywdUnpwSXy1wajIhEcaCBzudujDh+\n6DnmnCGn6fu7GKAhEc5D8ecKMZoHUvv2HGT0z2t/fOFCi78UsgL/lD4WjezM\nO+HzCt4UveIR3UIpiZ0M4KzzVq/JCLamZhJL3UXcHEMxpf3WH6ZUCEbpS+JA\nfJ6XtY/FNAYJTuujo8YHwfdy4AuSRZvgP5Cf485tLOmDJcs68YCbtnYnkJPD\nLcRf5GdtnVu2WoMMwIpLLvynke32bZqnLC3zusi4rNxJ4YrA0GwofY7BXklg\nle2Xr785fWVh5j3wI0Djn8rSK3kvPx8Ltn0cvf1z7BZ/LQ1uK+3CpXOgdc9Q\nmzyncr1jgxuqq/9aY6tDjBkLzoRQPCmToAAhAIlaOYNzBO8BasxdAw7s866h\nF2XHeRKctfBXB/HT2E7uxB4f7gBGsAIObSsn0A/DcdfEtB/YkHPfgEiGIJEr\nIgFGU46Uac1TYZQtdZWRNuRAjAD7Niit9ddlC0cofK3YKzv+4wnSAruyyMPy\nh5zEZZTBnunaXTfodgN3+ZVMQfl4KQ/Su/jQg3VV3o8CNSbSPZq4SxiNaJxs\nxgLZ\r\n=LrLK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"b711cb4238692477cc28e42bd5e6024d0f6de41d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v8.16.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"8.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.0-beta.0","@apollosproject/server-core":"^1.4.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.4.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.0-beta.0_1586955531223_0.20512533005791744","host":"s3://npm-registry-packages"}},"1.4.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.0-beta.1","_id":"@apollosproject/data-connector-onesignal@1.4.0-beta.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"42d7e2721b251fda3c47e0109ecb50ab575ad4cf","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.0-beta.1.tgz","fileCount":7,"integrity":"sha512-G7XJZvaynuvjOrl+KDuPaP0EEimB8QT+5QdJDIkDl/GUyTdgUaMFK+WVINDM0M6mAt2nldgQBkYAS9+P/7o59A==","signatures":[{"sig":"MEYCIQDQ+N3PJeJ5pUDaMJgTu+vEUxNKYqAcc0BAqT8EO4ekQwIhANsUzhdh0I/lcSRX86/k4I8rD6JKskNGRUXeaRRUPfNm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemhR3CRA9TVsSAnZWagAAjewP/i75XU6NfbaDQwW5fAIG\nOXbMymVU6NSE4En8jQBDVdnLrj0rrQMw5/HZGI3gp9H14EgO00+ARZaPO5J6\n34XIzDDdFxMry6JNDNKbdYut3mOmW2eR3yX6Gd/rM56iPmBREbSxsb8DFIhC\n+SRpYV8K/WZAn2+Eu8vyZ4vtQWfW5OT9cTONjCLHh6AdAqrDCWSdzn86wO73\nOS8Da1fRDMXmOv5Rtri7s3wafnMHAcz7I4h2BKrDQMfqr3VURb4N63gVh9ec\nbJJoYT6QAVMBK3jckq9/BFHYZEG753B/CDH8RY+g17iO9STs/Zhk/2GNVZ6I\nDrqFHLMJ4Nf7K/eXQXZK0JFmuvNFEhpQ9w9of1ubJrTelFxQYvl/B40XTFUp\nWTPFYnFu9hpo9tysrI6b/C0DkPlUAKvNnjnWG4YAe4ijOp9SwTfJotNu5ACp\n34JOTNLagCmKzq+Oy+detzlCh2j22bqBM0FRW65YGYTlya6dytDSTPIat+te\ntcS38ccdubdGZfXEfgxu1wfItoJiwHJqL/2xPV4232CMPL+b1+ewx1buZdM1\nrrnbUA9HXUOFXcMw62Ax9+eaKdv6SqtQimVQqSuIEFwTshIB1Re4jl8tWtjk\noAZPhCnm6ehyPSB/2d9z5PrgDzftjyksSEcjS0K0XWfaHgr8lG/E+82fNny9\nYDFW\r\n=OrFz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"fef450054fec04328c91ad31eae9fbb00e9c13c1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.0-beta.1","@apollosproject/server-core":"^1.4.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.4.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.0-beta.1_1587156086584_0.5780158872534311","host":"s3://npm-registry-packages"}},"1.4.0-beta.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.0-beta.2","_id":"@apollosproject/data-connector-onesignal@1.4.0-beta.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"ee12ff51bdc487607a36302d5f7462e8f58dc544","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.0-beta.2.tgz","fileCount":7,"integrity":"sha512-tMVR8VnzMI+oi/1BSMsxUOvy86WJ0YvpsJ2TZN9V36ly/Y0jTQ8JJY551jbBV7A3JMDpHRU3k447fZ9344CpOQ==","signatures":[{"sig":"MEYCIQDKVGtyPhrA6iHK6MMFuF/p6VuCcnDkroyDO8xEM6Wv6wIhAIF+mhQbTqcXM1NuMyj/YPDKaq9kVzjxR0smaUDDkCZz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepxhRCRA9TVsSAnZWagAAGY8P/iZRGmWGqqNreyge1ye+\nAufA8fiGVcyRPoviISx1fKKQRXHmHRrWWoU43HndF57PUx3xdgQHG4Xa5RQP\njp2PqeGZNXbXZ1kZ6ViPM4pfgp8+xL5+/+Q/wzH5h8V8dzTTqkk1B1QgOSUY\n75vQTa/zT3oiRBX4RfSvtPGwUOtv6ueioCCVpDvqthQRjfErhpqbwahTTRxI\nXiYKyMh/q74hY+zMG/ehTSAqcO07hNFcfUBh+PEvZeZu6AHj/YSLnlSb4ml/\n/TkVAiulqTZh55cg2cJcSQSBynZw5QTuto+lk743k9WCF8HZ2EFOCzWVqq6g\nwQe+CbaKLP6W0CbAJuspWA3p1i1Yv3vh+aGlT+roEEb4DqFMw6H6hK1DZe5l\n2gCJifYmgFQ79uZ09UAcx2FELYeBPotHmU9ZhiyhnW5Ewk+lC9nbdxQxcuqL\nmVCYNeI94v2cI+qPHgFfp1+AYgLDjQXaQOUvyKMq/l7NTbH2NoXp62x6p38S\nGKIJlD4H2tVdpHU2qqm6as6mO1TCSMb6fVJivG8N9KRNKxEkr06ISqmJsJnY\n5uLRcIBoPzanmcZjmtbDprm/ILKL5tQfZGKBfEqg7gEtKSXV++p2V76YGXnw\nfohXJmmRwtcB3qWYEjLWzHAc4zExxRt4LTjvKhpk0y5NRMrq+HZ+tJToQIst\nCVgg\r\n=3qBE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"89000bb9ab25137066e42dd669f8be945e1e8a07","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.0-beta.2","@apollosproject/server-core":"^1.4.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.0-beta.2","@apollosproject/apollo-server-env-mock":"^1.4.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.0-beta.2_1588009040927_0.4194189747542185","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.3.2","_id":"@apollosproject/data-connector-onesignal@1.3.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"9826bd5f5e2c09e0bf1296ebd420301a8f9e34b1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.3.2.tgz","fileCount":7,"integrity":"sha512-P4EjpvaF+CWg1sFtzmsi6BDuEnBtMJQVlX5xbqu3fOW640l7LTBgtoi1Ntm/iCQafpBUA6/IQHv+anROY16ZLw==","signatures":[{"sig":"MEUCIAWrh9qfuyS/z7kZGJ2xsKutno0YZn58h+flWj9mlwe0AiEAkzpGxjg0yI/ceNLZQxrT9W1MldkYSfvJA7lSxj46ZVs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqGDgCRA9TVsSAnZWagAA1k8P/3XnIGshOcx8F7xRwflv\nfR7WwZnyfJcbG6CI7uBHJNAqy+gNND1NIsCN2Td9RAANHn6+R/xkNWTFNveJ\n47luZlBlaH+I4rkWGS0pVMk8vBJkNZqgK3Aj7GqSbErLMOi48VKTxMG3qv7A\n5BvOvcCCdC6+sdGMQZl7Ryenxa0VVclDJlXeKx3dV1QPOZn0IM0RhQwoW1uu\n+wrJ3hR/WaGU6rUV79psp8xG5LKONHBl6F2ej7mDI0NdL2GHzsAZMQERe4Q3\nDZ7blckE3sjI1k0TbmqUAiH9EUqyf6UxqNUczVhcKYGZVJildcuHk4kdQ1CT\n7X5MhdZRcdJW7Yx0Ska0+1wdY1WjD5DC+HlRfTInn1KarL/IVPnfhZ3E6eDy\nfFItoyuOnvHkGu+fv+IXf5RAfsJ5wob1T1qsteprk/akaQyIfgAUF9rFhToU\nEEErFL+6hFSyMZ/qQBJPGYf0W4wFEvTUJmCwRC7JE0Kxn9/dzTqJZhimAV5Q\n6U4yE6seOwqSx51ZoNTquRwI6WQbJuKLS9TuiUtz1Afv8BYa5ypwUMbI2PTM\nwUxETC8t0j3VH0bwZAlTOQwiz+NYDqccrN77G0c8/QTYM0GP3Y1whv1+p+4K\n/j+brO3kurGujbuAuSjmvXnySSXVFcHWjuHRVON0hgWRKY9SkvklbyxQoWRr\nBJ66\r\n=5DZo\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"6d0e0658dd8f36c2fb2c2ce32d72d13ea4b35018","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.3.2","@apollosproject/server-core":"^1.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.3.2","@apollosproject/apollo-server-env-mock":"^1.3.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.3.2_1588093151537_0.9878235864587575","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.0","_id":"@apollosproject/data-connector-onesignal@1.4.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"fd9af9c405f5e161ead06d4a3dc67ee55c45b5a9","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.0.tgz","fileCount":7,"integrity":"sha512-3DBzeMhmqgB2Amyvzx/QC60aUM9PbChpx/kGuUIu6eJxvgOsrKH6aG2Sj0mSDXezWaO3BYeGPPEpvZH97ngtSw==","signatures":[{"sig":"MEQCIC/cF/ZNUMiVwvxmGFIrbknxBN3XhepwHkpGJHU3OGCuAiB4v7KQxoklZfH82deGZNyhdJW6cJmOR527NH70WDRVOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesDYDCRA9TVsSAnZWagAA6nYQAIdbLWMsor78YJqT8Vq+\npopYoFuJRb+5kwoGflaIVK8GmqzFu+tThGBk+Y0erW5oBGgQAMYGdqk9HdG1\nroQls1df2JX2Wh3UIusSY4gLhujCgy0zl4yzcquWbWg6Q9r5Vm/WRBB+ndAl\nH4il0lju5uqADN53D2cN4RvNNe3fFwZqwjhKjRhOuUH98mjkIdJMP75h6HF7\nt8hBc02pnyB/WUYJdn1+RRGieYp/ixI34kyXP5n/i2suEobCPIUtTCMdF7/a\n3wMKaySKl07auAQsaDluBWj1LZ7/EnvYdMXW5vEA+N/xNXWSA2axNkHYXSVq\nhrvicLJxNrb58qd1ncU8xV/8oEWZJwN4B8TsY02v7CNJ1NwsilZH6mFzVbE/\nrkNEEkW59lJvFsLcVs9BO7Qw3fif+bclXMrHAxJmigSFNjxkLJ8e9torQRc5\nXXo9r8IRM6n+Db9Zoj9n3rgWUUI86ngOHXAVR7/YDlLVkIqoZZmBoStsjFhA\nyb/cJVvoRLodONZ7xSl/NDrsbh5Zts99+uqe4f6a6t5MRufPGhMksUxDikzv\nfNlTS3ZO3hbPDK20TZ/vGUpFUuusw+paePMzmtSvRXxJFP7IBmMHT+BI6zUK\n1t9x0+HXJvvTljzH1gExz8832YPuSXlegB0v8cSW8ErboFuoK/JdPM6kioJ5\nl8c6\r\n=NCdO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"292c3b704f368fd7e6508be7ec28bc9c589f4c66","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.0","@apollosproject/server-core":"^1.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.0","@apollosproject/apollo-server-env-mock":"^1.4.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.0_1588606467190_0.187589849175257","host":"s3://npm-registry-packages"}},"1.4.1-alpha.10":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.10","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.10","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"41ad1c9241eb66475635643c00fea9926843cd29","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.10.tgz","fileCount":7,"integrity":"sha512-JyD1DaTnAj2T4TkxjOSDd6eUhUFk8vPvbMsLh1gW05XZRFGXWVrEz5C7QRt48hNCEyjIbEF/4WAFdGbcNdcQjg==","signatures":[{"sig":"MEQCIGJGlw5hWCHra46xEUseQrDyLY9WdSHtLhEk1xbdYcooAiAWyM8IGC8NPNyeXXqM2Q28YFPL9naam7guubSSDfp4Og==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25800,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeusqCCRA9TVsSAnZWagAAB5EP/1MnlyDspNfdVZEBm4eO\nf+zmCXAES9xERTgsFDsz0PjTmGzUBm1E1Ikkw0yigSepjiZtmadu/5Mt2ybF\nay3g9Rl64lcLQR9KHB5T0HAtxR3+0wGkqeo5vXlwRhEIns7pv+kREgZDGiDV\naNk6e91jutrXdaqzjB+jsFOVSkdyLwG075yDByh9VVKYRlHZ3G3R1gE8maRh\nhZVamDz/urlnOu0xqHnOHDoL0BiwqP8rxZhxgR0CCEOmp2Y2PVMEW0BB5QKL\nyVikwtY44fFf2FU7ZNeJWB2rZhwUKheaJW2csVtgiAPX7AKkj+lvbgZzsbnc\nGn6jNtEbL4lYYI/YbXSTJPxfzTDCZ4H1uxHlQ3kxfWD2YztZZYLJAj0Gf57w\nXLhYGK22osRs5AOm0U9ACBdvxsRGlsWQeSdLQnFm2Vt/5rarMq8icDXJTa7i\nyVVekT4C3F8zf1ILL3hS4RCE6YuYRCjpOLjlnknMdgV7Lyd45RshrF6BW+WI\nQUspU3k/kXWPWduiJAPYUDLC5TFEUGqUaYKebjFb6r+eGomk5DnSapsH0/R/\njsiiXo8hAEaR8pMby+nwW6S27WIXwLjna+dUhgjobqqOoi+MRBU0gpRXc8cg\nW18GhtHsPxRH00nBfzeACciKQ2P0JOHIPsmOqNfMvYKQiKglxOJRkk3txr82\n2sb7\r\n=tRsH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"2143843753ed3911390eccf5fe127c412e731eba","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.10+2143843","@apollosproject/server-core":"^1.4.1-alpha.10+2143843"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.0","@apollosproject/apollo-server-env-mock":"^1.4.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.10_1589299842419_0.6054314375809811","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1","_id":"@apollosproject/data-connector-onesignal@1.4.1","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"fde4e412b1bc2d7bc62433573f905ce4282840f0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1.tgz","fileCount":7,"integrity":"sha512-XXa62jjrh2CIKapWkZfduWPsEkxBTRbSNYefYuCaBmzZoDizze3ZNM8RhOAx6IGjKmZB+r3v4TS4VNk51UkUfQ==","signatures":[{"sig":"MEYCIQDT6X1C1qmipM/6RP98MiakdNAxClLXjkZDV3kzBON00AIhALJhx8oiXJYp/rKNrNbDGAg1qTmvWlwjrmxoMzs0frSa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1qBOCRA9TVsSAnZWagAA9WAQAIm9JqYuJQoKH3GC054A\nGCkhVSHESYBrSH5Q9vQrNtrmWjnZqY9x9HSxJp5AkD9prn7/rh3TCEkiL7Q8\nlIQEkCYzfz/JDsYK7G30xp2JJdXr/+OCiMZfWUo8m/gapOzhAbC/xdY28hcf\nnL6EIvcYXY7qXcde/J+qepJn6AK0AUO0S7pwcIRH+1hdQy+P8szC/9s5vhbe\nz75q0M+MImhehgyMY0gf1rikTa6kw462PoA51bwx1arN2Ivu9F6tZhf7F+a/\n7JnT23FTXBkzIaI4VvW3mT3+FmC7YApRthBVipZvk9RkNSBiaCtMhH8iqe8X\npcfaV6Wj0lLIkwCC9yh/ehCeEgoZUtkE/zhnZS9NAwvNWtXnlmNpFpW6CK1c\n1t1XCPPoFnJalLumWnaJ6qAMncP4QgD4+f2DhyCxZU009Oml+McOSWPtT5GT\n8bxZB2R0TyPqga2a301fwy1b3fzj1pzor2jFtSwZxBWiO0f9Bk7VS3QEnvkd\nLQBYT/CHr8YWj6ChLTXTMc8Nzg+KeFBRNSnpLlKr90mbHM/CCt8v10/2sT9z\nRvX7Xs4bpM4MEAHmj2vKVSzPhOK+akqokaW3VqsKol90qekoeqRAluxe0CnH\ntUYbNTwnlFelfq71iyx38DgWIO5HCXmIfpEbYl7pod2iuVXFnv0vWRAF/XS+\nkcX6\r\n=v+AT\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"a9eb9a34c398eacba0983ac74dab332779a1d308","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1","@apollosproject/server-core":"^1.4.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.1","@apollosproject/apollo-server-env-mock":"^1.4.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1_1591124046094_0.03514784944391569","host":"s3://npm-registry-packages"}},"1.4.1-alpha.16":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.16","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.16","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a84ec5f2cf5852b4508d97bd08235c571f26eb01","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.16.tgz","fileCount":7,"integrity":"sha512-fYIEk9V0v2a4bfi31PsqePiFPxOj0pVPF58I+L/Zg+/JWgi7c7ZHJgTLfsQq0qUvUG0BBR4N7pz/399A02PvhQ==","signatures":[{"sig":"MEUCIQDqZd2Ye/TsJaT52ieYOU5n0bYXoC3V0+W6AgtZKh30bgIgcS71YfhLcd/Y1I0DOpPrXniMyZL6SRQjTvh8gByuTMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1rU/CRA9TVsSAnZWagAA/8YP/RVpVdFvtmiAc8xmjbkB\nQ4Vo/fI8mZE+2YpZ0CGq715Wo4PjiI+ostN60q47lk1Zu/sQhskyyspFKHm5\nR3Q7P8mYZM6oFz1W4G4fhhn3dyJoJP2dOmdypvaw7euYW92XVFMa2YKLLU/O\nOdGNp3SKtO4xUiF14FwYtJDK0Z9G4BHxJgfpXzo1YZrZfjRRLFWQKCQXDHON\nSdZkdMKWti4yEogYTD3UpkqXH52fFUs+c2bDJRrvZEYkohmNeYNjFcO6tsFG\nuJlJNarkr4SR/izHA7dx9rJN5+KMX0JydSBsfoozREw1DeOMv9cJEip/9f45\nKPvu6Vovn/jcp6z3Vra9HY4kJJiZHa/0+dFCtV/uX8vaEUHYpsKwWwqxXFj+\ngIQCoL/IwxiXFS+i29ospbY2gkTy/zHJbOK723Jt946S9V6/7lSA9EwMq57W\nzXKp+UhhjsD3/qTUoMFLIg4j81gNc9MGHTUtEoaIT0vtD41IyXXM7QghkJV+\n9s1lECJ3EgTANLeR2Uyk8NXkf0PWtqRQHo7ViWTGopBK6sVCZ2e7q5cJFIvP\nmMcRrdjTkZI8QBrRvKayJGLk70fnwlNMt7nA/UtqbqeYDIvrJ/K+6cHT8Fe3\nYUNManmV17481R+pDk/rjk4S6orjnl2FFlG4Si11uSjTWKbDTDS/r68+VmTj\nemDB\r\n=v5fy\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b00ea24e997f68e501f0286312a7313b818ed161","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.16+b00ea24","@apollosproject/server-core":"^1.4.1-alpha.16+b00ea24"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.1-alpha.16+b00ea24","@apollosproject/apollo-server-env-mock":"^1.4.1-alpha.16+b00ea24"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.16_1591129407410_0.43281313282992495","host":"s3://npm-registry-packages"}},"1.4.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.2","_id":"@apollosproject/data-connector-onesignal@1.4.2","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"410efe969770cbbfbf2d24d9f5acb38343f4f41e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.2.tgz","fileCount":7,"integrity":"sha512-7UFsl4vW8q0CCS2pWpTUHsyB2ZWIEgycnQscQHM43LKS7u1zeWwQfYAFMycBqDqOO3n0OVVH7+ajHzxjdqGb3g==","signatures":[{"sig":"MEYCIQDKx04bxUsyul1QBZbHTaLaKx3/6Bk4MDLLAKYV0VvF1wIhAP8jMh3iW0LItTtHR4drPraU89pRwJ0M2exCxcp3hFoj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25749,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2mPsCRA9TVsSAnZWagAAKYYP/2eDmavjRQ2o08MA835C\nDd0Cv9aMwBRP7iQgwnIgCKg9PLBS6Ej0obiiS0khkdFYvyM79W7gqQt5ED/H\nBHvROq36PY1JLDPeapSbpQmWn7+7/oMy1TXGpSd5B6JWquej/UvY/bXnrtCq\nCyorlkkAR9+0pr2y613DinuQ5NVgfdbuH/wUoNXw/UBI9NZzKPn8HwLUQhGF\n2FPuGlNHh4CrQ68vmYgR4qoKZ+my4ddrzpJd2Pkv1hEvWPDIt8QFUtJGcJtA\nghjAvFtkM83a45U4mwlTKrtVqxNu+AhIvSifpz4wGiZTc/o0GOCJCZv0uYTn\nB8qyKy+A3nT4tmd10cJcmfJdB6OJMak2QK44lnp3hR3wqVTPrdgG9ILLd/eD\ngttmxTZc6otMyE94dYjdRJU90+WAdUjB7Rhy5oVb8lCV4aF6xZN8AWdpmgiS\nGLzSB48c8gHOY/lI0EaiLgI0+lGG8AAphQfHFhRdMitxWI99E6vCkC3ilyIc\nCEwbIwNxZLqazM3UL/DJMVH8Od3GpxPasQjyvuqGIcazeBI2i0O772ysAJLY\nh2+Jpw+zVGcs/dUVT+6j11eyqEKsbDz36xduYtT3F3SE69Jls5IJei/AxTiq\niWfOwdHv04OhCxUPCqeWiMWwgp0tE++Slq23IUTmsyQRmxYR5jAngVU/l7la\nwEH8\r\n=ApqB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"fe3a14f76cacc84ef214d81a6823fc3c1e398774","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.2","@apollosproject/server-core":"^1.4.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.2","@apollosproject/apollo-server-env-mock":"^1.4.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.2_1591370731983_0.5774253873529127","host":"s3://npm-registry-packages"}},"1.4.1-alpha.17":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.17","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.17","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"0310c7d8e83cfeb42b68d8e6db05aeb5db698b7c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.17.tgz","fileCount":7,"integrity":"sha512-LzBijxqTr7REvCAYT3MqvrNV52p4rcBYZqS15/cXrgntnryUaXNf+SpcjW0/nzh03tSTMLGvo6cnv0b2JU/QDg==","signatures":[{"sig":"MEYCIQCxcaFxHqg3O0MVWBDkB47x/f6dPGh+PvvYV4edki7OQQIhALJlbNm7wONkIiS8JPgXdzEJyBJ+4LDIMzAOA0tdPDDj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2mVACRA9TVsSAnZWagAAW6gP/0558+WTGWOVjYhKEBw3\nOB+RfnNIWRBmKFzBukzSpwjFrMEwEZMmxSJZbVi9Jsug1DGSnr1Seq/NynwK\nNBV4tQy3uPtsjxyDVCZgNIIEKhb3UCgrjwnDTIWVBcXt2rhtTNRZSas8Axay\nF+L6ZOyzpWXG/mJo8d6i84M1oY0ODkjblhQUv/wYygWISnC6jHToFWrnzZZl\nK62VR4HCbp4p622BTcUuZddeGOPGOSnbqM/6r4pvQnzT/+m+pBL1+LFk+0Vb\nLZLIXaF6neO8h9a7Jk1509LBM5C7D+MxpX1KAQfZO673PClVSHSFfJnd/DQT\n7qhW5rbYnXT4Y/EqUclQM5wPzJRZB9hp+qB+sL+6cBNq5uXTtAOxLrnrI2vs\ngUIVL6bvq9iB+o276yFsrJ8vix0JpGSlK5z/AOdVHKIbzeeNLfr2ppVXuddQ\nMkq2G88PxZEe09GVCL9YUDIBqIuFZksp3uGcO2QvkaryWq/+nifkWyWE+kdi\n2hlQLNowy6Dmg+wkwvHc0/yxxVo5+0Q694gw82okxlxR6X6dEDCCFj0yw10F\nJGM0X2eYVD4bYmQpjHyEuFGciTSgqk3eObTTtEKpTUHDtQ0jSlMroWGHXyhu\nob2JxWA8v0Uyocweg+9Rf5tGIdnDtvR0QA2ABsC/pX9lbtgUd9K/9FmTG6Bg\nI6+Y\r\n=4yKU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"27a8fad4a648c21c1f36b483c2a8b23ca309bdd3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1","@apollosproject/server-core":"^1.4.1-alpha.17+27a8fad"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.1","@apollosproject/apollo-server-env-mock":"^1.4.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.17_1591371071355_0.6397096724514573","host":"s3://npm-registry-packages"}},"1.4.1-alpha.22":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.22","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.22","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"dc2d4cebd02a65b813464bd2bf2260228ba6e2d7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.22.tgz","fileCount":7,"integrity":"sha512-JhSX6ZzXU2sJxx67zD8+pdVviFMBntz9i+OTMQeDI1cJfdG78S2/NQtMiu+sAz7nBZjsFWgg+6QBCpn+LQXrqQ==","signatures":[{"sig":"MEYCIQCsatrSW/+/K0+lCfx5jB0MCKsKbt5WV9a63Mk0MYmibQIhAP6txqEaEa5kq+wE9VfnOlLCeSvpqknSpUle6kRcH1ni","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe3vikCRA9TVsSAnZWagAAlo8P/j4iL54L0kBy/MDZ0i0I\nsLR3hCMeUM7+43/+ajFIxG6REaO1Lhc5+csTkRd9EvirsYRQdhLTSwqPtf8K\nzsjLL9BPGQEaBnO0wdWJvulQeRtClVmXKgaNZR8r5D8ptI302bpwCeemt44m\nsnKxPAdwAK/ynz483if9OYAEoan4p14KqOLhoc2NqvxBuh2tu8pGuPwfAE54\nAQeU+duJz/jKFotq0ZeY2TRwvhRxEgCeLKJQ0SL4gz+GPcL8zgi8tj5H0jvl\n8D4u3YHsZS2Rwiq6X1NVtdn4KUi0oM4G9+ARbb95shciOfqXRk0lGH6icTSB\nghvX57oFahiVmp9+oLUYIv3jVQRlV5boc5GgWBV1ejeHkUky67JuFiEaUGNE\nNcZ0OKCvRQMzfj3s9RG9n3qsBJubtNGn6nsE96Gj1ddWFhcDSt+KuQqjP4GQ\nlLLcODWRjdzY2nUh0DKEwde4F8XAIXwkAe+p1mj5ORUscOXSL8/nByTjbTxA\nQseX1XlHZcg7ObvksNflM6VY+cUm4jxWxslj08gkUTDgd//iqv5JGo4oPe+u\nQOxWw8ign2tE1+/Zqpdez13jcl+qZZH8cpSah/8sD/kFbfZ73W/tPt7MAJ7a\nncxGl9Tg6Tc2Atc7F/vAdTp17m/4F0Yc2ClwAToR3xXlDPcK7qUNNZb6xK2k\n/UfE\r\n=GzuB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"1e51418dbe9f053e219825644288c9635d19ce0f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.22+1e51418","@apollosproject/server-core":"^1.4.1-alpha.22+1e51418"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.1","@apollosproject/apollo-server-env-mock":"^1.4.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.22_1591670947540_0.10618963909780654","host":"s3://npm-registry-packages"}},"1.4.1-alpha.24":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.24","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.24","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"43f27ea964ceb8bbba8dc0d3157d2f5c7f63fc98","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.24.tgz","fileCount":7,"integrity":"sha512-lcGHCQHSJWwqhMeLDVQVN0WHTzVBuiMPMyfoONO2SLOInOGaFDXy44yL6fDX7l3yWB/GBCFTkuDE9/TrkSp4UQ==","signatures":[{"sig":"MEYCIQCxNO3JCrhmGaDdT84gk20O1HiqUkAZPVebp0n6Ew+A0wIhAKA07bGZPj68gz2cxHvdo/TG5KFgdH+S0kU3DpolHpgk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4ampCRA9TVsSAnZWagAA1KQP/1fVHuA9qezJc6GHS8AX\nx9/9y2xZIPbysR6FVW3EnAIOsUaIkIpl8bU66KFB+GpdnBiKtDbZYY8rs99l\nNVs5L4+NdTAcHjMQNviTByxx3pgDW/vM8Rw8Os6QKil6CuheauvX3gUTHDPS\naM6Gzr0OO+Aa8jnP/oJZqOKqGWxBdL9ENUEzshDUcJdFjdBbBygf+TDLcGdX\n8o64h8FLUieZsQeWLtlgSDPS4pJbNa492ROC8OmqHvH3qvG8Mq147WTvroPS\nJueDOChpTfO5k9AwSkFJfKDtlQ7c4wqS39cJQ4bmLjE0znMFgvCaLCA0/+Tf\n2luhYBBKP1a5/ZLLdtlW/1Y1VkDjU/EwkEj86QgLxbGTAJCOVr2Mebq5W0HE\nYexfndXmtaqTN5MZQ4O7MMXN7XgaMdISCu9xx3cNCW0KkHKKfoLgXJba9V7y\n3HAGdMtOlTs7fg1ciZduOPCBVnq+cgVSmh5o3jdq5w4vBkJJ589C5Udo/4QV\ngL3YhVj0wwF+G6GzcdrZ7U3IGbQ0Sa2A7HbEAQwFfA6hkH2SHUjuE3Ara2ZE\n0WcLR5RJX8pcQtKIN2dz3cAD2wTEmzz5bww9PUiNgDdb8W4E1JPt+OC8C3l5\n6noHsQac0C2yKf5OKa4QecFybAsxocHSaQxuD2BihvCSG/56zYutCpeFARuW\nsIUM\r\n=Idbz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"cfd9373748a59e517e052a4974d59a88ebbefb01","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.24+cfd9373","@apollosproject/server-core":"^1.4.1-alpha.24+cfd9373"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.1-alpha.24+cfd9373","@apollosproject/apollo-server-env-mock":"^1.4.1-alpha.24+cfd9373"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.24_1591847337497_0.5330256482040134","host":"s3://npm-registry-packages"}},"1.4.1-alpha.27":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.27","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.27","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"82ab3d4170867f02d321e3d2ad3a6e62e410a145","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.27.tgz","fileCount":7,"integrity":"sha512-eHOJY2zb63i05nfalpvP7owWqQ2IwgxJBp6heexszjaTx9WVAPGSqRUpKd3Z/x/t8cSelKdS7cmk7PpU6s/wYA==","signatures":[{"sig":"MEQCIApcWsewYZFgRA8GvGcEOMU7M1GKyJ42+17Cu36+Ohy7AiBu0cjRZvKO+eizek3GNLH2GlKaWOdrITv1BoKL8jpDSA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27242,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6mLGCRA9TVsSAnZWagAAVkUP/Az4gtwqFmGNWST/g40Q\nHiB0EVd5u8qgNZ+3e5N2nbI4urX937cYtZh8ksFoeZ/YgA8BJSZ7unTH4c0f\nIUBQEsOyC70JHE61NwUyGyQmjaOg4RjNyvVd4gQMqmXYhqMZI8hU2TDbn5gm\nCOmcKJyfF0sPqsXmU5uCdMxXG+CU8w148TQiYfNPf/A+djuBjGfQbGDj/CBA\nKaltPTofbCqXlJB1Ocnh8yieYzq4gGj/g2LfCQF3fbSuyqGHlKkHomrELHx/\nT3WCbLA5EP+QRl24NZTbn1vZ6dYMCYjr7rQ4/rkbPYNK4HXOIyK1T+3CB+Fr\n3jSSky+/q/ipfsOGfHb53opRgJpueWbcrJb9Ma9epO1pX5ccEzeuNwwwzOYI\ntE+Kl8QUmHB6EeirjQxJiGVdDukHkO4t5ZPXJaxuJNqu3lWnscPRMqGZheGH\nVwfR6VMiwjKjQsH9yFE5+W0E8IVyp99XHaGE2gqnwiOllwd9hxnvaGenD0a5\nmV7gu9hEOQKnhUdJjP0cVleRHdaOo1m6SjPuQS+nokeBgW0UhESeh22Ol+g0\nDQ+5T7UF3BWkXnCH+qD9IVmRSa5QVQwo7OCKWJesc5LEC6R2e41nu2AAKJWx\nYtm4FRUrz1PAaOVRm2Rp0mmW9kjbBQ8VaigvjjwXdkqcB/gL/ElSlfe6QuTa\nJfoi\r\n=XnOC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"24023003eaa424d3fff59e3a007710dfa34c739c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.27+2402300","@apollosproject/server-core":"^1.4.1-alpha.27+2402300"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.2","@apollosproject/apollo-server-env-mock":"^1.4.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.27_1592419014435_0.8634042564286268","host":"s3://npm-registry-packages"}},"1.4.1-alpha.28":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.28","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.28","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"f6cb72147966e66955c10db8d25eea6934c16781","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.28.tgz","fileCount":7,"integrity":"sha512-RYx8SNCz6uqAzhaLBu3iZWi1g7eGCEchrJraaC0cAIaJzRmHZyNu0embq2IwAQDYF9e1MmkgTppqL7lqRYPcMA==","signatures":[{"sig":"MEYCIQDjKTu2+ETrmPxjSa+1SyGI8yRNURBVNp1m2+A2BNbQaQIhALEVy58U1nOVwJGwdgq2R+vB/VelqSPNQenl5RNO/O45","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8M9FCRA9TVsSAnZWagAAkTYP/jbAOkvNtbtCHX85S9wk\nrdW+WFH55fFgosMCOyYbev/XqEy55hkbHPnQXAHlAzB5H1MdlTdGvO7QByWG\nIGfbNl3nYFJq3sI/LQN0D6zl5UtMa2BOs3ZLbo0Dqa/tgX6ooMxYrDjWP8el\nSaAgoRR7r8gAprhy4MPjbmri4iEq7vZgXNrT8ApuLoUBgRrJlmY26UflZVQd\nIW1F6CV78Nu6eX28ESiTbmB2Wzk4DWdod2xfklDnHn6Zfnh6TfYlM9aTje2y\n9b1AgE8TuzVgsMl6De44lpbdxqOEKbHVAEIdjQHZ/PY0ObGbQL3FpYyQKHNY\nZn5Ydvq98MXu6xf8MUy/OzT2tmR0I/YNGnAmRLePdC5tdTu1FOOR8NJOpY0S\nLIc/hnu4qtakqHhi5mGpauHsPob4MGAoCdjR5DcuGDOWAcVJ80Qv1EOmo2JH\n2jw3jrUzpuEVljlsYHXrbtG6SXZQ8KUjI7G1JuCxAMQ3SSlYlViNDj4F1ind\nDTLGMH1ZPgqp/QwrrLYnRkeuN16jXQLdraN3ajaNcPAyg8Y1Yq8lDrva+Hbk\ntEynhFdFT5NyC+fPPdy6oDm0oyyQolMEA9WlGiQvQdbCuM17kN5q5f5MiudG\nu/X2eNkZSkU804J40xkNyy0K1pkJylq2Ub8Gyy3kE7FZOgzoD+2yux31upXd\nCLkh\r\n=PBgY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a2c24aee8f73dd6788e6da28a8ef0e7deb8c7481","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.28+a2c24ae","@apollosproject/server-core":"^1.4.1-alpha.28+a2c24ae"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.2","@apollosproject/apollo-server-env-mock":"^1.4.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.28_1592840005295_0.2628017277539345","host":"s3://npm-registry-packages"}},"1.4.1-alpha.29":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.29","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.29","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"95521fdf8f3ea7e5f7f107a42ba7f2e85eea886d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.29.tgz","fileCount":7,"integrity":"sha512-Zl9ZzzMSownXzEGN1H+h0kVLE5zj6aPKop3qm93cU4n9CA2RJxglcFWnM5mQePCIhlBMW6Z7yIlKMV7V6k7EyA==","signatures":[{"sig":"MEUCIC1woJJfv0NSFP0+9N8n9KZjKP+e4MqX2tQ8VmBrnejJAiEAiwwTJl+yXg7UohHEV7SBrI3MA5wloZnF48FiBA4lJCA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8O64CRA9TVsSAnZWagAAWeAP/RJ+9XvI2v+0JrTPeP0J\n/jdzDIrmYnjj00/j2kmzWsZ9N/GRY58qd7f3UZSZVVUyI5nKk9J5qjmNwJbf\nawWXP69T48hemRjCn9VcsKuWZ82Wnr4d+LEoaquBuPLuDIwCPjsKkgpdKYGM\nrOyAqL2f23V//ViN3tbDPx1bggr3jHCRXYGZbm6LUV+M82pCF8qcyWgMmaPs\nzGTRFT2aWpbj9RqnhSgItKK8iLYkYCIieQkMLGlxg+b6l7TUaxb9HaFy5Ul2\n9QcbEQcQo89gLypiJ5Y4bl/N7DPxbeXMArDaEAmJfMVYqW/rgug5CfHzSouc\nkAwELOezBTgrPXIj7SeLWJ6T3PB3Zw6X12AbuRJl6talNuWyohP1cZlP4i7J\nsemaLIaWgOzW21y7mX+siEb2REA04d+OdSdLP90FAsZYTf3o/vCwW/BwfgwM\nCrCwbX+2uHie3Wnn4X5Y72SrZRpHLOgmSzMBM6jDCXf4aq6EqZgPShT2JfGs\nTWu7+4l6l2ciaoDmAwLnzZdtyXcq1/3HXU8EqrcXk8KZrfwnB6rL0YgmoQYo\nIgh+2g4phRP1Egx/DSkyf6cBC7tG5BOgHhBx6eceIIjr9AvDrHxBxkW0s2+c\nFdGjwFy8l5GmPauAKwFbqObiti5yxxm3epqY8l1Hlaf4dJV7YK8WrnLGmUvG\nm5SG\r\n=M+yt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"96e475aed7a2fc352789172e119ebb849b3787af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.29+96e475a","@apollosproject/server-core":"^1.4.1-alpha.29+96e475a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.2","@apollosproject/apollo-server-env-mock":"^1.4.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.29_1592848055627_0.7501097238696264","host":"s3://npm-registry-packages"}},"1.4.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.3","_id":"@apollosproject/data-connector-onesignal@1.4.3","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a8b29a15c998ae8ef511d0a7ac59b971051bda75","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.3.tgz","fileCount":7,"integrity":"sha512-U7vmriclP7bz7PUSr997gTsu/NvU7f3qClW6YI9bnfAH7Ufh7IMAmNYzHfYfOfimUP4004nWVWaILThqn7rTnw==","signatures":[{"sig":"MEUCIFmld8as0OWa21rQjGsFwgN4e95Of6KZKrOAtQBkaSiFAiEA3Ub6CsHlSdwKPMBXq/zqCIsgHVC2UQ/r0/6B7xfTcBE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8RvWCRA9TVsSAnZWagAAjKEP/2CpoUrxdab7mE1INT9R\nvPJaq/BK8H572TgiOh6kLhbHjWJPQ91nXS+XXL+3LCtpaLIwbeBiW/AY3o6S\nPBL7i9qp6rcYz9k2ydpU3pc453A3L7SX8gWg5Pl/0FP37urCRBa+hjzOs9BS\nOueeMGVwqcP1DpTjftox2FXhjNQBGt9Ze8GON8q6haCXysVACM1tOOvh9OWm\n4x/JLVEJCAzUlpqs7PWQhmc3bSiGAhA3bs4YCYKcqyvqWSlb8/Xs32O8SaGU\nzZmOWalAtXfKbm/oVoXBO3sIN08QhwDEde4j47GXl4UUquG0q++VUKjzLM+C\nNUnwXU3F+y9ZIl8LnDhDGNQSIVAEaagJgSpA56w91RRuVWSDKxf5kr0iJpDj\nSzs9c2BiZ9qbf6aU5IFFrpz7Ugecoq+newA7IbI2vURC0COPdDEmOuY6CbYM\n20mv5SNknzI20G4cGvFlZAffLuHePE3I48H3hr25FQ++Ibk9cUxJ++/MAxZZ\nMtIrNtAqUVkPA8TZecRNr/X+Yt1Q1DKmA8rAn8RZOmLLmXBoReTRofrrcbU4\ncxjAKtkJx9CN1Z5tn2ePLC1pkPGFBKhofiDU3ylDEgdkR3NxEIvb5qFVLmen\ncWPRvos1b0vhwg1hIX1gYCD5JxMGN+/UfOZxWKUPmvJBqPaD8j+pYX/hQk0M\nCjaS\r\n=H6md\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"bdf561285dd7286e054009d20ca7066200e7567e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.3","@apollosproject/server-core":"^1.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.3","@apollosproject/apollo-server-env-mock":"^1.4.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.3_1592859605776_0.5136858718880295","host":"s3://npm-registry-packages"}},"1.4.1-alpha.30":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.1-alpha.30","_id":"@apollosproject/data-connector-onesignal@1.4.1-alpha.30","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"9b72fd4fb2440b4ec7c2590188ccb7804aa177df","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.1-alpha.30.tgz","fileCount":7,"integrity":"sha512-yVjxaJvcxf0XD24fhaf3iGp5Xsy+v2sBSHg8QjM2cmStfm00uKAJNYz/PVMvyUYP4AJiNvVKQdPVwmK0G6zz8w==","signatures":[{"sig":"MEQCIDE9velnafVzHXIxAzB+vswyiNjrKjv9PXCHO+jhfzVuAiBq2W25TbwQuY/8ZzSoo+mZrlTOZN1Sj9hQWT7I+zpz/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8SBHCRA9TVsSAnZWagAAcHsP/39/v44d/toh0x6ALcre\nXZeWSy3pMUgtWPvAEo5ZfDUdow6jnOg2u3SrdncnZaLYOGYAHZf7PcVihpD9\n/aSrS+FLfuytXBig032hAJVU64bp2Upv1fUiPyfR4mtxLSFceJnEqx6ud+RR\nFBk+Z5oBuq/X7v4o3MfAf+ShksaKc3k+9wf09KM1+iN7T4GjRAhYGkLv2HHs\nWRZwaNO9gvE7WyfqYqOndXFW/ndOTOTeWKGvaiowqh+pk0/qDge0TkRTisKM\n1YPxyv04/Lp1aahSbl5C/QCW1opkYSjHgYrSGqctf1Tv1QgQEeyCNX5ef7i1\nLddlW5sOIKZdbxWFbUb8j5LkCw12mU5UV5cilnNIA8vQaMm3TbbZHOSgkpmg\nrWJ4Zr+gmbC5gAbt2+U8/+gB8Zxm1e0/2oXdcYjG5ig/r2xmzl4bbodYA+MY\nMD4VqyToNl9tkpBvJrzoMkIoJ0YILW6XIZSX6AgW88mnOVvDyxhPc0gqXkD4\nTfRlrRrXw9hvOUKJjff/olIfLDmTJKevdpN5rXsZ1SppzYcTCrWQX2MJuhC7\nL48tuKconhCspnTiNT3NLhBBj9EIs16u99nMvVXBAC55uM/ZSa5LBES992Vr\nhAa1ZgSEvJJ5dSP2+vtCtQwunqcORL3s59QkYsgjgdwUzc8ejsRJ26asZkbT\n5e3B\r\n=n1JP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"6f49b4dbd95243a08f351742b36c4d9372438607","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.1-alpha.30+6f49b4d","@apollosproject/server-core":"^1.4.1-alpha.30+6f49b4d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.2","@apollosproject/apollo-server-env-mock":"^1.4.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.1-alpha.30_1592860742623_0.8978986649772835","host":"s3://npm-registry-packages"}},"1.4.4-alpha.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.4-alpha.0","_id":"@apollosproject/data-connector-onesignal@1.4.4-alpha.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"2ee15899cfb38ee5db2f71ee6ba6436ad48019ef","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.4-alpha.0.tgz","fileCount":7,"integrity":"sha512-fzMskU/C8yNe13pwJo45zUxmcW8IQq0OHwRJVr1S0aFih7dvWQZF09iIcRoM9pLgDhLoLdPsG4GbTpfYnhpKVA==","signatures":[{"sig":"MEYCIQCKjBLIAESra8Mv91d4hdVd8gPGmEoyhO6kfw8f97dsJAIhAOK/pigqm9s+nrRaGIZjG/4fEpv2IAL379sK7CxrC6xV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8lFuCRA9TVsSAnZWagAAcP4P/A7wDzuc6rPttfnI4JtU\nzScZfqjgG4g0eSxfH7n+PhGLvXkSdtl4s9DXR/UX3NInE2RMBHl+5LfS/2de\nrbSSbHkQ+O0TAAXIAQLkiniT7pCbzmDXH8KvZc00uYFMRSdeYN4Cr0dw/gG3\nmfcNKdAtZDqr+lk+Wr7c2uFm1D4nIX80aPXx2URXdsE8qy8XsWs7ZwGxUpBP\nMhBWAqsZAGfxSlo1JDjAy7/ddB9Rbb8HEyPQ+e+Zhr4fGjlQuJo13yPaWJcz\nedrY5tVZhJsT17iRhbofLOqTymjdKXQzs26v1KdJvfwhLbdGEVGAbkCZlzfX\ngsGkeYMJhmVjCwP8BaiuCBKlwxCmfQiLZBxwCwz3YnZsWP6ygmxqiTeFW10a\nYGZ02WqaJlWHbpXGYsyRgOhMkZZkq0k30imRMXyYmkvL0TYwIWww0t5FeUnF\noXx7vmWZ7sIfcTNUPx9XYFmMPL8fUztOW9wsVvSCutojNq6EMkMzucpZaRTe\nhTMdWG9mqHPi8xtfdMRykE9MNkhHPW4nlBfNqDCeQ8LAnAvu5ghnzNZikvuD\n7V1xPznxzLboIOiYE/ihCfaU7cPc7dwraatzZWnqbDUPj/zS7aw1pOoSCYgd\nuB04ZTKR3tg355v5Vr09qZJ3lubcjujKUz2XrelftFqQWdwvhpRzZTIM0Szl\nKCcJ\r\n=kgv2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"c742b40d42881d2be1d61b923a0e25294dc5c09f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.3","@apollosproject/server-core":"^1.4.4-alpha.0+c742b40"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.3","@apollosproject/apollo-server-env-mock":"^1.4.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.4-alpha.0_1592938861410_0.9265356587996425","host":"s3://npm-registry-packages"}},"1.4.4-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.4-alpha.8","_id":"@apollosproject/data-connector-onesignal@1.4.4-alpha.8","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"480ebbdffeae3021c65edb2310d486d74885fab0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.4-alpha.8.tgz","fileCount":7,"integrity":"sha512-H95ZjZrTOnQuQMjQ/cPDa/OLSM0lL0XBZmXrnzpPkAj/NMFMhiWv/SqdEHKv1iySh/sX2m3YHeMsc4CT2pEMJA==","signatures":[{"sig":"MEUCIBV8pyi1EvxmK5JTuo2HrVbbUoU1De24iemGhGjI6Bu0AiEA+lb6i+InByAGUO56PahUJV704M7i6jzn6obDDkd/LWk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGKHICRA9TVsSAnZWagAApbMP/RVC//Wuv9k9c91SL7Sn\nvtvS7tx+n4+/6bFrTnd1yjjYbi9/6ks/ecwV6eWYDpHcTtydbAWDWLPya0aI\n9Nr+p3IAOsrce5Z8iTffRe+8GeQ5uqVnH6xTRLUH9hMpaQ230tyclN3HxVu2\nMMq0WdxaosBR6o0KAJewl4WTpGQmFr3RHNIvAaz288rKkUoIvg/Zu1W7ZpQe\nuH8w3IPbWUpE8koWlp8zRcB1Zl4VUxPNLtS4b9ZLCMrNUEqDK88oPsBGXA+Y\nYYwm8JhthAPSWlYi5+KbVWcTC7sN/Po12a+C2mfZ3I79LcS64p5rNxqrTiIZ\nn7u9QI01gGMqRL2UNWrgItUVGAWueWOVxU5gJGI4ogdA2SHpy57hH6PIDTk9\nqOelIhhQXsxjZMIdZBV1bARaOx6+ciFHIT60uJe4FU6ZJ2KBAO1wUTOrHjmm\nF8KvTOLZmX+uyJ5S4gxGzlIdfQrQWSJQI5eNmxrNRX9Nz4n+zHFAjBDOY+ma\nrcHyVo4fgwzzo6KoMXmteqrm6zMWOdIs9m6JMHwSMGIf3zni6b9AVVPvHp6b\nlbYphA2rGj4gWx6yLaZkNeadR+dIpVscd03iCPsrpoV//zJrUEm+TosxoDdC\nkhVHTCRfcTn/AoyfO5OdUpi6izEdgLCzx3AzV4cQkCOrNKfloEnIAnRvhp8Q\nTcFs\r\n=91PX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"b1636a25ecf30ae59c762b697d169492c698a645","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.4-alpha.8+b1636a2","@apollosproject/server-core":"^1.4.4-alpha.8+b1636a2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.3","@apollosproject/apollo-server-env-mock":"^1.4.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.4-alpha.8_1595449800125_0.2442802547979257","host":"s3://npm-registry-packages"}},"1.4.4-alpha.19":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.4-alpha.19","_id":"@apollosproject/data-connector-onesignal@1.4.4-alpha.19","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"54db888050dc092e82e30c9316912b38d52b2655","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.4-alpha.19.tgz","fileCount":7,"integrity":"sha512-ADlNqxaZjwflc37c76ka4GAKdkd/bo29BCaX6z+Wvd7VDpRb/OS+UFW8dqi/I8PwMjlfdrOV2oz5nbs0fUIJoA==","signatures":[{"sig":"MEUCIQCKNFCjS9Vwh2v9rLE+mMjD21R5jrWYtkTwrgNnOZ9UXQIgIRIEr9nWRNNPHLr2D7OccOENqrr5QrTV9bJ677ldw6M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIyidCRA9TVsSAnZWagAAWjUP/3fStUhczqVTjTk+NNQS\nTybamSgeUNtqVzBW+F+49c9k9RCs1ZaAmT6LOyfE0N94musMjfR9oqKeBTF3\niRE2xpuKowKtbpBDz1Ygmb2OiOs4o1yJkozvXtgR9DwsGUJAGLiNAHAcARcX\nf5w2JcLm4mSwZbSS2sYHhaC+SOwHQ04bS+XTZEPqX7op7GKhI+Ct2YLiCPOs\nFfeY2gBS9o0cET4uJjzjTS/S8cRy6cnh+4hhwwo1YIHZRLVWueNSWQ2dF9MY\nP9MOS/8dTXZVhbE6malvDDRBAICH/D2cIx2jYwh9OgiV5dzmeYlEXnxuYvYW\nDQmx35lJ5IQ0p2uOOIDswzqiE1UunqtK0XuG0vvAMW+tQx/koCG3UosAQ/Ts\nTNP5BRLpg/kDyQhKiBmAWfhMwMZ4wqH5bpa4BVi8mR3OPS4p8i6R/yDqKw3m\nlrB1mdhE9q7por8drxO96CgBUgYR02EG8IXHbUA1sYCYielhLxyjRFAI0t8x\nchG6hHd+QhRO/Scp//jXunXyPPWDR4SsmfqZPxzWaywuLkHje89onJE/plWJ\n5hgQIPNBehZ2tE3swhK0jBlIAZl99IT+P3D4Lhy5QZZ0/abZmfkk1tXdEgc4\nlBk6Azx7WhDwtkhajMJWmsSRSiF9ApOuXcXiCpYdGoO4wEak6kr1zNon5nfc\nwQwD\r\n=mkPV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"7a6b0715f9b5fb93446d8b108aa03d47e4033135","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.3","@apollosproject/server-core":"^1.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.3","@apollosproject/apollo-server-env-mock":"^1.4.4-alpha.19+7a6b071"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.4-alpha.19_1596139677008_0.2662316698680598","host":"s3://npm-registry-packages"}},"1.4.4-alpha.25":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.4-alpha.25","_id":"@apollosproject/data-connector-onesignal@1.4.4-alpha.25","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"ae9cdb4ca576c08892eb612b5d9f6da40a7c082e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.4-alpha.25.tgz","fileCount":7,"integrity":"sha512-v9xZhhIK0Artoyy3f/omgsG3AE6/3QQpzJFKJno0ft58UKSNCDCHO20zpm20dgQkUDPR+Cio1aH6Ck27RNSNcA==","signatures":[{"sig":"MEUCIA2UtV9R2mxr2AVjL86hGjIZuc2SHFb9QVtSghhX+U2zAiEAj/b6Uet1H2bgDW965AN4LmUFDTVg7vnes1bMdeR77ww=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfJDr7CRA9TVsSAnZWagAAcVAP/iLcvxyKSo+ykdx+jxgI\nmY0ZjFN0yopMjtTKKKJtZvBcbzDpTclSzF6RKi5gBwM2dsZVEzxfhfanPQiG\n7+sfSo720xyFH8HQ53T8cDBXs6B9F6Ie+dTIESaiDQtDpr9Ftdu4ZtiLKNN/\n5NGlDDbkYLdrW6PnjArIECSqge6Vv7GXBJSIvp4V3qL9Ac00L60ZGfJm4mkB\njQn5PGQ7dTp3HvpgYg6+9WugHsxF6jVqCyss+7aJw7RI8dz+iTml4W7yArzv\noBAlcs6NCgXW184b+AZi1mNZmDa3OrEGSbQUaJV4yWxaFknNKF3dyg6tmfpd\nCoVFuB+TCvnQcGRYDOi04BYG1HoV4p4WjMLIHxYFgi/S64lWdgj36nQFe7RZ\n2We/Hgs1zZ1gkdtQai8uXJdLLra32h0Ym6qCqWh33bR3559EfjNnlc6h44UF\n5W/94x8x4nBp7+dfUvsDsan0nQKd3LDScYtz8KIKk92pTSxjCDF2zCKyWgyC\nnEwk1aB2EZUpAiKpNwSdfId7oYu5cxVrf03Vja2sxEEyinvceLN43+435+CO\nit6nJbrYOCu1lRe/+kTwr9Py/gj9Qlb07/10vvpcQEOJ5UgBeF5e/k5VRQxu\nTco/8Fr/lzPMrF0rVek2rhtVqO+ccQIObRdHAGJLJesRqG6eHshkbhnZNIAV\nhQaf\r\n=MKBO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"06ed09752c5b2970d0ecf468b67ede292b93663c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.3","@apollosproject/server-core":"^1.4.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.3","@apollosproject/apollo-server-env-mock":"^1.4.4-alpha.25+06ed097"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.4-alpha.25_1596209915071_0.22301153725945766","host":"s3://npm-registry-packages"}},"1.5.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.5.0-beta.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"492c9fb7069185e201e6e439f58dcdd1d07be075","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.0-beta.0.tgz","fileCount":7,"integrity":"sha512-LL/mi+6c3wthsNj4f4JOzXqFn2SSuoR/1J2NHvRmp3TwK04YYRCmenWVEQtM7QTR83sWJL+9Ib90eViIjGJRcw==","signatures":[{"sig":"MEUCIQC93PIx20pYLEItamC/j1387waIK9hO2UIhiM9mwWXeYQIgWRVd3tnlv9J0m64H1nnNMX14M8nSZ6qoXfzTOQge86U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29210,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfKCSBCRA9TVsSAnZWagAA9lQP+QDhI5kUfhXTHNRUaxmf\nQ5A1ux7ApVKs27stSPKv1iwWw1GfGr8knthZcDAhcfufH/6Jo+s01xr8oePE\nObN3qv3jnrvX/eIyUKtHr7pmBlUVDCdV2IgkD+s5hve5scPlk1aMpMXYZIN1\n3wNXtbWoMTaeX001atwBXwZ0oJRid410GrK0SfrHBYhVm4Bn+k8/TavAX9PN\ns5DyJ8vLaQ2E4+CO5b7OoOv+qOOY6b+9aNJ2/6TtrQ8WX5yniwtawoqHAvB4\n6KAed7/FFkL1drm6WGsNxdEnlyLlDgUpSAKtyDDM9lu2yDDwoQFWkPqsJs0h\nZ+ojaH9GjVIeMLbwVGWiAUzOAurCtOpPHDwjBr69ZDjVlYtEHyPyHdlamItx\nU7nITDVLjJku8PGb4aqYkyMJ1MzmgzBWPLxlAwLMAUrtL9S4TGVy3odufJic\n75wEDrn3C0VfE5FoaIDiPn29iFx01mmDcQnM7wp+dVeuTojPox6itISUcvBy\nr6t/aJXnu/O0kNOL8JrpEYiwVNkCu+IZTjJjNJ207vQahkSyOxHFV3zRqyoa\nFvwLI9RkTUXcf7m1y0sbdd6vcdGMx989UMIoc5UzoHmmeEOweY8qNQCJvHm1\nmS8ERZrXWLDvAhmPlI00dOmvocUY5lxGf++r8t8swcSCjU3/fQr/Biew2JOG\nl+0/\r\n=WUAg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"2e17a4083318659c99c961cc3e6151077c77d1e1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.21.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.21.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.0-beta.0","@apollosproject/server-core":"^1.5.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.5.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.0-beta.0_1596466304719_0.7611715095828526","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.0","_id":"@apollosproject/data-connector-onesignal@1.5.0","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"a81e4dab9d060961a2c3a34e8581231e76261bb6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.0.tgz","fileCount":7,"integrity":"sha512-ZwEzYkiveul6kmuv2oe3sQ4l6Vd4ZHszU0O6nbrLcXkk/ee0dzsxuZjtCuowT7M/OQ/59CHkrh1M7qHykhjDwQ==","signatures":[{"sig":"MEUCIQD8vqtsh1OEND1jFQ8F9efHJSuwsXiiklMqN0QPpXRNwAIgNZbxicQysPVjd4Kj/Ad7UKzvi/IXIq9LR/zRYiBFbmk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29175,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPBczCRA9TVsSAnZWagAAyZ8QAIQ/AJaurQREuRodj9Wd\nbvQZejNRM73hbo/Zwg0x2aN+mjoSINkqziJoCw7pPgqS+PCLkAGYGBqucB/s\nCwddJUXktjw3C/bzS1DIQSb+aD2G+RFaJij8mCNMZmpIF/ZQSdxJw3goNEFE\n4X6yjisD2nWDOo/zr4+Ktxu9PqTHZU2x5u5w7lHAHoTAszTuRKfij3zp/56m\niuPE5qLOEtSGGYx8MtNMFif56ehgd2EHDorFVIniUuD5bRPLCde/lYHYt5vz\nvhuy2B38uAV2tJW7vLl0s+AaMSq2iDQARjOUmGFhClhzxnWwItSuxUojCuy6\nWmO8JsQm5fL6r6Z7vMHAU9QQo/J74Xz2RmMu9sA0kGkAQ+aobqwZJj46ccTV\n86e3LqFgHqjJ5Uw5cQrr9N3RRdh1fGnlAnnXNlnYtWdHApesp2txrHGRO09j\nx3nexOAugVx1L0C5khdebh1S5k6Ncb6z0yLuaeSVUdKt44Pfpv6m0ksaGWwW\nsW/NhLmb7jSDKOrJAjkYhg5QGpN4vE9TN52SvIuP1Iqzpnm5qFqZjabjtqNR\nob7x/4r4cf1OxrRmke8CR4fw0Tujfg6Cs3IIa+Lzw6a/guIe7ZqxVzTRs81z\nUhCRiRbjeoJJgONVzJvVyszWRl2Mu6a4O7NQS6fjC6WsBntKGm73B+HIDNed\nhRCb\r\n=jt/U\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"1b15ae5ba0fad601321b62084101b3728ba2fd1a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.21.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.21.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.0","@apollosproject/server-core":"^1.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.0","@apollosproject/apollo-server-env-mock":"^1.5.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.0_1597773613678_0.5844716635306548","host":"s3://npm-registry-packages"}},"1.4.4-alpha.35":{"name":"@apollosproject/data-connector-onesignal","version":"1.4.4-alpha.35","_id":"@apollosproject/data-connector-onesignal@1.4.4-alpha.35","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/ApollosProject/apollos-prototype#readme","dist":{"shasum":"3391f9abf920b85bc750b94808099815bb63447e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.4.4-alpha.35.tgz","fileCount":7,"integrity":"sha512-xcIRj81Wtmp4wWLwOVopGEyCbBbEO8EO402fYgSVBvUWgaHgUu0wiRvdPl7kUY3j5vPnmOQjk4WWnidUg1IWcg==","signatures":[{"sig":"MEYCIQCzz9EAKNKU3IfSGergtwBryye+Cc4CLtPYZBYnolpm9wIhANOO7lSyrgd0UbxWuyt4O7uB6KRjVLZgJe8i0dRWu1fj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPCqXCRA9TVsSAnZWagAA/cAP/i/K7pdIT+yl9zgJb0eX\nItvAf8w4aEBuh1jDDwwyGvuWzWixT7v+APZ1U2FwnnY2HGpXIZluwQHx5uew\npQKm8sAB5N3arh2eERTajrFKHAldqPf8hKuFk6F+Q46Ldi4FLoDQ6yU2qDsN\nvdVLEG6Oses5QgFU7xnwS2VS6WcqcL3yLahrJiOZp8iH5TwWoXonL+ftx/NO\nGrKG7F9VUD5cpRCDFffSYhikoYY8Uac8NKn7DXPaz9Wan6wplAxZBf3IOwmb\nW+oZ9uUAj/hM9tJWoXWEQy5yy4ZV2QrHPul4+SICBVEQipJV3loBz4fX3dSC\nGvJwxVNYpaj55COE3iVo9R6IQWmhYvVJqHuQJBjUKdmiXvmwlkm7gUvwykcg\n9jLc+RyZwYn9Apd/00qkiiS78qjbAzvigyI8y2xsk4514+RFDZ03m8jxd6U9\nTB9KU1atT86L8PxNfe7Y7KAT6M9uuKPgUdlX89FP4HR2Ewhk116eR98+e8J2\n+bpfNqFqfy5xPVWJ3dey+xLb4TbpjOAiVFTx6c8hRB8fSMcSZWQqU7h11ISr\nEJv4IypJikX2vZKT9VHJ42nAzlYmXPXfV5eBTJujzrn0GCWnFwHme3XQQJ4J\nXir0iqv/bKx99JwSdNQinNL0urk9InYvj/JRVBITCL3C5SXk/EpVXJqgdlyJ\nsphd\r\n=RbZP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"4c9bb1ab683b52530b3a11af194c8cd09d977fe4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.4.4-alpha.35+4c9bb1a","@apollosproject/server-core":"^1.4.4-alpha.35+4c9bb1a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.4.4-alpha.35+4c9bb1a","@apollosproject/apollo-server-env-mock":"^1.4.4-alpha.35+4c9bb1a"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.4.4-alpha.35_1597778583432_0.5245814299361296","host":"s3://npm-registry-packages"}},"1.5.1-alpha.5":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.1-alpha.5","_id":"@apollosproject/data-connector-onesignal@1.5.1-alpha.5","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4e0decb000dfaf80a472f39c0e76ee9356febbbc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.1-alpha.5.tgz","fileCount":7,"integrity":"sha512-utDpZNNwlJmhhX8EFc/o6LXq5DntWWyGg0Uukpi5EwYR/RtNn9J+NUEP44s/IrFzvntyQeQv4hrwUmy3wSAGWw==","signatures":[{"sig":"MEUCIQD6TSsZWJ71xgzBku3r0PMt/FsMRr/YUYd7lST7KJJf6AIgdw9WMiMW4mf7/K7fzthDMKQam5Fc3ceZyiC4G7Ww9wQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfTXBPCRA9TVsSAnZWagAAvzcP/2jL/m4Wkxv52hjT2DyF\nLMJklONMoTr/He7eIG19uC3hqans4aM2/7+WdW8PblFoNxDsKD5oskSfqaKG\n9xrfVy0GCQIQ5Y0owlmMO1ncdlRk1WkeQh5F0TPjTWybyUlTNOWgnnp0UC0h\nvoLtTALQmErw8/zpPQ0R4IqX8PQ+a5MLJ3dvOWdR1A01csea5fYc9IZgR2Bd\nGgVUzHqkkHVMKe/s77VJP4ETc9z2Z4NNC6dlxPSIyTw/V6caOTjss3/ciysp\nuTurM7VgjJapCsm9D/bhGYl1ICvJBOV+tdFn43llZiM48X7YTje1FnU4Iehi\nmy8n4QLnz1u77BwIuWQqqr717EPPfoywlKzt4yyveNnxsG67l45ZQEWXZPCF\nvaTzXGuXoHnTA3xKeEO9owgzCW5w/60tkLxcCPZ+y2sC5mmiRwNzzVH29FDf\nVUmu5/YQy06EfKGTHe9O1zMLF9rb6l+Lmg1H+RQKJtYdvdkc2DfN8/0n2FhY\nWyHed8EDMvd/dWDSMRjL05drUrA0aLAUWWfH9SoH5W5oze9R/m6jw5udmVLz\n1mVE8ZJEKFljtLRCxPBkaLsf0/rPSubtp0J4OzWjBoI3+ROpdNrij0iQaXQl\nzrxwwV7G2BN7rqaJlZZdAGW3aolx4iPkv3c7GLX2tyTjmvOScVcbZr+IRrI3\nnAw9\r\n=Nl9f\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"054015522fc512db77d0b0e01ff7754a73c16fe3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.1-alpha.5+0540155","@apollosproject/server-core":"^1.5.1-alpha.5+0540155"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.0","@apollosproject/apollo-server-env-mock":"^1.5.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.1-alpha.5_1598910542907_0.9976167790334818","host":"s3://npm-registry-packages"}},"1.5.1-alpha.6":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.1-alpha.6","_id":"@apollosproject/data-connector-onesignal@1.5.1-alpha.6","maintainers":[{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"fbba1b63ce8e970192926653dd823e82af497472","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.1-alpha.6.tgz","fileCount":7,"integrity":"sha512-nh1CI+7QMZW6xFximDxQ41/vfWrncRMwQ17DJSzk7FTFw1qT8AvDyPovGpfv7NHk0Pkq+vOd63Sw89cZmip/uw==","signatures":[{"sig":"MEUCIQD94Ygf7XLtWjSGzrkI5aTAGo/jJp+3AH/dMdnzWSQ4sgIgRTz9jHRfQTtjGFcp1Q10T1DUgrxmm2OblkS6V87NMcQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfUUZhCRA9TVsSAnZWagAAKZQP/RgZlU1lznDP0X8XNNau\njOqalS8+PvAdIwQ/0emh0Vd1UrXM92JM33hTzrGOMxxLq+YLX2VGdvFbEQhz\nZ8YYD/6lNX9iT3nUKNg0Uw+geAf3aro/oHXFLrXHgI3Hk8E1aiZbSp7i93rG\nI7t0rUxcuJNpzEOe/mS5WEWrHwaQzBSk8QU46e+NHTFaDf/I3EbWfZX8VYxc\nFATigZgX/ioe33nf5qg6abdIKL0UQvSo1DhAa8nQebFHr2fTcY+iEotaYTW0\nZD51SyN5nA/vM+8Cy3s0fr5bMrMH9lLMKrqkOrDFAnKNPXEjohgBGXIJlk9U\nXAxTNZ2vfNsHKX66zf+VKQAdqgRbI4Jp14KoIFibHl8IobDhEXfHaF9nKfrU\nZ+QKh4Q6kROjh8eTQ5PkRjc6KGmV525eFZBVDurde4kNF/2TIZFOOBZr0hDQ\nv8hagFxH94vh7JxzFeylXLqNRuwApiUhGPjPAuiJZnpTmJWSzCZBn6kW13/9\njwDjhzatj0YkXWMWdSgSHHWNDLIziJVODo0jxpXDx6Eas6n9WFf9IfbQuUlO\nEL0+dqrwFzPWqsc8GrvCTfm6ENU9i3M9zvcVoS0KXm4ycDfhgV8wQlALOChb\nHjSzSoNVlwHJ8MLsDLtDNAAFLp8HOB+w4bfsIEoQPMeExPhAIKgmo6bipi5i\nH8py\r\n=9VIi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"449dda0f58c3cd9be5a3b3c493af2cecc0715318","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.1-alpha.6+449dda0","@apollosproject/server-core":"^1.5.1-alpha.6+449dda0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.0","@apollosproject/apollo-server-env-mock":"^1.5.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.1-alpha.6_1599161953596_0.39414910773871425","host":"s3://npm-registry-packages"}},"1.5.1-alpha.31":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.1-alpha.31","_id":"@apollosproject/data-connector-onesignal@1.5.1-alpha.31","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9679b281e1833189f3026fa2a7b970d5476c5f67","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.1-alpha.31.tgz","fileCount":7,"integrity":"sha512-th5kaLNrgyCuEY47En024Etx/Xz1t7GBX1UXpB7SvGm3Vd3zITUQiGVVmQJ+dJzQnkpwIPbyRWEd1dgt2Mq/Gw==","signatures":[{"sig":"MEUCIEArOBrkRly4QLu/tnW4NecT6MD99i3Z19bgYZm3f9rIAiEAm90XP6RqwNxiJaJ29Ko1zkqrZh0uUrZvPW2MXRfWx1w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29257,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfY3cJCRA9TVsSAnZWagAAgIIP/30kxacT9krmlWhhOt2c\nAiHyfLj1p5GWvFLXu2fsvzSVa/YpGaK7b1PF6EQheXy+E7g8KqgnwD+o03sp\n+wuFUNiKwVddmEaqPGNVoQmqKpXdkEq+nwhoVGNZvfsEVaV0zh63gnmwO5a+\ndsLA2GGjnnHW29d5sODVMCjE5FzFPixzUhpM5L0HB1/YwTAQVEa4WoWua9B9\n6ZWdRABPYmVFxzlvmdOpZ2P+OqUNaeFHGupywgdFMpZq6cY+F5nq3mPr+CoI\nxTat36Kaj4Vmgc58o9zwawZwbx4WOZKP64Wo9HGfJSLzBiQ4ktiQ2MW1ZUPl\nntGcxA7DMg4yT4HnaA5JU9kkoYXmA013DX/UGaHVGMZkScSnMo1UUzY8K55t\nloKo4JCtOttYKKelHK8rjhfqqyKHp2EQNVpK8zJ1eNd3qQQNXFbo7Ku7Qpsp\nIupMf6Slil5XtFyNeNrEkW9KjEhhY71FC1+WEqCOgNdCgjm1mZAyDSCyTPYO\nAyD19MOXOCAng809PVW7gNFqv4WjTSAldSXVnSJljNwL5raefQSVUbfxjc2u\npZp6mHsg+6TICfsBkxTjApsmIUBfm5WKIFfxe0B6ntAoNGE56qaUDQwT8Xqs\nCBqPDkaIOd9Gzflox/FyiHLcRkFeiDbqrbpy/vD5n2B7YpLXcLkP6h52zSnc\nkmCS\r\n=WlFl\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"8af55092e3d61d66fb7423a5b5b6d6a2ece9bcb8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.1-alpha.31+8af55092","@apollosproject/server-core":"^1.5.1-alpha.31+8af55092"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.1-alpha.31+8af55092","@apollosproject/apollo-server-env-mock":"^1.5.1-alpha.31+8af55092"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.1-alpha.31_1600354057534_0.45361749393137973","host":"s3://npm-registry-packages"}},"1.5.1-alpha.35":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.1-alpha.35","_id":"@apollosproject/data-connector-onesignal@1.5.1-alpha.35","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d037a7c346fb0b71336ecd9e948612e0936deb11","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.1-alpha.35.tgz","fileCount":7,"integrity":"sha512-4+0hMfKIil7q5idJQm5iCwOjg1J3146TolDIq75yz0zkEaQqtJJ3KBGEBQkhKlAA8kwJNPtO3KsSxvvIj+XvGg==","signatures":[{"sig":"MEUCIQDErIMd03Qrkddlphja9bcrM5qruO8Ii0cmwLQIcny6gAIgFchB7/kNC5hxqb7PWRWB22v133iubIfwEjTLAWcBSc0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29221,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZNUvCRA9TVsSAnZWagAA0AcP/RnD/ILZ2pI7PWnpSKj2\nJ5A8x+0yc/iMglZak2Pty5hMko4jwHS6TsWqLh7RwrXSDw7hsAV83HbYkwsr\nFw9ZktvjqXsVjh/HKQviReiF3qJ2Ayw0AWcRQu0Zra4FvmwGOnTwVK2qlD5P\nWuzGV0z4nNsixNhl6yl9ppkp3/Oa12miggGQNhYJkEgLekzYZRAc2IkzdT3A\nXCYERrMiyjtEx6RRQUPdvMEcJCIMLLPLG/gHlDF1D9U1pFhO4XKhAnfn0KIh\ntOJ94I7HGW7C0CFKx9+uOTfwEb8VkSYN05N3iGvmSD59eSRM91EYwplR6UFQ\n+XIaGmKl4TGw/lOcuXpFUsd+c2s7IRNB8iqnK4QlmNMNkSwZYiFsCScKDQqc\ncocQpWPqWFTCX4iP6rDX/JO4Ke/7hBdYfRhkDWuYgI4fY1Nl6F8BDk3QTwIS\njMJaLjPMO2RoqSJXMbAeGhoARTsUfoSnCXnm4uElWaSC5H5UPxLkMq1aXdx/\nr59Z1zZ/+pvBqOKwbLCXSOyoP3rnIjKgKFFV+UHpYQYi4ylXN6Hzi6uIetv4\nXDlNlqJaS3k7bbCZiSCrh9ZqwhFBb9A7MhiqCSyeVZv+eNBpmMe+KYiBZllL\nEySC77EiloHmdqBKBKdHcwgsu+sR8DClu22YBTJJb7VFhrG9tkZAQEX2F+F0\n1Jki\r\n=+Btr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"e44a5b74c11610c38b34e80ef3800dbe26441424","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.1-alpha.35+e44a5b74","@apollosproject/server-core":"^1.5.1-alpha.35+e44a5b74"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.0","@apollosproject/apollo-server-env-mock":"^1.5.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.1-alpha.35_1600443694651_0.08727259127772968","host":"s3://npm-registry-packages"}},"1.5.1-alpha.39":{"name":"@apollosproject/data-connector-onesignal","version":"1.5.1-alpha.39","_id":"@apollosproject/data-connector-onesignal@1.5.1-alpha.39","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"407a3983caa64b3d2532c58062178e24a3eceac6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.5.1-alpha.39.tgz","fileCount":7,"integrity":"sha512-H+kdhGiNx2yLNAxBHQWMdCvSoDYHguu8hrFjBkyEx16VI9FwqXV7c3hIiRRbKsSnUIaJc7rv4vNQ7/o9fbDjVg==","signatures":[{"sig":"MEUCIQD+/f3NveibGZlfDbyZEip495GPrRIkrfL2FUnZzy2UrQIgHEv6VdPHWNhVg9dVlDOgW3SN+7JLm/gj/rZrIOfO+Rw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaNdaCRA9TVsSAnZWagAASnMP/1hRxltbdGmH9NEBjbu7\nr41d9HrcGdoeGKPFb6jWVSwI1VQdeQHF+MSvQAcbJUCTGO5lCcU1zMGgyYIf\nxirf54nvsy5oe6ZqDuwfUJrqZKPt9oBOVznqG2LotIgxxQbK/Kv2171pmQ7e\n7QmJ6XREQkDMcHmrDXVffZz+E1SAjrdEFQsgOyu0rcSDVMhbmGwOtS9di/CA\nKuTwhbB9AjGRQAc3uB+pqujZnzVUoA2kYPerSx639K3nA7E4gEw+kds7fX2s\nCLLpZW+NNSQxbDIOJCdkWQ+d6+9sfZyugrUjJ/Lu9HLpDr17fZqasjbnAMDw\npL9nKO9rhHTJEry6scGN+EQg2+zn6pbWtraT+ICkN7o4AOYBbRdTKomO1tPN\nwGc8G4wr7dfG1DMc/gafQ+x6/iR1p12xW1rWECmAzSSlktW4YF3gmk2dKzxD\nq+NTx1tlBL4rXlayHm0zADzGOHmAWxAdoqUSEJxKrMOrUYYNOfPpYxcmMVci\n6GmSMeElJjs5NtlLnl9Tcq8DqiMOknzUjNF0jO8Mf8NviK2QWAH0Y5Jg9SBj\nzuJGoO9WJ5l49S0hG32CGIN1xZcZSS1ayxCtnLqwGsHq7SqK+zNGVZIKX23T\nWkgEKRDhmJKAmUbChUqT1D0Ll29yV0tTxQjrJb9sOroyeBi9eZ1zen7pN7+d\nAxyl\r\n=Xk8R\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"61df96266e04a52c1abbd082e3990f2510c3b116","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.5.0","@apollosproject/server-core":"^1.5.1-alpha.39+61df9626"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.5.0","@apollosproject/apollo-server-env-mock":"^1.5.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.5.1-alpha.39_1600706393871_0.16788048904574926","host":"s3://npm-registry-packages"}},"1.6.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.6.0-beta.0","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"61e33f9dc03d1120443b70b112d527365787ae68","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.0-beta.0.tgz","fileCount":8,"integrity":"sha512-ygxacC8EXFVlyeculSKoUzzUvSsOxP6NA1jtzJ29x17BEhV1XcRkEu+TNsE1k/oShr59ZCJFj5QL0ijnFM4IIw==","signatures":[{"sig":"MEYCIQDvQsWp7WtKQXn6uzxO2TjMeusVTI+FyeHIbQ1zJOiY5gIhAOmM8QNeqf1Z6PpprxGFe+Sv17Bi3GxWeujSDlvB/Ad9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaSZLCRA9TVsSAnZWagAAh4UP/1JntVOTXscb0OTw9Tjz\nlEXXMKgLT1FOkg47bsu82GGsEYdy9fSt2jrxiCCTBoZHGaeHtLzaPYv3dbMl\nWzRBrmXjQU23sT34UOXrWcvCC3vx3Fv7etv5Hn8HgQhxjh7tJsBj853CmXSC\nTl0DK9hisYdNnE3PucOfvhTju5JCsvC5EJsiVbyp40yGdMSUu73/tML6avPG\nErVuX1Fp3TfUNCpiJKBfvNdi/h8NKdLzRRrT+iZcs+4hO4vLl9SL7lRsxkiD\n4cu++09FWD1Bcq1xu58DQC/EHKdcFD+fIITYC7Mnu/2Cy9GODt6893fayUQA\nZ0WoLJtzhOLzPxOCpsSow1MnRTlLZt2TGPSqTv0CxN4C+VLdcNcbm7jW80tM\nyYWHYS7LtRo0BGPlWMoTN3FqF0d3HB+oUijaj7I45Iq38ZY1gfodso/i0ueQ\n30YVK871Zw4vrdg+YylE8W3XjJ7VtEpBW+SLo5OjZBY1jR+PkxvwkfAMBMu7\nuRQq4R/fLDZB3DF/RkU/3sI8Ay0JEXkJE2BxT+Pq71AJ3oDeOmFk4op8MYpr\nYZoXCWP7uD8OGuruDiXhAS4f+u7QqZb5LRMmogWbID81yZfpYF47bYUNkDLa\nuhHk0xT6obRKjuLp1W50fz5BTvIy70wD26GPXkPUnfWIv0Fh1o5dAvrib9Mm\npBoN\r\n=wLj1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"d1bbe6ba5e5061eeb417e481c46e490e567a5f92","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.0-beta.0","@apollosproject/server-core":"^1.6.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.6.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.0-beta.0_1600726602732_0.35422936804986915","host":"s3://npm-registry-packages"}},"1.6.0-alpha.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.0-alpha.0","_id":"@apollosproject/data-connector-onesignal@1.6.0-alpha.0","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3d922a19f7c3e263741ff19171db778a56997a75","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.0-alpha.0.tgz","fileCount":8,"integrity":"sha512-WC31/Rn3q94Y0eBCU9u0qXQ+OTyOMrI1yDZ88hfs1AycuEM/YaZYErC0cHzMFUYJdzGOlbEIYbUTM3SfEU4mkA==","signatures":[{"sig":"MEYCIQDnQfZTN/5JClWAu/vZ340/093x+AiK7nqFdj/1uiT5YAIhAMrnbGNijI8AY3y/9XRs4LeKE7wtMDNCuFVEvFYoJOi4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfafbHCRA9TVsSAnZWagAAA4YP/jMJxSRtNRtQG6uc/ZMP\nRqdJYy8t7OKBPlkwfIH01jhPqmQ647zq7cxG8jnFm1d+nge9FiLoN0Vgo9Wa\noZHCxhQPH0sGN0OeXPfz+ZP8/9eMguHwSqoMJsNSujb3whQF6AKXK0+77C9x\nsmGm4RneKmSpPd2RZ7ru9tUVbVf1hsThlkAXedYAOywf7LlHi9tmHPQwksFI\nYt/H9HPDu3bqus/QL4CBa8zNg6U8gpf8wA7uscEl2fUEAoS8lPHC2Mis2RQ9\nScnp+TjvV2sTTlwlkzfmPAXmpav8sL6YyvsRxaZph2Q16XoKNpU29gy26tgx\n+Li1L4CZC8+6DFAwZYgK+k2U9VWGYlm0XZshFUEiWrAlQQwh70VS8KsyDBq7\nBWrcYpbcce+1eh1GYHYrekklzqJ5f/tyJ75x7wi8iZClhDphpybnNXBsdcU2\nPv0SXK1+UK0nCLgpouUZOBJ2DF7VXuKQV/Xy6ZpNyh0jZ3tswIr5Xszvpemy\nrMOPGnbMsZi1UmLEMoqVwPF7KdPudb4W4Muj00uA8j1qMmFbfUyaOOqBT0mY\nXupCs8V732irs22JOkYYrZJISfUHwz6TRr3rdzJbaptDrLH11wXgK6/2LEzu\ndjxXP2SzfNu2J36TQD54ZuzjQ54R2wZr7JoRdeyl2tZfLGSbV11cmku8J8QZ\ns/vq\r\n=krUH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"bc669b4e53f0197d7d8823903b1a0ea29e47147c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.0-beta.0","@apollosproject/server-core":"^1.6.0-alpha.0+bc669b4e"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.6.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.0-alpha.0_1600779974587_0.7958946188683709","host":"s3://npm-registry-packages"}},"1.6.0-alpha.9":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.0-alpha.9","_id":"@apollosproject/data-connector-onesignal@1.6.0-alpha.9","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9f2854b84d79918164cd3557c2010d04dec95b20","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.0-alpha.9.tgz","fileCount":8,"integrity":"sha512-xrgsBu4PQ0Yb6C7IjIyAe6L1+78lqPTVtUt9ukSFrAMzdM9gc34B8Y4M+9co+lNTxZYuk6zL/h8GknYTNkPFmQ==","signatures":[{"sig":"MEUCIQCSGCzyvNYnm1GJ/kg20Wrv7MUYPkDzy2HwmmnYQUWDyAIgarxpavQDHZ+wkO4eGtLFigcunW4yyH0szgZTi6y/qlg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfchLWCRA9TVsSAnZWagAA4UkQAIXVz6nZaoBIJW5AnVi3\nBQbEQQ4nYyzO7J8wB9Djj9sqDCw0K1Rv2kq/JSICxibFRrUBpbuqaoSI9ur+\nmzApXi6V7b+yDyJE7RdLDFrY0ljZT/55va4DXbV+sXjiHKEnAQZ+RNEx1ZGi\nuChyYFjNUwvKjuygWNdsdi7q+Qdv2tXe5BwRwXto57hXPI+jafDiq6rn5GTs\nmvB4nGzif3zcxu4LN682TdHp+i9oRJERhOP/cX8wJI+a9AAT6rVi7HWwCkdc\nl5meVyWWYwQKFlp79wGP3dxRuTB+viws4eRa3xDlcO2Bx6uVjod9goehFZBN\n22nGdMLCj/8rZh80rfsfD0NKsYALY6OLrbY4BIZLTGXU0wALvofJ798+/65X\nZoy2hS6TI3dpermfwwNe226EUyr2uObb8hnawe4tglyMq64Ib/mZ/JtDPfSL\nFBFBiYpWH3Lb3E0MGrDtIDrjMLi5rqCXaSrIYkVqBnHmPWdELKgs7kGzYEJ0\nP2rUhpaaTUIs63y7q4irI1iPYSrlUDYgIdvS5N72kXUt54OxNuvP+Fq+fk8Z\nCXqehTrDC3y9xMyt6s0XJQo1M3MgvuavhbP89paitf9TU3lAiBjZ/YnzQ77g\nbVqWaLrxhcwh507OzN0vSIsmAejWMFsez/nYlxk3DqhSAXVa4SB8zgGDMicn\n6JBi\r\n=5lSh\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"1a75c173078e5a9967a1d11c7d83cce5aadbb3cc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.0-beta.0","@apollosproject/server-core":"^1.6.0-alpha.9+1a75c173"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.6.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.0-alpha.9_1601311445845_0.28005798145442395","host":"s3://npm-registry-packages"}},"1.6.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.0-beta.1","_id":"@apollosproject/data-connector-onesignal@1.6.0-beta.1","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3cd6134324664026f9dac587c22955803fbcd91a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.0-beta.1.tgz","fileCount":8,"integrity":"sha512-JIEF9kT8IO1Tb0rXBWzIZsdutGshe1LAh0l5ifQ2HyYoMMxHIYnxNkuHQ5/UGEWVp+kF4NC51Pm+G0WRpplzgQ==","signatures":[{"sig":"MEYCIQDXy6dJ+ibp+UvFAtJQ6Wl+sqm46xAvTjdlFwNFA7nYwgIhAMgNWYwAxMURumd5vgeEUEpmdJUC8iy02oQ//08eKhYf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29763,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfdJT0CRA9TVsSAnZWagAACjUP/R99/hqXWH4jiTMDB+qh\nSjH7w1GmExviAXWpIFM1H+zEJUS7MD8j954bDg6n6ye2Ggy+9DX51n8EYZv5\nRCJk7TA4umUT20ocZgiyVhMBPkV+Ukti065bcXkrRx+fCnI2DW/kIGBN2A+1\nvMytEKxj1HHan1xNYwZ29PQcirGv4IDqfzPq94nHOQywUr6jtkA8KV3tkHSO\nQGmttwTrxmLHL0E8qMQY0+B1Ou0xqymflw1PSqiNDT+DGCVxLEtSzHsMMSbU\nIxZ1wFYTHFvR0851pBL/YMzfL9r66eQT+LNDckDtIqO1VbxE06OAVm1ve9m7\nEkF6bviyLPZCaCKTMM5FM8U30XmJ1q0mdr8OxYHQV1GXrWgWfvhRAF4bfEtS\n7+jmuWapXnhXbFdI8wGQTPC2vDfwW8jGUu1slyDfASfCTpx2Nb0w24n3/r2j\nTRNkafYtWp/5aGll1QLuwFxobH4Tst6YsoJLCo1tQc8kcfhP0iJ6subOPICK\nMw1gSKPlkcCUMVxr2rdtV1iEMju3+ehORjcFLhNzaEL0YswK/SpndN08eWXk\nTLBBX2ctPwvggGhkFxrxnRxLKG5/nkQby9IULD6Oiyt/7R9wcg78ItzsfuER\nx/U03fN1CB3UHHxB4PSAXtjlIgiYjkjzgSlDrcLuyA/r8AQELPJLluqa6h40\nE2Le\r\n=/6yV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"9cd96e792ceabfe2c908cf8e920911442f52d1e5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.0-beta.0","@apollosproject/server-core":"^1.6.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.6.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.0-beta.1_1601475828369_0.10305984539746205","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.0","_id":"@apollosproject/data-connector-onesignal@1.6.0","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ee2e50a056b2595a3a8a264a3b3117c974499edb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.0.tgz","fileCount":8,"integrity":"sha512-HVvgezablemi72SlIjvT7Cfn65ytx1G0b2LOkZpr1NJVlBIPQB0A+58ewYhU1p6TqmQ++AEmOIm9j/CZEIHxFg==","signatures":[{"sig":"MEQCIFETvt9SB8C1wJnGBIj8EU93cCC3hz3ofQIj9doO8DzbAiBFnv3yMcw0esI4gDcLHyXEz3ud90eZZG0zzn5Iu+eSyg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfgKjDCRA9TVsSAnZWagAAX24P/iWoWKSUBli2NHIEZIfp\ne6xDgylF2/ceOBd4jUQIoJIsI/uX+2NiaCxImYJpo2A842vFfzMgNg2itibR\nSQUWl7DKSnI8nMhKuLXTR1z+3XhB0L8Fhc8DJZdeJ7HPqLSiTZAtBLmVoUsw\nRZ4djSdwO55J1KxD+94S+9ImEobHjYab8vlTimedbqyBgd+ITKnFQnjSJl9D\n2kLr4CVKoXProEzctF5blq4PVAviwJ3/znT+8fNgrApOxCe6MpRZHk4a/4kA\nVLwteUq27mkvwNUxjceGo1adP9RoIgMLR9Y4Cutv1gRIES+mjZBOlaC+QpLt\nfFVx1Ty6e8EPFkoSyMb7B8w9wcDdxM5FI+tiQY36U70v4hfSOGhIxSXKDRed\nJb8BDYSlGF3aSUNMonbLCKu2BdgKPKOyzUYYy4OhsIPJRmiuxogSmXkfGhTB\nIo9q50qErHbeeIf6cQxYzITGkV50O2BwghBgM79jQebbOlMdcXoujLn1p4Hd\ne3hkjfCM78suKWL6RNprwOZDy13idXKVvFQKk6fvvBOydHEwbyyz2lvzEXCd\n2KGzWZYumrP4BHmnhqJ3F24kiVpMfnJ/xgJwuG6wCGBinvWHLdAlASvS7eFu\nWJ0dA1+AKTHkwKtMsAc4lxQUKrJHwvGSB/ye/N51PSbP9WeO07YYFU3GD7fe\nz05p\r\n=y4c5\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"5a90c9a943df6c5d1864f4c84ae2ecf04d233503","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.0","@apollosproject/server-core":"^1.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0","@apollosproject/apollo-server-env-mock":"^1.6.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.0_1602267330548_0.25261461089578074","host":"s3://npm-registry-packages"}},"1.6.1-alpha.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.1-alpha.1","_id":"@apollosproject/data-connector-onesignal@1.6.1-alpha.1","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3ce89ff2d41172622cbc4d40571e846ab4ffcc47","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.1-alpha.1.tgz","fileCount":8,"integrity":"sha512-gNI/FIp7OEQ1+vbuR6fBNeDJpt7PjWE6JVL8KtdJ+wrlhUO9HA7+NXvIDxzxkBkb/rBfgW1KFup/p08Za/kjOg==","signatures":[{"sig":"MEQCIBBqGw5fGsDuX8kW6wgpv8oZBgoTOM8hDOhWQ4+apUuNAiBKszmrtie6rHRvQrybU7sfkqNosbfdAwo+qXdoQnQ+Fg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhLphCRA9TVsSAnZWagAAHE8P/AtuJoJ51GjUl4cqMy21\ndH8ohK/AuHLpeGzopRTNHxEkSfdBeAGOOZ6v1lINvva2vCj6KfEoO94ygp8I\nqChVvw68ZYL4DTk6It6PVWJJpGmlF6V/QL3zR/S/0B2NjFkIx2+IRRXwFaK0\ni9XAtT/47J2/NXfB2mNgjvcSWXG+Q+UwM91dujdZvbmOnrbLfXDfS3SGPP7B\nOlEngijgEfQloKeNMwwAR1CwlkqnR3htdK+EOf8Ja0FNJGVG9exENlvdDfUy\nA8qco29hTGfUqqDuW4ZXMKIJM4JYuyleAtAGCWpVqHuWFPHdSMsY7/Jmm1uW\n38BQ1FuAGcAP+Z+d5ESV0t0vs3hd7EN7BYrG5aYsfnutPQT2NStFbZKzc0qz\n2wMAXFEEytGNjBgakyQn0UGnqcdcfeiZMO+klJkiUzIqtAQhnr/AcQjVznGm\ns7ll1m0XNUw+LNMm/y8CpLugOWk+oUMEbwnoBRAytRmcP+EcovBSnnH0bfAk\nzh/d0s461G4RoF+Rc4zG17Z5kExNy7oRbR0v768JOi47UM2MyldyvP0D+/UO\nVOEN8MMY3Yijau6V3YJLwVYq9KSytF5IsrcQTweRUrb96O95wni/1SkgYpp0\nj8Qn59EXdCYrKddKSjrCsT0t/LT853IfDyAviykQe0QFj+cPGvHlPJ5MRt+j\nIF6u\r\n=T/S1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"2c016cb328673496f6a38324094df9769d06b3e5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.1-alpha.1+2c016cb3","@apollosproject/server-core":"^1.6.1-alpha.1+2c016cb3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0","@apollosproject/apollo-server-env-mock":"^1.6.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.1-alpha.1_1602533985225_0.31925769690137273","host":"s3://npm-registry-packages"}},"1.6.1-alpha.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.1-alpha.3","_id":"@apollosproject/data-connector-onesignal@1.6.1-alpha.3","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7a3663b5f0a7cf0677241652d10354f21932f241","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.1-alpha.3.tgz","fileCount":8,"integrity":"sha512-6DmmDSj4vMWl3VSUahDAQCTSeJOmhtMjIbUGcT90sfh0OQi1+vu/ZeQBwhIF11yu7G5MBQeswkruadaZ/FaI1g==","signatures":[{"sig":"MEUCIGWe+5mKBkieBatt7Cx4ZWeSp8rPyt6Ld5tmzdKlZscWAiEAvFdR/AAjkoLRwB/5tcPBbDsx58Lmh4QYRBruRbnjox0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfhfVRCRA9TVsSAnZWagAALYQP/i6HdhHzy7xR/o/UeyDE\n5Rm930KtBlDncnF6QbgO+6nQhSgX3xVrpmAc8plq3zrFMXUUaRPSPUDzoUPz\nExde8wUM4ZeFaQmVm/CD+fIR6VD00NFASm4Bgo420F49sN1zg30NZwm2N87a\nsfTafLXgArbEplz5yQ0cRaiY3k1xrXB6w8N1nrDHoJbdD65H0as7RstlPf8d\nsRxWtKmszfHBckhzGk3LUpiXD1hvV7wJZBGtfVqFUS41VhSO5apQosKftbMs\nCW8mIr9hbxGX2yl9IjZhe3GVhxvQzrtw7MV7NUm+XBLkhtKy3gL/0eeckTgt\n7x5AEOXWKKKU/JviPe7Gg8tC5qQdy/QiO2slKbd2Wb8u5b1ZZDtr46bzMzwX\n1AWOhOZGKWULbRM0WMij2ixEfX/Tp312MFs9epySb7lqJGNkXcr5MNPgKPEy\nzI/a9b77/QiJMxVMOJTOmit/FKPuOPZLGAgdv3lzdgNOkDPmB71x7SyJNjWX\n5WpGOGar8jo+P8CR+Iq7SdDHxCBscFl921JJ2DJDa0gm8k1Gvm9fE3SCUQzQ\nS8AoumeF4BMklBV8UCgP8VqMDtH5I3u+UwCpt5ig1rObk84iW5cPgHiRLTBQ\nRq1z2EP2VG0oZjVL54aumXT7PuNP/8lj6X9dDqWt5xcYpJSOUgDqzrVvbLHb\nJBfN\r\n=WCVl\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"7b4fcf91501d5a8dc46b8fb397136cabc38bc834","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.1-alpha.3+7b4fcf91","@apollosproject/server-core":"^1.6.1-alpha.3+7b4fcf91"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0","@apollosproject/apollo-server-env-mock":"^1.6.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.1-alpha.3_1602614609151_0.34897095020300783","host":"s3://npm-registry-packages"}},"1.6.1-alpha.9":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.1-alpha.9","_id":"@apollosproject/data-connector-onesignal@1.6.1-alpha.9","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"159093c9c14df810a2acd65d44bc80b4ae7aaf3a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.1-alpha.9.tgz","fileCount":8,"integrity":"sha512-kKLa03fDMkqmUPbtdRNjodLdtojBPy5GbQBsYkQlvPVa3WPyysBbTdI4G7xEPDhPmeElLWD+KsgDV+ckmDrMwQ==","signatures":[{"sig":"MEUCIQDTo1QnLDMOEnZCuWDlRj0mbvIu4cc9pCGO7QN2x3rMqgIgewROWnQV6scy8v56p+D5luGDHArhDo8+hBfz8c+Q1TQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiJeQCRA9TVsSAnZWagAAfEEQAIm6mH6IxXu1WYqoQOke\nPqFk/lntuBpxJhGYXIkTZjhKbMVd/vsEY1VTbw+BVav2Sm7ycEkl3jzeWJNp\n57y+9zisx1w9MK93FgXh+fCxH3BFqSsb6FNlUZRsSi4+H5vcNBhQmcJdYVG9\neYbDXNK39Za6UHiovg1uNCl0FPvTknkiGRIRGy5hQGDodyLQMcElsKwr2PwS\nvH5F37ZT6eHwEirjbgEVWTy0iel7Y00tu+LLOYh8HAj8+b6JvYDJ60GCGE8l\nsNZMVWzxbB6p26rMc4Y4CSC6R9YeerETNwGobTwhhA3qCs+Y1z1cPgIUUi8M\noGNUuui69LG9iGApymwa6QdDuZ5hdngiLyfC3aYI6IOZCVM9+sYLWral89S7\nSZI3DKEDZX5pwj1LA40G6oMre2nm3UNlbN+MhBoQY3V3rk2xXaQ31+PEeLbb\nqjcK2B46fA2HUHdVaNnCPESvB2TqFQqwpPtNTfRyluGpDStEB4Pi+dm7gIJq\nVrszhzbNFmAsl3IANoVUmj4LzKAw5dzWSt6Ii5Bwa3TXc4Z6VZeF57TCvVPU\nKrKIhVc4m3Yp9lYv1XMY6d3QCX02iS2SWet09ZYfAqlOGdkFUbPMY956xYQm\nbZdb/adK0AKpMEk1ax7MAzhg4XkHLLIsrq2nyA3l22A6cJFqFg3m5jCxqkqK\n8IV4\r\n=YvXb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"cb22a8e8abd5a0bbe986cf2328a32f3a83721ceb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.1-alpha.9+cb22a8e8","@apollosproject/server-core":"^1.6.1-alpha.9+cb22a8e8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.0","@apollosproject/apollo-server-env-mock":"^1.6.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.1-alpha.9_1602787216445_0.3117696125056688","host":"s3://npm-registry-packages"}},"1.7.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.7.0-beta.0","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3ba2f0037d447181285561c0228fdffd98e88e52","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0-beta.0.tgz","fileCount":8,"integrity":"sha512-S43EajIbBJtFNLJZoEi5h6ZPbpleJsc30WqYw12fmolnEiTiQKfODktfwfyiyNPWUBJlMDW/iB2277ScDEJUKA==","signatures":[{"sig":"MEUCIQDlr4IkBGd1Fn9QTNetBQh1xtbVSfVNgaX5Mof2QSsuZgIgZk/adomCebi0gCZlYGpyQpDpLOXTpxc6OivcS0+jyB0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30148,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjfqWCRA9TVsSAnZWagAA5DwP/is907nTyur8g8lh5Mhr\n6KtADjfucAm2CzLsTmrEp6y4FqKvzXYbqDL42FIf0bjFQxkbYtBVzESl7+yi\nxm2n5BnhJwo9lxAa3jKRkZXgiYqk6ywDdGIA0dRnl90gamnlpkBvJL03Q2ap\nbheOoxGyrSsLKjjrw9KEePQYIM7eVBFuFfnYJ5H4TtVs4A8LhOKYCcfIqmZJ\n0mQR+LOHapMR7PTlwixearkgzQkZ8JyMVvlr1A3hUyn6xYTF3Wygk2rFrInh\nFignAo3yvsfiDplF496gAyuVJvMkXwKI7of7y7X3wEDTKTEV4sNNvCreokL3\n+sw1pcp6dEjosIM8/TS6+4uIx4N/OCuUbQYrbp2G/OYyVbrc0VxjZLBXedzy\nJ5lR1TIOvomP+ivMvkKbjcq7wdTo1Na2BGOnEnkdzLbbO1+Rhskmg6Gkor4y\ny/tllqRg9YvCScY7qEJyyrRODU5EFtjxLtlQTN1saHiOoD1sczceEOJRHPmB\nFxjF2vo1bE8nYPl0Le1hEhpWMJoMejUrVpy1Pa9z+feETfomufYxaBRk1oMi\nnU4L72FR21qy+0t33o4yNEaCZnLeACbBi9s7RSzr55gmvgFapSuYT5CRgbrx\n+PoACPtFj5Tplub20axxFyLWBFww80nKelY3WC8ayhUN7Ehfz8Q+IHFOoed8\nOjFH\r\n=rZIh\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"9e9fdf046c869ca6af09e708d932955349eee608","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0-beta.0","@apollosproject/server-core":"^1.7.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0-beta.0_1603140246209_0.15687165398487313","host":"s3://npm-registry-packages"}},"1.6.1-alpha.18":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.1-alpha.18","_id":"@apollosproject/data-connector-onesignal@1.6.1-alpha.18","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0c595b5164ad8d9f5f6e4c72a5f46ab9bd614dc5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.1-alpha.18.tgz","fileCount":8,"integrity":"sha512-13nBRZgOi7W67vXISfnuqTwoqOO7s6gHXNt6sYkxN5A1UthlvIy3omR3X27dv1zknt48oXh6cD35OkTAy6lOLg==","signatures":[{"sig":"MEUCIDldMMzmzP5SJKzLxbwQAC4wM5mFWKFhoiA+iqjnHD4/AiEAhVOBz8AaQhXggepU64Qnr8PjibSUXwLunc1HJAMQJKc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjfu/CRA9TVsSAnZWagAAuysP/jaAleTsgtOUWjkoTE1d\nSBTa3vArAJh+VMK2hWOl9axcc+Zo+zBdW7KHKoiiRMpdbHcSLbu2N1PbAx6K\nZ3tH25khrxhyJBNL/G+Hggc3ySYsNHZruasUkQLwkY4CyZI9Flh3a2ZBsveg\nFK5wRHrpqQm4ZMHJMhWOlJE+P/1ajfWz5eVHmlGFwwdHYI5pkoDnrg5Tq0dN\ncQScr6KSPosKK6PJzrtR8MkCo28jVhLMGuKywl+qBUYauP4g4VIA0uGtL5rr\n/d2/Tm2weY91nhU7YSFCiJSP2pCcKbCB9w+AtewzXsu34K9fz9fennjfiDuW\nbt4j5YAQOBkWeqIFpmXHKdwsSR71lfVJ2edOKLQzS5UbOv6T5PVTznZr/06d\nQP/lEpuXqrTT4hWsL+iWnDR4JVSKrdbt9siypr0p1RrFm1f8r+BOn45I85bD\nCSshy1wFiSJTUspYrjWMtSiKLV+MlWO70MKMM7Lbp4A2maRRY8lnp9Dt1off\neYTbWuY6mof44IsU5+5YY44nZBL2KfUvepV/1FhAGxJo0An6OSf6xAFkfOjo\ndSpzwzx8/G5Askyfqaw97kfKuK0SoemBwHJbBJB1zy9f8zRnGjwN1VsJX3B1\nXmeS/u5cnvBBOOo5F20+oP1LU5RvpgTEb3aQUoguU4L21fxFQ0RPNjELeIOC\nmXCI\r\n=O3Re\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"9e9fdf046c869ca6af09e708d932955349eee608","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.1-alpha.18+9e9fdf04","@apollosproject/server-core":"^1.6.1-alpha.18+9e9fdf04"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.6.1-alpha.18+9e9fdf04","@apollosproject/apollo-server-env-mock":"^1.6.1-alpha.18+9e9fdf04"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.1-alpha.18_1603140542804_0.47172457669590373","host":"s3://npm-registry-packages"}},"1.6.1-alpha.19":{"name":"@apollosproject/data-connector-onesignal","version":"1.6.1-alpha.19","_id":"@apollosproject/data-connector-onesignal@1.6.1-alpha.19","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"bed4b2a2d5da8f384598702f628f48f37f0d9f47","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.6.1-alpha.19.tgz","fileCount":8,"integrity":"sha512-owXCpeTtk/ULQAZPftr4wIN+KPDQhCPPnxTCmZzZaadJLwadITwqE6osene9b2DrBTwmj6T9xqsLvRuSpSfhDg==","signatures":[{"sig":"MEUCIQCn/+MuX2yoTeRO7MqlFpqTrWnmlldcio/l761yiEbWigIgYH3Qff0SZL6+rNWpq3Rcd+5aZh7Zq3ICcWVDOMCMsAE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30181,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjxx8CRA9TVsSAnZWagAA6C4QAIp3oDw+EwjXb3rOHrA9\nAURc8bdBO9wLD+rEJxbyigMwhomh92TenGFkEMjA1v3Q2HBTVYA8+q9Mq5mV\n1jChlkTfUkbFgwQz2lAzz2akjNwHnQFs5OJjw2fBtr9HWMmEpoggBtlS4P6n\nwmZAwJOHZ5mfcHQl4012jxPnlZmO20lTFnO1iDnnORM9o28FIa32G/2++0dp\nol8NGhM5oV4h/VlZKHR9+ZyCR7OFv1kqKGJOkEDR7cQnKE0EhLtY3y41e+V2\nTSTYEkncOqMSGlsAy34c5oxspKTjsWWMUR7XgTVw/Ij69EZH5NXoR5o2LD0H\n5Z9/ANDHnlOG5yv7Un6wh2KpmNctXjX5KCOLEiPZ8cep2Tzf3U2ovlJvF2wq\nrG9flEANCf46sdalbc/GfC4TuuFLL2EKUrs2mNodn8T5VK9LDKTgs+q47V37\nVcBijTHG5OGogt3o6kaRtxZSFqudcvQ4uzOq+hWf3Qm+apWKS0Q7TOO5IUZo\njZg8FFs+u2cN1lKsna+1C2mmpZu8d9aRCkyOrtb91UEKyxX7h+j8EaRxPZTS\n7S6/8O6Wb92EfYhSzMMPS+vsxE/xvYGNKyZrDKs6Z6BjMa5UnXkLdJSu4ULa\nGCgRvwJ+SNsk+6/zFfsOCg/9DmR+Ahkrp1jGYjY7fU5xN+6RARGkY6BZejTC\nUYEV\r\n=Sg0t\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"cce584925371dbf7c1de8f04c35dd2c45de61449","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.6.1-alpha.19+cce58492","@apollosproject/server-core":"^1.6.1-alpha.19+cce58492"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.6.1-alpha.19_1603214459547_0.6302157851214356","host":"s3://npm-registry-packages"}},"1.7.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0-beta.1","_id":"@apollosproject/data-connector-onesignal@1.7.0-beta.1","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"dca7ce07230a04f36f77ea9c106c0fb4efafac8d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0-beta.1.tgz","fileCount":8,"integrity":"sha512-h/PbVEAKwSCxMV4gG+zErroQRABVZEIliT/UBaxmzthoBm3A2CcFk9sbg6t5zF5rk0Pgc4nVkNsVe4BiRDyW6g==","signatures":[{"sig":"MEUCIHNvHOH+FeWKuBiR//p6HDOJaXuAeWB6ez7bjYLqxyTrAiEA1CFBZrV/IGaIY6tsWiZkcXeftNrxB6w942VDqCNbl54=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkuSNCRA9TVsSAnZWagAAyzYQAJ92LyIbTq7ZCYVUqbr/\nJPw2tyjMLMOGdix+FAL0P64hheZRQiXD0FDvKLtuVX1wNaTnmjWRU+RQN9MA\nJiWoHc/N521RVp1kE1yqJpF64S7LsHwLYsKlKEh5vVEsnSzgGRUc17RPoz4B\nMNAfSuluSd65lgfrk0DLj4MoV2ZM3HH28sF4vm5UIKOfWvbPW+2sLXx78pWT\nB1SSLI0mZqe3RAHVWojfh9Esyq4HkTvAq19MVHmu0hHN3yUMFQbcNuF5FonJ\nOW6JZ4a3bhuY4t87UDxbMctRXFMf7gQlZNcMNL1xpqBKgtRZoJ49GIUnHAYM\nyFHQy7IarpI7fwa4fFml8WPfBZBlTpq5ASWHULBoPasnXU0cVpJigj7shHGP\nFicawHBCUt9cw2HUH9gCbr9OAP800vH+BogU/T1P0Rpiir0whnsEea2WntFX\nUh7gwPWwo+8lpGA2ssujWD/E8UyMThgq4iVAEXVkhGQrx7aI4RLXlCfolSFj\n9YdW/saHkm6eHOw7G7FCyNUT7GyxP6duaJpemgXQLDgf2qoiUVreFj1ABMJ1\njgR5SWR0+WwKFZhrOt7ZHC0zF0vTe1KpS5E9IE1cDGTDy9cyQh7PsM/2NScm\niyUWiGDwEG70NWCo2aqc8AdrNby7K1Q20vtig1IOMc7jZ5+6iKE4H2yPbDbh\nmc+N\r\n=hq9T\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"5c37bd540d9ee72dfa8d07f90a377a97bd4a6ac6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0-beta.1","@apollosproject/server-core":"^1.7.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0-beta.1_1603462284941_0.23889026609198294","host":"s3://npm-registry-packages"}},"1.7.0-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0-alpha.4","_id":"@apollosproject/data-connector-onesignal@1.7.0-alpha.4","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4f2780a03bee7b785943511fcb4d2ed3afcc3549","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0-alpha.4.tgz","fileCount":8,"integrity":"sha512-9c8L0bXY+XqvOHCQsFOoxOEWVH9kN8WUbZIwBbWVQL4aN2W5oSA8Q2Bc+suUjlah8lqktq2VcceMSYvngOPlaA==","signatures":[{"sig":"MEUCIBGHHqsGoVLQtKVHwHvJQLMkuD0bgwSG1OqX4BOtWq0+AiEAn1VS9LapzOFceE+zRc0zqLleXIc2dwpi0FFw01hxbCo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflyyZCRA9TVsSAnZWagAARvAQAJYHVACd1/W8ddQgKiGs\nODf1G5/bxyOedRk1Ljhh6TNABTH/hkcWhvU268rnB4UXzuUO3FQh4q7BOT5j\nfidApmUS7RqWmT+S6vWf5xLZ/6b1NOBH5YYIU2sq7Wm6reyWMR++gmCBMO9L\n86kMWuw7A61W13c+KMMnPhWx4UTKNokgvfaerO4RMJVxvXOvIbi6Mb0NnJii\nOXE6atdCJcWZqjhHFE937bKqRJstM8AS6zn3hwG01odfjsIscs60ZIW54/cU\nlrTEFyJTrhzEJUC90/JD+zgbn1bzOq89QPQJwK7cSP7huDVGe0ZpXrOw0lv5\nFdpbsQxUGKl06Bpc0Cx4A3EXJ0tekZ3YWNYVVkmDZ6gR73IIX7XIFmIMfgaZ\nv/maXHTPNmdaP1FZ5ili1oJYLubHtbqK6/Hl8CGCRFGUuw9PahuEdNIw5urB\nuvv/2hIgIkoxQmzmF2M8gb3vhS9pc9dnmZ+7zUkpiFgXPErT432QzhQ8yH6e\nYRspwV5jLfkxtzKoktwb04N+4ilOCKj3KkpEj4TNturng2ftEsyvBVjBF8i+\nN9aj9+jSwgkCbPzCMaawnH2dNNYoboreygbshroJIXRb7hwH5IXqn25beIXU\nd2lDlIfv76nOsShq2vD4x2+OkJPChtp2lEQtPEHhMOve3jArBTJqpb56rxwz\nOYP4\r\n=4zGC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"1d9cfd76649c9ab6f05604e6567102c26e7c36c7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0-alpha.4+1d9cfd76","@apollosproject/server-core":"^1.7.0-alpha.4+1d9cfd76"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.1","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0-alpha.4_1603742872856_0.7948111750352256","host":"s3://npm-registry-packages"}},"1.7.0-beta.2":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0-beta.2","_id":"@apollosproject/data-connector-onesignal@1.7.0-beta.2","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ac5235e76a13745bf87b31d0a6b95caceb2ad224","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0-beta.2.tgz","fileCount":8,"integrity":"sha512-TerAgqox3tG5yv5iD1RY+PshUmvrdUtXJlK4dB1HFJlB8DptQPivX1l1W3oKci5Jr0nz7HztGLw92+x++ubXjw==","signatures":[{"sig":"MEUCICeLt/pc9V/ijd7hgZj1OJwhnXnQMR6jv2BuP78YLNtnAiEAprizfBE30AU509Ov1+dqom67MUJzyMaRINUf3SqYiC0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30554,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmCK5CRA9TVsSAnZWagAA8hQP/3CuN9Zysh610awX62Ix\nY/QyELVnU1aSXVdllu5YpIdImcpCjA7zsuxqN3j2IEbvvkdyXy48GpESaMC9\nmxjB9PyZihIcUAMRONjSE8+oY7ebIazMuk4Ut9MZiUjjMPXnOjXCsWDGVI09\nC/XxVIfu248CZWvSBAFzcO2QQUbhdEMZNh02sAxbEpXLBt8FK1NMV1V7OJ/J\nSi8Pe43SD9suURWiJX2g1WADNE3PU3K6uQDuQKrl4NFsoDJFnpmf8vvMYfxp\nQlUf215p7ajn5I9dBW2scaHh4S7UZRwknhuDpwD28bQTcd8D/WS6E3eNINN8\n/DWH+Tn4/3Z27lXz1Vun0RXkc+Frao4O3uH03MH+XD7DW84rNdWYKeisSw6t\n7iMTYLbVU7/CStCGa+WUjoOk3jdKygvdRYSb86/3SgO21E9v/T0fv73FZeVh\n1dUz+JJO62SfL7HNgqttmxGuFburcN6970X5iprVzJdUghb9M2b2WCh4rP+V\nj6DAVDK5PVL1DnpHkOH6U2NTFQPi8gN6NVP+aiKl+l4lyfiqyvaRWJFAhupP\nqfHEcRkn3z7l9nNsc/ID4qaT2DkqWSh408B1vraFewOQ+sOZMyEgSW/gQa5e\nMhmrq5160PUj6bmF3guZKHoF0sw1cZHiebqko3SyaGm6D5PBWQf4l8OL++E2\nc2FX\r\n=SLNk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a05cbecc245689cfd35b48e3ee777a605ac5c03e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0-beta.2","@apollosproject/server-core":"^1.7.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.2","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0-beta.2_1603805881300_0.9550243370524119","host":"s3://npm-registry-packages"}},"2.0.0-alpha.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.2","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.2","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eb90732974b042b9eee8d7bf8d0646014c7a798c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.2.tgz","fileCount":8,"integrity":"sha512-+9CXuESYv6WtAU7PXbNU4/vC0pv1HFC65Y24BQjcbApXtky/7hebLN0+S1jCNssiy7h9g/mKCNHo7iHEB5zqiw==","signatures":[{"sig":"MEUCIDY/pdgrjn/ILNivubnJLM7UBFVa6k9mGg36TyXjmGI5AiEA+eUVVwvP+3Z817EhPGeud/zZ34l4fqblQrmG4LS29qI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30604,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmX8ICRA9TVsSAnZWagAA/VEQAJyHzpMGcvgifW8mnQmY\nuIVeRr+tmOI068I3RJ1ZBi+rHikdl6S4Yxw+tDIA5byH5/e/TXOmioeKCZV5\ntGCxFRyAvapt4B3oCIqXZMFgsaAqze6brexn6A1HFT/AC5q2cgZzM5j9iu3g\nhqgnYU5Q1DimSKxNf9YUYYPEoaUK0Z3CcbNmkqTgPR9qKndIiJFJA17A9jWe\nkyCIbQKHFfCL1OZ1I29iq0Dlx4ZupOJGtCiHWyvMLnH5IeRQR+8syF1kXmne\nXRQOgUyI8t7/LybwbB+P0lVoE1QEUdiPKOHHQVB/IemP6bnKsWTle+ASXVdc\nE1+ya2frIwwCz8+dBEyox4yC9Xq2/AhjEM/JAalUhszX5/VbGCV0e4L+DUi3\nOrL3hUiDwn2pcNn2jwGLRzQ5jSATlmVEuCYCqY21MP3t+BSYyeKzszlCRK2R\naK0TO6ANRE4KEHC04hLq1pCDUHd0ag7JP77iy37fBKAxWJj0G1f1VoiqhNwi\nweQwAAwz7sbzPCPztUvOZn9M9/IJM+hrwQDj7XNuDcc8y4kon1cD1DptGpA6\nG5Yq4LTk16z2T/bqp4b7TAPdxBBYUDcCHL+N21F2IuSw6wUjQuVM1kaKnSb0\nmydiua+vzNs6RoKojJZZPNRS0VI0ai5InLN5z5iK717IMaVdHwixeyXGL7bj\nfbS/\r\n=Rdth\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a2054794aba47031f8f4082d064b9125fdc91dfc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.2+a2054794","@apollosproject/server-core":"^2.0.0-alpha.2+a2054794"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.2+a2054794","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.2+a2054794"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.2_1603895047973_0.21294322465253046","host":"s3://npm-registry-packages"}},"2.0.0-alpha.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.3","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.3","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ee1cd8b42adb72b3d61b97217dfd16587b517e96","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.3.tgz","fileCount":8,"integrity":"sha512-rduuqnWDRrEcdC89zUq22cphARHiQ1hIIOfe2JZCx0u2X0rcH9JKV/ebmCc9GwHixs5laxPrV7RMGE9WcHvV+w==","signatures":[{"sig":"MEUCIQCc5sUpMATJXTwyEGBagaFk8H9aHqheJk3dtz+qR3hvdQIgaUsls72i5iWo96589VODbnKJPXQzkYfmNyvYV7IuZDE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpVLECRA9TVsSAnZWagAAFVYP/0Uc4r08hVUAv4e9aVEU\nx0bWu+CVITDyjuAEVHkg/6AIxMSH6//VwYKlM9AUKbSnJgMXwBiJms23QxM/\nbvzvH5yP1GaYaJlY+ov5/I/mHDYruEf79zkM0uFH08UagsboVAME8eDXQIkN\n2pDrge9rrF829huvwklBjGjimOWjd7u8MCSwOJMQnAwKNaMA2h47o2U7DkiO\ne/AUXKxGlRkiGVyyegJLBZ9CIZmvDi4sCFMNG7sOm7Qm8JYwS6WSUt6dZtjS\nrKFKDdN8dZp7QLasy2DFCt9sV9iJp+GnqQ/FOIqhGThoj9krsbP5jIiZEOyr\nnaIt2gxCrAhzfVTihN7i1Nc3SQvovqghHVjIVU8fn9ijihe/i/Zc+pENdVq6\nu+4XzkvXDQ1KGm/wE6DxNQKCjIQwrKRNoIydIQQGUrk7ki4AgWq24BYniju8\nwhuD8aDYkSvo5T/Yq4FU/oLIuDNpwsCv+lx2VCWNgiEvqTPlPOyxhrQ7WfN9\n1N/xpydbjqrvK4v95fktX4fTssiWSpkB35qUrGm+VP0BkijhkZSEGG/AewCV\nYawPUKSRcgLMIE4xVsoCyRwxGhsxrc2GKZFRVYj2Z1rBxDMA4OyvkXfmMC7L\nu+q3r/cOM+aGJz1LdOULXLMFHAV+hJBke7VzZ2XwuEWgEwT0RfJ679nlHUDS\nIC6n\r\n=K7Nn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"619a134c2b59d1b2224637bc63cbae5cf9b87033","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.3+619a134c","@apollosproject/server-core":"^2.0.0-alpha.3+619a134c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.3+619a134c","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.3+619a134c"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.3_1604670148450_0.7851642443080566","host":"s3://npm-registry-packages"}},"1.7.0-beta.3":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0-beta.3","_id":"@apollosproject/data-connector-onesignal@1.7.0-beta.3","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"28216008231c14b9b1ed2cc315dbaabf91c8fa77","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0-beta.3.tgz","fileCount":8,"integrity":"sha512-7uxH3OeLI3SMPiDFmAHiUI0WyDOUutAcd3ILBKhOimTfovcaIRUAQq0L4scf6VH6ViCQhIxtaItPj77Clila8Q==","signatures":[{"sig":"MEUCICVhNy8cReIIrNY+4RBWVjG9HqNG4zviph+D7/K8+v2hAiEAm3i6vw8gFhkU1mHSaYq7EIPXpykoQ/rltdAcrFCLtJA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqUlFCRA9TVsSAnZWagAA0lUP/jE/wgDWLVkJuR2Ag+1B\nHueY6yqL9iTbukc2HmNPjFQfe2QHu6njQwgLAl8VNKbLFQ08gQRUtLiNclHt\nVTggmYWHLbLqNvG6HKhHEeKWU9hMvb8RiuDJY33AUb/UCUlqg0s8vYUatBVF\nrf/RkP+KFXLej90F/UPVGZ6Xe2pfeAhHv3+VVuy7L9A4uA5frHP2vyRHjO5q\nnP6GfK0H7wLnBC1BCp93eDtwv9ZrbfWoGAwOLWKB94o44tja2Ru99THrnZWJ\nBveX0SxiPWN+pGuYqACvIoWX80LI+YgDvC9wX7V6bLlsbxHSNTXdu6og5qCm\npzX5PQEJZ3i4Me6d1CdhP3XZPytTSnNnSHIPoM6vwGuW/BXbkIDRoaoYT3EH\n7Q7JfbLa+dqqlfOjfdSlEfYB9A1ub8lRtaBA0Ej4S4sScib47ttKC4AmpJj2\nxCWamRiiEo7I3Dcunzarb/hDtOEy8c27rd/HSag38BEEzxGet/B1x5IPSBwg\nKXuvKsKFzwNj2aSHuZEUjpSixiP/uWi/REvsgKOFRAV5qAbbcExuSvbkt+ot\nQ6voV8lNNtRYC1PPNWmCUAWe7f6EE4AilAqzqXzS/oiNknNjlwo8mpVCxsXM\necU0v4hdWwxIhnxUB9tz1Pha/ej4eYdmfwQj17AoM0il1JUFvpK9gt3lwbbZ\n31C3\r\n=UOJc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"59eec95a59056f8a05b6595c8e0364ed1c134302","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0-beta.3","@apollosproject/server-core":"^1.7.0-beta.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0-beta.3_1604929861563_0.34634380144669175","host":"s3://npm-registry-packages"}},"1.7.0-alpha.1":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0-alpha.1","_id":"@apollosproject/data-connector-onesignal@1.7.0-alpha.1","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"985f42a9d5894dbe6ca0e563edfcefc7fc3f0f72","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0-alpha.1.tgz","fileCount":8,"integrity":"sha512-n/pgYbvoIXUCVDHIwlJGO0qYAdCRpvVf5TCxS676o6jKKKba8LDDo/CJHUNETp4zJ/Z1GoMUZHfbPfpmRS6iTQ==","signatures":[{"sig":"MEYCIQDJmPeqiEFdeCUhgOvBKcTzExXkyD7jhK3KOn1ajuDNewIhALYtKE/0jBIWymEFjXvy97M1An1BDD6245jwBOS/p3lz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30777,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfstRbCRA9TVsSAnZWagAA5UgQAIheAKplqymdnYUJWgl/\nubZk50R87s5ieEk92uKUzU7yVv92MOXSVAeBVHZ+tj/9yvywRIpPDQ0Zm39v\nWpPGZr8wAAdWCqbzzNAGdwyK2E/d4wuB7oXS09tbYX8WpvmgLp/SpPrm7vaU\nLEaaewjCQUJ897T6BDR6EW67OSaKfRIAMKNYRpY6V3eUj92DO2vfLN+0XxGL\nVJfcXGzJdez3D0xIONVEFywqmBd3V8GQtZpYfJCVZ459x6wxLv5q+2z4TlsM\nXxKtTed7mxQcpnr9XemDwyudyCBoFsp0jejOHZ0oVP0vWbWa8uuzvjUmwPIR\nQGuLQxciMP4dp507Nom9jXj0gJ+YiIGmdqCyfFKFYIBsR3qUpTjHLC018FxV\nhBVFd7moaowQdX3BmANyaj1Y82UJwJahplU5vUHkH4pY6dIBHaAnCP8mRsdD\npKO/owDNfvd5xF0I7RodQTfVQpLBty95YqnQUyKG2o4iTLls/21iJBCYPpCr\naRxw98D7If0aLYhqLOofUMt/2ADyv/7YKkM3qekstu37YcVQ4LvXI1Ag/aHb\nrArKnL1V3NUYmRLhACmO3Hqf0M0nqbiWHloMz7Fjop9YzMEY+hmwvwPgJicE\ndah1VmI63R2y9SIg6tPF1T17SnQOFu/zholMOktU3vCuoXB7RIb+lX1h28ul\nmSjX\r\n=jHpq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"7dee94f64ff5fa594dea9ae3356d7f326c0ac94b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0-beta.3","@apollosproject/server-core":"^1.7.0-alpha.1+7dee94f6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0-beta.3","@apollosproject/apollo-server-env-mock":"^1.7.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0-alpha.1_1605555290643_0.21135359187025915","host":"s3://npm-registry-packages"}},"1.7.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.0","_id":"@apollosproject/data-connector-onesignal@1.7.0","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"912ef1358bf6636472f4ce0354a5bc08ae9165b9","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.0.tgz","fileCount":8,"integrity":"sha512-W+B/2NzYKLdS9xJ0udzcZAE3vrx2uZWh6ZRmG/Dc87lbiLtHwjlxfzyjb0gaGOlWf5MXYBsRGBYrXK0GbMNmFg==","signatures":[{"sig":"MEUCIDl1yegm/RqwXT3na6YGDAdKRmDbGpbkyZvyBqX4u8d2AiEAmP5cMrX/XwEk57gvsrvPREBblnYPqnffJlgLJA5SkBY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftXpiCRA9TVsSAnZWagAACYMP/i/neAUuIuEmHvd0YKb6\n31423eqDKZOGmTvJ2hzKo9jqK1J4cxPd90ywsTyHbBug5eGzV53qJblUatuE\nwgAyA1qy8Lt/sP6oryVhwnI/JTWQnk55rVe7xkKEnr39+LF2KLMCHFJVMpPS\n2XoAz5J0zWobvVeEhuZ6vHaiU67rOfCezepFTfBgplWLe4x9MjtSwpWohYxf\nVf+YYZUmduyyiMD4ETpPD6v13e+eQThrvllfc5mNpKUnG+J3FMqa5gDiMb8e\nGIZBQdxewK8vF7tc2rXK432igmT/RzCaVzou5Rcjhs6BotdGdyvmBg9Lf6b0\nz0uLegONhSq/9v2DbmEo3HUUNJMLNIXmQ3UycR1MYzW1EOED+cCgyXQ7DoUK\nJSdImlAmsRjUTTDAzKoecaWRNOaOQJatR0xb7/+FeAbB+aPyuOtaWEIMiiRx\nT4CApE7wu4hRCc9khFNkb9D8xyGVYmVUKrwb8VFZpEVq1feLdvDXVLCI7wr0\nBMoRYSpO2FouUwSRajGhMYFaBkrdaZ5dYp2Za4Pqzh//qMb6OIj6pOmFnCY+\n7nKXtSDruJdiRbDT1zg9aaN6qRYoxUU9hRqEmkDFIPV3x3idCc/jh+UZV44D\nVreEuDh6i3X/JMTuQos67MjaHxraBojiJfIj34k3glGGU7c4q3rbfO3ndepv\nqKLU\r\n=Jgvr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"24048b50f87b3885da72032dfba510fe53c1841e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v15.2.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"15.2.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.0","@apollosproject/server-core":"^1.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0","@apollosproject/apollo-server-env-mock":"^1.7.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.0_1605728865437_0.5402576656361033","host":"s3://npm-registry-packages"}},"2.0.0-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.4","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.4","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9cd27102d8769a72455defcbb15820818e4c3207","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.4.tgz","fileCount":8,"integrity":"sha512-rFKgMYIuoKRu/rDra+StHYOHz2Gmfxyt9Ko2IvZItONy43/jEJIOY7LARQUvNFCygPWKIaqLpfW3JLoHqfku7w==","signatures":[{"sig":"MEYCIQCotZ6zaJ+WwDsICodfCpFi5Ao2deOtHmVBx3dEZAnJcgIhAN7d3Qm9puC1bora5wRYk/3ScU8pyzby42qBO5gLMemJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfu++LCRA9TVsSAnZWagAAz9gP/jRQnh+QRgz4mu0VN2JC\nicKH2AxgDXQSfiO2AgX5GL2QvhgymnNAwG16JGb4QSZQHii+vwLTZ/xZ6Rzn\n6pfbclhp5+rGTspMmA4e+NoHdwV5btBrw332xeaVt6gjOZrpyB+VuMAnh4md\nFRuGfMU8bhyYNI4BKN7J90bY7MdEfPn8ScBkU5PO7GK0iNnPlOjtvGfahOtR\nHeac7AKID0BZsYnLK+mQT2+D1S1kL5TVHpO75nLdx5oLnyoNzFLiJ95QOm6C\nq9JWbf2A0Bk6QPlBsQLdeKmeZwDJ8zf2w0/gEUx6S7VsESfFf7cwq+gx94yS\nrG8msViHH8NA3L3b/ew0TjOcXogyZXJ9YP6KKgBJ6lpNJhPFCNdqDpaHhY9w\neXSsJSM0pfJh48N9pl84OHF79ff17fhUNDniOAC4Db4TXcMASZaFuScpy4Zj\nP6vCG6ymbv01Z5QNcGVvlRANeVEC1Zwhcx8Cx3bSzlNiAbp7lIPR78YP64xM\nDfYKJXDslVWkD0gZ0YHMKD7ZBAltdHtTKBVDdMwJnhdzb4UdyM3cSGNciTk4\nACEsLpT/LrD96G1PNNJ4XsxF4I1BMks/v98Juh/WRfmnB8VLo2uw3MDeTh4x\ndo9e/uL3uk5Gy/tZUJWGWr840XRwSnpxHv6KBltBOOxf6SbZPnEVDvEytkf9\nyMqX\r\n=iWCZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"754f09de69a5bbcf70ff5da79b95084d777f1873","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.4+754f09de","@apollosproject/server-core":"^2.0.0-alpha.4+754f09de"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.4+754f09de","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.4+754f09de"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.4_1606152074702_0.40452914514085747","host":"s3://npm-registry-packages"}},"2.0.0-alpha.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.5","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.5","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b5a721447ea10c5a72722c60ce3e9f84036e78f6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.5.tgz","fileCount":8,"integrity":"sha512-WVxTFgxiKRS9McdEKtoiPOMhauuYZCDK9qH0Ldw+tF5UbbGaGYSN7Tp7wXdO4tgTY3stzoGyEA97/m34MDENkw==","signatures":[{"sig":"MEMCHwnQfek3NlSWZ1Y6LcnOBZ4V4ozkaPt28mb2gbx0OzcCIFkvdqSZBNfBPlYCrrw0zcKiRxLtiZpz6bJ7g0VcVImd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvA53CRA9TVsSAnZWagAAGYYP/Axyp5C4oa+6G1EJaYqQ\nhwa2od0zdsNR2pDv/jwzf1s2I7nx//MCci+XRZX8+zpDu4tA91efxO9f8H1w\nyQH2hj8YkWbDleOgZsMxY+qpxSIoUJV6IHA+lbKac/pu5ECduUExHiWSC074\nEk7MtY0TRefTyMIcL8knKy4mMybF0E6ce0c8QM9KUy5Kvk/3z9R4pe9lwRZN\n/ZHBhoUIGTBKU4Tz+4RUCWSkntqweK/k3q/L52f+Q7n3dJlmR+zkDOXuUf/I\n9Dmqmj3vXvor+FhHz8xWv7jhcfzn8zi20tIiBq2Bm6Blnrm/Xe8ed50GyRH1\nUS+8KOqzYAFcw0zsAkyj54HTFM8fZWsAdyY4HsF2MSovMb+gOdj0bmfhr6Gs\nIeAcSLJWsA+fA+va19fQpqoe0Z5IKc0lfOK7tL+VrGdh1KiSTrwshRtu73Jo\nNzJNd7BsNnX23QZ5cfvVaL9wp2lOxMUQHnmyayec+Xy/VPnMZpu6wexn/Dbe\n7eVFx5eVh701yiUe1qlA6HpznII6U/LpC44edtQ5j//sRdoiWcEeV0Jsh05P\n9q1NV19g3DQVD2uYqQq68boEtrtwsXr4S3YEtKIhC2G2gY32kws+RBGB/Yse\nHpj5d6e1ApkvGRm0Jh2b3YA5P5hOcolsUGyirCJnK95/q8jJQitpJAYh+fa2\n1XfB\r\n=v3L2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"151217215ba71cd4e4dc1a9e3b266d22a64608fd","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.5+15121721","@apollosproject/server-core":"^2.0.0-alpha.5+15121721"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.5+15121721","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.5+15121721"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.5_1606159991339_0.025804952251119673","host":"s3://npm-registry-packages"}},"2.0.0-alpha.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.6","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.6","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a7cc73285bf91a4a511356bbfad943ba2e99ac91","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.6.tgz","fileCount":8,"integrity":"sha512-EPq9sH4kfFUtoX0SjmoQGYXa7n3sW5YvLuel26RwC73zeoZYq2YSgUPBQPlduNtTAKyqyLxUZMftUhzdYwyxQg==","signatures":[{"sig":"MEUCICVd+ZqtVVLahj2/iwLSbdna21jJHx/uc5kQlneNMeD5AiEAw7kh5GZ2xw8c5aiBFhU4qw/Vsy4MFtOuReYbxhs+RO8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvoGhCRA9TVsSAnZWagAA6RgP/2WxhqdNERv0WlXd9wEh\nNkRmK9veDnfY2hyL6ooXtupMSgSX8D4nWEJAUEF94NS+gQKi/NXVV27dgC+Q\noJ6KJO0ujHAY3lkr2mcB+6YXEjsHoeAsFFhrdnDbvQKlsSESTE9K9wM/sRMy\nEgBMeTwQwgjvOCydRXMq0OHhM4iJXkk18pCKHUVKCOLvFHTM7jhvdh1LGzoX\nay8zUCHt60okCb6bMini8OX2k5Ed8OX0+FnFb6CTmDGQ7T8PwBIFkULh/GVq\nHppRQSwHPT4WueInwN5BbGWFntfqXYwEWrqLnixmdZcybKVzCp5Vvcq221Tq\nOQ/SCZ+thKWtbympF3aCzrYZdLpGrE6eaDImcR8iv9F6CIvGIzdpIdlYfUof\ns1elTGAZqVr0u2wK2YbzRYHDv2qeA1c8mywL+EtfZxkYPAjqt9E5qOiyhz02\nl+y+oFgSjp8W2aHm4+SsA1Wnn/2SG2GR9bXqgvW06/jZRQjm6THUScrHr25M\nSQDYmNmEC+Y6xL4QsImlbTo/M5SA3ZbhEtGJwFebO4p8rUv5zhtUbYJi5U0e\nay30Y+RdG2YEKhoDla9pdnlD0M+67piwbl1KPWL0THKFKaKa6BsDyoIgGl9r\narSgLR2y0C4Q6szqaWIyLJhwdCsSQDaTvHLuEXk21mupXmYDMGAmgiiUfTub\nMKBD\r\n=Gj21\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"e2230b144e1afdf856c5316339a89fc59ce149db","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.6+e2230b14","@apollosproject/server-core":"^2.0.0-alpha.6+e2230b14"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.6+e2230b14","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.6+e2230b14"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.6_1606320545090_0.8733030737550687","host":"s3://npm-registry-packages"}},"2.0.0-alpha.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.7","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.7","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2b7c07f393e56c0ded410d63fae26376decba58a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.7.tgz","fileCount":8,"integrity":"sha512-jvcj3Z68/br3pVyYvqoS5Jb/C1f8ik/dLf1zNUcsiz5PyEusr286evHp15pV6djbDPSCfJapR8fIr2AL5Xg1ZQ==","signatures":[{"sig":"MEYCIQCXNqz9BsGPUrzixGsbEDnWhFWurzy+PHzrve9GuPCOgQIhAOLOFNp7NJ+AosPe8vEM5jwoGtOGNc0OsONCYNX1M1C8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvrL/CRA9TVsSAnZWagAA7yoQAJ4NT4CjWftSfOUL8tO2\nXtK753ymsB7l9Qc2X9SyNoDp7y+4vfz3c4vQoj+F819iKFYsz7t2OZLJGgN7\nf1XE+lZPmzko++gAmbHwKGefsNKwpfMRlzd8uBv7jIEsvQw/RKLMC0OwKR/w\nj8RBQqhTlHs4qEz+OlerFUXRdPoJtrV0gC02XdN/ktlufExv56F+7hR6FQge\nBzjdAf617XkFMznzGBJrG0zAg5KHn+S3DPa7UwEJ55arXbQv/yPY7GeFi0Wf\nRnss/FC+B7Ml/1qgg3aTf2+UDpVcV0oSPnRS81OJqM1fc38ZX1iTK3q9L0G/\nxe7hd0BnYFgCsLyXvxAFsiTlQV2wtZF0hkq3eCaf495/Xfk+xd/rM8NRH4WN\nUhFZpCxI1KGZJZe3qVZQEzsK7+4GDu5r9cZGM1lbIY4GI6uGa4T2aQr8tm3v\nYh5L6idmYhVyu8meGleU5UKg9c16iucdkgXOFTGv7eokt2MgkIc+brEv7h4+\nGxLDM/SFsK2NYQCteWTi1qSExoGrumGuB2jEI63Jfai+QrHa8cihGsDgYwhn\n7npbWB22qY9pdxf7xGAvoz9R0ondWrRX45KIGyO/Q71HLtTADO69vsEZm0mc\neyxb5QGZh5uPgXmEM+dmX5xBgfGB4g4vCXSQBM9jQGsKnuYenDQYxQ+BgqFB\nquMF\r\n=CJQ/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"d1769264b9b855618e57fa0e758a186ee301c6c8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.7+d1769264","@apollosproject/server-core":"^2.0.0-alpha.7+d1769264"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.7+d1769264","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.7+d1769264"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.7_1606333182648_0.6583926626216188","host":"s3://npm-registry-packages"}},"2.0.0-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.8","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.8","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d6f82c8868fcc6d2c5fa0338aa4b5405e95a3301","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.8.tgz","fileCount":8,"integrity":"sha512-6XP/ejs8eqh2UU36qaUL2f/+FEZc8/zaeiSDJMj9UOlSx3iXziwjPvZQNED7TMEA2A7oOYR2Po0E0M8xNCnRVw==","signatures":[{"sig":"MEQCIGZEgG+LkWd7av3U6/xaq8SeSg5B3cwGZQWvZwi9ma4AAiB8ruZJbs+I7Vbw1wGlCtKDsSiGjEnoPF9MyXW571/i/Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvrM3CRA9TVsSAnZWagAAZjwP/jzoKzNNZqXLLOL8oWdg\nG4Ak9HMSzEhNGUiVYlLJTV276UJY4TkjnVPULknENxuYFNVJzmHJFDSKReMB\nws6vf6TyfuALx0PbDA5DkLmrZVxU0bSMGwtS8cC3Ak3HaMXNokXG7BHsU6mz\nXqKYcUtxwrozfpUvo6ej0vSlJjqDBoCqEdahQxeilVlJrJsAZ5XLdPy+SmpB\nxsd4zKnTVDW5E8IWB1rrshapPniHuVNJP5kJv1pFkuC4slkNYstIKhbv4OO1\nGYDOtTb2SVbdEFZxOwOUZsMAq5p9Mn/sR0V2/HlPii5DL+02Kjquf6XMbjxZ\nzvrRdnBJMeGw2fN2w0/ks37wS9PQWY3syPV2QDjqORAJP2XEOVwBRbyvZsfg\n3rG7oso6+zT2gmeWJjy4kDXlXeH8VciA1EqzIDjI8vpfUGHnX6z07Pfhrb5R\nqNmN4LNZpMp8HctnIlMXfAYegPy4xib2IxhNRPD/o5KfDKYzUvUG8EbmqHGB\n++XOVKHR2FWSGrQfeBBixeaR1tI2kz9PCcNhBU9jXD3UrmngMUpUbh2OoefQ\nvNPGJpzVOlY+Wu9NdbKcdUGFrsHKWjwZuZeENQA8F3KW6OvwNtD9pGgCOxmZ\nJREf8Iq84xYF3p72SzWRJgMcoApnTB+HE6bsg9YAIxNtOtumoURbfkYWh9K4\ncjFX\r\n=ZaDt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"fc8cf3d31135550be0a60a9aa54e4fc1f799131c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.8+fc8cf3d3","@apollosproject/server-core":"^2.0.0-alpha.8+fc8cf3d3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.8+fc8cf3d3","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.8+fc8cf3d3"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.8_1606333238552_0.44843677610752675","host":"s3://npm-registry-packages"}},"2.0.0-alpha.9":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.9","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.9","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"169b59e61eb983349e28544e32341e42120d7082","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.9.tgz","fileCount":8,"integrity":"sha512-RdYN74jiT/tUWMHfjk08/80f2T0a2tayXCQk3J+Arrj8sSqMe8LXWLB7GjUdIhBKI6F11iEBym2cSN6/x87rgA==","signatures":[{"sig":"MEQCIAbVCXqeBvvbfRb9N4rL2HpsUSAH+LDWBzHLN1BGhaNoAiB1dK+pYzbS5X/GZwy9anpq9vqKeNUKMLGn73X6hvhTHw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxUKFCRA9TVsSAnZWagAAtxgQAJ/rT75j/75uY45prq6K\nqDA4tLFBF6cUh1f0Su/TFNjsiOnIH+SiUnj48m9jJ0N0Q/PRcTatHQmb0fk6\nN1XAfzY1FM0ISDH6MazQDzcKG+5tWktgMiYzlKnDyGEPSqvIWuNHAZQObz2o\nU0OS489eI0y2gz4/ezEJnYFuL1e8FjNBTl4Dr5wztR3+KWz093a50IEewy/w\nH8GHLz8ZpR/xjNWeZl5tEI52thPOnTTHjt6ExeWJ51e4ZmAEg9E8dMMNM9WG\nXrAmX+lTmkGBtEZIU9LuIAUfPZGCcQx2LyQvWQLZ48+6mqu4v0csTk6CdrTQ\nvFUSAHkS94hx+nPIHWtDWpW4lXsPK7Yzht7pjP0358RD0k9EBtQ/Ej50rpgn\n0BpC9sdqa+4J0dAEbrH1a4wSQoPtH5p5s0mTanc5XKdPRs1c1nt0P3UyYzs/\nsqT9TCvRc+cuP7R7KQjtSRga97uG4joN1YmS7rPv68V5+IYbhkon7OWs7VcU\nM1eRu6jIP1ortr/0iZezeHiKqpuGuI+sV1ZtwjJa2UaxlNjLAAvwCFcbRmX7\nSMuJiI7NrFqywSRbBH7m/60hJ49PzcWvcK4XLtgvQ5MuAaLTdvwxFhog2Z58\nhYQ3ylTXoMzRlOYhC3LYzMXxv7WvHMkxmIif3uPaJnBg6Zl9D+C+QS0K8X8q\nc4RE\r\n=1H6U\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"59aaa97010164e06f39abac2e86129b6749bbee9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.9+59aaa970","@apollosproject/server-core":"^2.0.0-alpha.9+59aaa970"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.9+59aaa970","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.9+59aaa970"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.9_1606763141334_0.8944611966312694","host":"s3://npm-registry-packages"}},"2.0.0-alpha.10":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.10","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.10","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2f851c307386cd9a22ae8bb3d55559abc811a69c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.10.tgz","fileCount":8,"integrity":"sha512-XT4Zegw5/CHDUlmxUqjT/paBw2iiNtX2t2Qc/P5PGGQgeXd+afRgmaRsOmN3Yf1WfKh+uTGC1HYUs/N3IgHnHw==","signatures":[{"sig":"MEUCIBFUYH5kAmSVIL2Ya5TjC5bhlHTV/VMbXjAR5vVtnJrqAiEAsaO83pm+yVpac0LJM81uiC0pZd6wdLZD7TM2ez8H+Wo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfxVTJCRA9TVsSAnZWagAArm8QAIetg5nBqxV/q3rCPetg\n86aNPVmXL5yJ1p/20yncHoW6SgFuOGE1PETqLIHfBHP4H65ev47kLccp4PNT\nKsCwyxEFTEa5Y0c2nQNAIIiRHpv48kDnA1qKrV0ZheMWHnA70c/KoFZdLAbi\nemcEF3O7srMnkNEZ+zHoDbhpFh9iKr90IzAZwuhKmwY2wLILxWSe4pVFwSY7\nDiVIzR+PXYeS6PW5XkCaQLLVnh4XygXR+xxnvVefUkiGmQ/eWQaypiTitX5Q\nOL3b3t7dFRBq/8+GRXYP0kaG2mwXs3Hu6TxzoUXKSybVSoFkMKkhtz2wOc0v\nYb9qemjsYv4pT771eMyfL1MCj+v32QBUDjtlyg/UO+l3mwe7UVt/2jXd6kPe\nDgrudEXLq1sK/Ob4kG5ODC5FEdS/ufNoxPF81ETceEeXXokLsm+ME6h3KXJ6\n0YVc/avrFThXcEGZyI27QGlX4jVH9eSug39IlDgIwHWgY/B735XCtbfEWBHK\nt7USILY7tnLkb4inyhCwcpTApUTV9JSUqeUALCDs5R1/fiBRdrfets8mIr0f\nRpjv7K0by1VXjOV+4KWh5w9d8bACsxcQZcd2cfLywcQPytEYadoOEE6Q/6gU\nvsbpaHeNKNJyWxo3E5vocrn4LR5XAJL3ygpSrp9UzjnlqdYGtwpq5jR5exRp\nfI6O\r\n=sKBc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"5da6f1620e8116fa937326835df11a8eadb914df","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.10+5da6f162","@apollosproject/server-core":"^2.0.0-alpha.10+5da6f162"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.10+5da6f162","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.10+5da6f162"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.10_1606767811500_0.0035693834142465075","host":"s3://npm-registry-packages"}},"2.0.0-alpha.11":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.11","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.11","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"73ccc9807a340cdd58a0547f4be6465e150d75c5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.11.tgz","fileCount":8,"integrity":"sha512-cnfC7fmozgq1lUKR0/5rPudI9/Iw22AZIqvWlwBsi+Ha4QjmY6cyRGQjDlYSyvHOxYtGLyxp+QFNaGn58K7B5w==","signatures":[{"sig":"MEQCICgMpzgIDixZUOyYLydOIes8CP1+gYvARfVTalW4rrIuAiA/EeUMrBZJQPrftTiVgjBKhA2DUq6/A2r6gkH2HyzSZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfz5t/CRA9TVsSAnZWagAAcR4P+QFo57Z/ZjFpn1YKZsLI\nHc9VCzQuaf38Dq/iGm+Wy/9zTVEUaH/Wod/gJGfysH/voJNGV/Eyh5yrdzBB\nP4McS4geyciaKUosn7E6WqVlk/SbEmXtuflWVmDIviKD1U7Iyx55S4c7J2Tk\ne99Ay5LVY3m7LEG98wGm6l7yWgbr81VvWubkRaGJ931zHkc3c1VbX9X4VVFM\nXZNAzR0TolR9si3VVWy89EX4qb6TxsQt+1qBwguPGkL6oir1TivwYmkXjQ0J\ntn/aR2oltwl00ZE9BzejfGSLTF3nX+OJHYmV7bet2pbXcDy5dJXM2aaW0aLH\nhQmDj+VFBKTTagbiT/JJvoaG6JhdZm8Qr1ziFrMw4i17h1Yb427wWOZaw9ZP\nC/boNQT8Z9/059dV1jN/vpd0igTEskei6YfMlVEMyTZTp+2+k5fFcOmY76xR\nds8F7gn0W26yDwf1lQ9XJpNGYRjiWo1+UoSjyuOyM7eO7KYz/1unqleaSaJe\neUBrbjjITu3BAbhMJ/AyEzxzKOX2dRxaZsJXg65BNZKVR2Kz4nVTkly5DIq4\nNaMD7mAOKtrTngYI1C2mjQTYMhv+J82jWi5yn6PGwioyqpw5NlcyKfIVUZ5Q\nRVcr4hfgDXUX4BQnXkmVurDdNJNLqC7KzCRVD7LpSr2P5VKK1Ywk1KDnbiCb\nBUR+\r\n=naEP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"84203963737ad269c997fcb05529d23cd1d9ee4a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.11+84203963","@apollosproject/server-core":"^2.0.0-alpha.11+84203963"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.11+84203963","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.11+84203963"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.11_1607441279176_0.5364590447705126","host":"s3://npm-registry-packages"}},"2.0.0-alpha.12":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.12","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.12","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"75e874bd2f96ee327e06965a8c814e9f9b6bd435","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.12.tgz","fileCount":8,"integrity":"sha512-nbmGLoWPrv22pDyeLyjTbcw6UyiEI6J4W2f3KiOqAOCr1L20tdlzu+JLktWtvn+UTjNUpd8tc2oRYhws80zNUw==","signatures":[{"sig":"MEQCIFYjXj60z8X6IT1asbPPc0ixXUZkb+iJqc/DZqq13bo+AiAA6Czcsk5jQGq+lJCfR3TN8CO1JitKgUBnljKS9iiUeQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0NUYCRA9TVsSAnZWagAAlCUP/1ep3R2r3o9beM2kGjT5\n8wcT+oC6k+WdWovUfN/ElruEz92XlMq9cdcUoi0qSBvi6gj7Ww7FsJDEPHWG\nYFcASmMEO8vn8ypx8SWxvL4kVW77iLTfsQZ7yexSpfo9NIUims9IFN/FCJVN\nO+o9tzbGJQNRU9YKAH+p4lkH0MDYpHiUXQghHH9lE8tYqAm9LvqZAf04Momk\ngetDAWFz6k4nANFoihy+Nxq3BhjXtzOnOhIEIuhPukXOVnh5jkLLmZcxyyDd\nm1eg8W3CpBaFZYFoYKOu/muvrkoNNTjMWQOL1IS3euG0fEdIieam7eI4Im0N\nAyRsKvDY5ro0Xapy6E1FVkej1rhNFVo5wQI5V72NoAHfWIF/mbZJMO48PTaB\n6mhRSQKKqlysZRFF6ARHq3dhjQxsgNmpcY6SmF/QRs+At1+AQB65OTWGqEYt\ngSWq+8bvD4RdPeRx9JOYV3DXTKujWtzM9yArbOFYChUArBSFYLSdWvCAyL8q\nPcwhEMhHbLtjTDiK6OI4KxtPiNugpfne/g8S8KZl944ekickOwGyTz4iTFZu\nCjOzlxuIaRctQDsaYRFFF99WF1Fn9S/kPB2HvFxSonBSiuIQXlOrK6zwp84x\nDeweODIaW8+eCy6YS1uKefqg5nUn6zwkUsCRH+EC7NsQ8H4s2T9fgxbG6EOa\no+LR\r\n=sCIj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"743430b22e30b6d3307fa76fa35d991a7ccd45aa","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.12+743430b2","@apollosproject/server-core":"^2.0.0-alpha.12+743430b2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.12+743430b2","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.12+743430b2"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.12_1607521560377_0.882548252566073","host":"s3://npm-registry-packages"}},"1.7.1-alpha.4":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.1-alpha.4","_id":"@apollosproject/data-connector-onesignal@1.7.1-alpha.4","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eb9d39bf32559ad1e3498eeb7173a02038be30e8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.1-alpha.4.tgz","fileCount":8,"integrity":"sha512-AwLudLMbWrq4nGwRBxDXk8OEliFUtnSoCxD5w6/1Qi1x1LgBMiohjZnRIQjJtK4AMlMrXJzlkUP9GP5AiV1b6Q==","signatures":[{"sig":"MEUCIFN5DEseYSgMzT9xLzOUIE39BK3n28eypIEWiGVeu0U7AiEAi3BcEwZSxT7BT5LQ3GQP6L9PDErD4OXwV3x+QWYju/c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0kpCCRA9TVsSAnZWagAA8VoP/0eDmYFLAHVhSYTHlMJZ\nvDd5U/axCxiSZxP1bl6WsrU3Qbb7eKusCe4HYPeaKnamgvoM/yhQNbcmmg4q\nNbfoCw/1JNM1Ew9KrqlsKc+tYt/UdjUrUJJOoQxP1jhPHn2fqhdf588JByE9\nAhFlfKy996Kjd6U/Nm846892PAydmZNrnd5PNfO7ru2EaQgTJ8MCa1QUG8Rh\nt4e+3S3UyUoSFZ7TVQzuifHakJbvfiKEzU5ZhJmM/8qDsFPOfyfvY5a6jTPX\nHIWK/gJNhd7BCyE9bmfUDkUz0FhupB4xvWlwheT3m8Q8+ImUevF+YrzOAKgv\naTbsOVt+P68Q7+of/AY5JNOX7EMohLAHgaxeGTFxWIu15R5fGJAklB3JjYAf\nC2sNm6+mqZDRPm3VLkUXV4bQpKxgMVDQkYa0wIlgEJw5gHVAfZOGNe3ZFMVd\nwJQhcw3gK8/vG0NlHGUWk4/UWQjYJWEZ9nN7shNmwhmoA6gVW4UfXF8Aa7ec\nefcBuGhFIh3bBAfyy7MdJAgeW2dYo6XY306nLreCTSwqNwCvNa3PkPGayC6D\np/LMQV73mXGmc79NYiuGqhkFg5ceYv6PcowsRiB7lZJ2SsoFTsnOuy5u8uog\nkikMUCIPWZS1YNaaQkvFcfXWHsPeW0dTPMiPD5Ke+RxGMOX8SxgF/z4MRXZa\ncA95\r\n=IyHz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"5345a5593a66b423d43fc207622ab2c826b2875d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.1-alpha.4+5345a559","@apollosproject/server-core":"^1.7.1-alpha.4+5345a559"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0","@apollosproject/apollo-server-env-mock":"^1.7.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.1-alpha.4_1607617090202_0.08165545197391921","host":"s3://npm-registry-packages"}},"2.0.0-alpha.13":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.13","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.13","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5e2c7406534eef37625aa927466dc67a3c7bfe43","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.13.tgz","fileCount":8,"integrity":"sha512-2olj1YDOdt/AQ4KxtnaIp0J3hRp30AnPKs/p2rBtE8AQGCcAZ/9l6BKISzmmmgXFKHRKutcigp9Zg4qHLcUU5w==","signatures":[{"sig":"MEUCIACoBX1+g2QzGXoNHE8+KMqAAqnglqFAgsQIDK21vVJCAiEAj1g/ldGhZFmaeoak+ABzAMjBYCor43Y0CH8fWqo27Y4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf04UqCRA9TVsSAnZWagAAEvUP/j+2X13lsnj+Q8pAqA98\nbUCKSEY5/xTtCLbIKJWIHU6BQhzRHxJN16JABpqRW2tDtlD/kGf22TjAkKmF\nbBAsjL3chve+tp2/wbPDwrRbFzp2+MoKnqDLqcCTIYyeP4euzAHj86ASi86t\n7RmplP382G+DO2JJN3Mk5hHyxA0JLcGR4nKgQMe8O8TCr15vaemZW/QS7zKf\nFnWiaTqzo41irTfC2kWpwOHCZiJAR/o8GM2iakHSfNIWZL8S7HwCyPIhrd46\nflooPMeZuX1vUWfcTPMrafiQYkbVbWOOalI3U965ngo4DrHojYeoPqLos/v8\ngnJbHjZb2i+mvS7NawhDgT3u4MYxLKl3NILLO95c6FHeNUP86BwhD9pFSwBy\nxPi2NuNxRHe84OTAiThRTAZ7zSkFJqFn7a5atN/yzvGGbIb01QlYKfyEm1Ji\nrBbDYNFwZExuHi+v9qgE15Y1PzIPwPf21oTYisaiqDR8XHY9UGxhUdGu9xOC\namA9zuWLVOXKf5bV8l9sbxpJDnDU14RnDSh+lsPxiA9z0DcoFVY0XKrUdN3J\n8RIOiQYoGVpVQ86jCALdcYnlQejzvqGIN6fu5gwFeeND5i4QtX6QyChbhx45\nwzPX3dMqka13J/DmVHqXEsRvVjOIFGvtbwHh791B3USzvx3xf+1XwaaFUfAZ\nM+sg\r\n=KNry\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"076102184031c46757e231008f847f1725b80953","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.13+07610218","@apollosproject/server-core":"^2.0.0-alpha.13+07610218"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.13+07610218","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.13+07610218"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.13_1607697706137_0.3460047957074259","host":"s3://npm-registry-packages"}},"2.0.0-alpha.14":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.14","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.14","maintainers":[{"name":"didevshop","email":"hello@differential.com"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"yungvincenzo","email":"vince@classyh.at"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5f7f3ae26466d3386bf6b958bf04d88e125e6502","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.14.tgz","fileCount":8,"integrity":"sha512-1j0NIPYO1KBeGYqNMtAL9IkuvesUlzp0qvaxrnK/0Vsm63oi04XIRmH+8g/MsGUWfHpAjhNimcGyJJAQubdgPg==","signatures":[{"sig":"MEQCIBa5h5hw/xOL/hJ03mhWOUUiNC6ESSmNtT0+/5tfLKMNAiAUiw2L2ciOqm88u4hCoC3RqngDXZoJRsjAn3CvX3hbBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf09yfCRA9TVsSAnZWagAA1uwP/0tLlXGYhYGPHBo1PVD2\nAinh/Hpnx9F+EXqBKRAh2W4XlJekFyuf25phjUzj/Cm6GN9a/Ft4Y5U2nRPP\nf/7V7Tj1m1wFEJxGtKrQyTZzSKJh3lbyZvd5RtTGscEjPofUtFCx1YIDZ1no\nuEfGPVg36jeOg+e9xO7ps2ThiOAxoBbtOQUWpQIiqxG9DWCrrwAyFLHPGd+m\n/EZsXSsUjObyinA3tsyoLWqSqRYC/5xJRAyEv5daYSXMnSJISIM1CwY8ID/Z\nKOGV30Pp9GYkYgnzVxknSBm9MzORWVWncvd1qrYoNBeksNj2EUA79qw/YlfW\n6saytYe+zq3Nk/BKX+brLvkKnYXdYbicWtpCctxq5Xg5HUDEdlzR/wISquVa\n6hYLNdyY+zXKby/ffVSnFKiI4Sh8bLg3woN6QCdqlgpBHep6gTVqaylH5tBP\n3FvoGiZe55oWFfqKXqIh8lDPkCXQwkR3KXY7c2oy6rROjMBgxWbAOt7vSeeW\nU2QZsYH4I3KjEJp7qCA8081MpxEgyuNSsRsLX0lIGoHrC+ZO1tGgV5QZxg4h\nKg6b7b8FqIC5VujZyw3lEFPWOtjiq7Koul7rTf/iebA/LMFjZpbrdmP12q6D\nUYxfkBPhyMH/+HeUMtyuRdv16fngxtRRtAuWOPTCS9mRkykXDciDgzaTVmFX\n45mp\r\n=0Ctn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"418068ad8f3afe545d1f43684791d53e99d90951","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.14+418068ad","@apollosproject/server-core":"^2.0.0-alpha.14+418068ad"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.14+418068ad","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.14+418068ad"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.14_1607720094822_0.6016846683592778","host":"s3://npm-registry-packages"}},"2.0.0-alpha.15":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.15","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.15","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d4fac9917a41818cb146eab311d03335835babd6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.15.tgz","fileCount":8,"integrity":"sha512-PA6kTS4KnpijTW7nZGB0LM9FPPmSwkR0MVnJazO+cmlU+yO/o8gzNDn7fI7rY8qhBRO0+AHUxE7PViA00cmnbA==","signatures":[{"sig":"MEUCIQCNecI+FEk4bAXrHaQ7G8/Nxqz+If/gnxo5z4pnJRgW1gIgZ/yfKQhL9yOE2lnoByl4ULXa9CgU4PItKOJ3Z05mOiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf15jeCRA9TVsSAnZWagAAD6QP/RbI9gYsSejBJhjekOOR\ntri3WI7Rw5O9UECs9pa3aAi2W62SojaEuqgoErOlOBqECF1b/cWwiNyzFX9f\nkT4IsHSierx2dCtXzr2/SlAuXvm7EcCHMITxxZb9itA2Wt1T8o6/0w4lrD/6\nwAz3aJfJbJaVhSVNfX/6dctkRNlufUIUEdwDoexQ3opYjn2Tn/A/6ySeX4eb\nJcoNh62MccgjOgq1yU9vRpF7/PxwSLQJ2Y5OgOvL4+VHMmt+AEu81aUyduoZ\nPyKM9x2Um2oFVKQ6ixjAKiTdcqIQ4UljASxkeId7d74ERHCUHsH7KO30oHBm\n2g1blTnhH7s0YnKQQgtz8npNHy2I0atBCZm2viNdGrsuvvYlpRoquUTGhdXW\nZpYfZ0te1ndLGbOn5ubdL7hzRu9P3vKqKlj8J8+FssgzOZFO11x3qwgMBgRC\nMuwE1f/nrFfIIy3Z4pehcT+Gb5wnMer5dI46qBOs868shZIF2RLrLstlF/ih\nnczM8qUr1MzS4EFDoVYewGr8a/TL22de3Pkb1UIFYYRwPNjIwJNUCX2wUwt6\n00jDPuIArtbEuLk8VF/KRqXNaXo+Q7T54jMXHDXA1XQ+DToOoy4yGMEIAtBV\nY0MaejL3tvfzOrW3Kyfs9M1USMjWtSqVccsCmfAWsfeticTpN94rI7GaoiC9\n+uCS\r\n=BOQR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"9ef8d244cce77f8e843d7022ea39cfb279df66ab","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^2.0.0-alpha.15+9ef8d244","@apollosproject/server-core":"^2.0.0-alpha.15+9ef8d244"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.15+9ef8d244","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.15+9ef8d244"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.15_1607964893847_0.7686489496022137","host":"s3://npm-registry-packages"}},"1.7.1-alpha.6":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.1-alpha.6","_id":"@apollosproject/data-connector-onesignal@1.7.1-alpha.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"490840d587e77a5dc05276fc4200dafaf7a542ab","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.1-alpha.6.tgz","fileCount":8,"integrity":"sha512-m1H/1DyY2GTmNhNYmARAkmCDLIvhn0d9SFxMxp5NaGzf5fvRd9xmKhk+SCNnrYG0cZcBaTmjirIR7WWisjWwvw==","signatures":[{"sig":"MEQCICa7LN9Nwgw0Luy6JYwik1gSWL0o3tTtUIzFE181Qcx5AiB65J0jGxrj6t4e1Zn4zuU3r3HoRVYgvHzg4Mh9JKKARg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1+DXCRA9TVsSAnZWagAA/4MP/RJO1IwsAjEV9gAzXmb7\njz4A34Gtkhj/pXB01oj2rtWDjmIQt3FVIQORmZrCEIT8U5jOcmpjRMtBbLOX\nVDKKm32gFh7kOx9PAo5y3IFUWCUlA5W4yCckfXQZTN+J97CSJlDW3HoowyHe\naBS54NMWGrbVc5Qv0SqrBJpxrzMvmEwfg1t3YIPuGMXE/dtb3jYdKdiZXi6Y\nV9YQyOg1W9dEIhFSSWdSAcgUUdxYnPWArXJj0tr7NrSvPWIIv/15RRiOAocK\nGZBQ28SibxN6Y3EWY5a+WEuenKIecCJ4IZNy45QCfatpx7VKQ+JLcykncuCe\n93K//2EJejeZHAsZDOa+F/PcAXwo03sY/1goyvfBAv9oy0c3mRQ90tXD4Q43\nPBXJStVjmOZhmVJMZfM6o35w5LOAf+p455UEnhhslSGXKmEqKQ1S022Rxkwv\nDQUGQSn8qNGGEiCXNQMfSkL4Jd9a/NeT7muUKR+RPQcQnfyWPZJdsiTDT8Mg\nDErKLc2XWsk0o4sSPKm9o0JeX/8GKbulY6Qg8XxP66vA96hoVRz9eLCr5Wni\nOM2KXbo1vprGm2km4huGvLzqGQOGXJudxNNwtpK/boeVDdCw6QuJSNkF/1Yj\nS68OYyLioKK+pR0cHCcRphece0faXRjfD/9bEI9ENHGAmBrzkv9JQTVAIN+m\nPKz2\r\n=z6l5\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"d223513c51b61cf039e0d8def6a45f1fdd4d8687","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/data-schema":"^1.7.1-alpha.6+d223513c","@apollosproject/server-core":"^1.7.1-alpha.6+d223513c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0","@apollosproject/apollo-server-env-mock":"^1.7.0"},"peerDependencies":{"@apollosproject/config":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.1-alpha.6_1607983318605_0.46102519949101395","host":"s3://npm-registry-packages"}},"1.7.1-alpha.10":{"name":"@apollosproject/data-connector-onesignal","version":"1.7.1-alpha.10","_id":"@apollosproject/data-connector-onesignal@1.7.1-alpha.10","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c1035d5e19ab0607a2417539646af2255d6a59cc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.7.1-alpha.10.tgz","fileCount":8,"integrity":"sha512-BLhz/DEfaLSefg6wtUCqrPNIQfH3qbzV+e4URsRxhW/96Bo4ZEFXUsDHPFLWBgKGe+RxRMrzj91ur3QLzab27w==","signatures":[{"sig":"MEYCIQDB08yKBRXn5KYp4RoX+VzAcvUYJSFf08BhUNtMonqdkQIhAMvA2rOYbmwqLJ3lYDfcwrxYQ+FbxSN0J9xowc6ecGuQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30972,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf238sCRA9TVsSAnZWagAABEMP/RS6y9a7R7moPaEcetfV\nXCh3Fu0YmYP+jQUZowWg1NobM0g33mD2KW2T2Iu97ciuImyNHurSwPlo2VgH\noP/uNVf+bM3cqIr210TAjXxtQ2Hr1CxLNFv6aAU3GCUMxb7D+nzvum52Fyz2\nazGo2kJQmzYswT6QtMaIeV9So8kBE0pVFi0ysFC0J/TKhvo+LTJ60HSfrzjk\ntZLolQS75A+TSJ65G2q1eAuE7S+D9jpVZLJhZFAp7cb9JJeOfQwdgc19PrvT\n6hD4B9Wdyxo0MpKFksrbWBQBfYo0Sy31XiWSOMwmud8Wlk04SyTGon0uwcpZ\nlDFbIuPtGBSi7coloE5Tk7hPWTiPyoRMm4WcQZByT3A0oTEjfAGt1mDbKTjP\nS9sK/qe0onAMgfxwgkPGbmtrvmWnd+6fdIp5rs1LeYpBoCS1C7VrxAA32fbi\nHDSzi/PrUonK299d3x3Qvrq6fx51da284gugqfuPXueKR5toQoOmHJqMZYoY\nDXNLMRJ2RargOrxwF6eON0r7kzEBXtbqe4CVnuVwTN5RMAqa6DtAnOlUFlUt\nGOYOxprBtvmhskD+jcTYrk5bczZpyjx8Ax7gdQpZ21FWo4JOj+8kn+uH46MU\nMULxt3BVxKZtWyAZBg2mFE50g+g4OtznOBPIuTEe3NLW+Jux0LruXphGLjfb\nSxHG\r\n=CIIP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"bcbb1241590fe63538a450156a222a3dd1f24a67","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^1.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.7.0","@apollosproject/apollo-server-env-mock":"^1.7.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.7.1-alpha.10_1608220460062_0.5590261413954747","host":"s3://npm-registry-packages"}},"1.8.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.8.0-beta.0","_id":"@apollosproject/data-connector-onesignal@1.8.0-beta.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"edc5a313a3a886f56b49d1555e342d7f5e36f222","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.8.0-beta.0.tgz","fileCount":8,"integrity":"sha512-1aeJIZ1B2PTRBlIe54KkQbFaNr8s2t7ld0UdxDFC7q0sx/1noVNoi3UtBnsBYZiVRGiuwSn9KovSODqhd8ao5A==","signatures":[{"sig":"MEYCIQDReq7u2hwoOtcGLzSJNcFppmc5o/JIasuFe6OGEkepEQIhAKTWLT3Sj8qMFSp+XN3e7O0/bFm2OjB3m1t50Ot4O513","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31178,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9e/FCRA9TVsSAnZWagAAl3IP/RZt84u16hUHTyt9zoZw\n8zg0db7oBFsL4dpnPlIughU8EnTdVD21eOFZck2QBvOg+bEpT8N64mKxvIyn\nFTdtBXhD49JX/GOSktcUpaRq/Xr3Ld+OJVJZ/bt13iRTM5JVQQtz9eQgcLnO\nYTB2HuaKoaWc0hSGPObKXWSRpNGWqf+Cgkaxx7Yc7ea0v31oWBf3OcDBRX5r\njHrY+3UZN3FBCDU59kQayY0PlWYIB1CDMcPZcJiv2Vk+D0ffcIScE2Nk9TH2\nUyFK3b6RqxSp/nVDE7qp1WnJE06UrJqcC8TsA/INVgZFAQcGpXWWJq81hJbx\nUjC5+A6vH/jKF/I8vhMrrPVtG5TX/mCy+B6zBFGEijaoSOz2o6EYV4RCIm1/\nSI93Mj+3NXH1zAlKenHIFlD52re34IAxYgzWTc7gWJHJraTy1lNxbPQ94yox\nDDVhNi66bSRptuKHLkKgWec2aoCY5sBR7ZpZWczrrXRu6ttxEEX0TYmsDbSA\ndRSQ/oIdQDqjM2p6vW1+kxeHwSat2GBgFJYZAR699omX7EauagyXa2tghEsx\n6Qzn0O0xVG6LDoIdH4Wq/e3ovdWGo52pBRiXguViiPGRopxvKpEph1AIel9Z\nVCnWlEfhAwlhXdQIz+YeM6JDaQRw4qkTuMn7A/uKOYbWucKwjYyJLKCx3YDj\nFy03\r\n=Djit\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"d858a9ee7f173dbdf9e52da3dd2df1d591ab837c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^1.8.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.8.0-beta.0","@apollosproject/apollo-server-env-mock":"^1.8.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.8.0-beta.0_1609953220844_0.6283136645081748","host":"s3://npm-registry-packages"}},"2.0.0-alpha.17":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.17","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.17","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"bbc35999dfb5f4e239459404465e51c11b39e1e2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.17.tgz","fileCount":8,"integrity":"sha512-AdmxjM9FtkXkD7eE6ASiLXnqFKrQDWKKUzVq4SZLkxE9SeN5K0TNuVw/Bn0vwfQ0eN9P79cqWnIhTmGjM3BwnQ==","signatures":[{"sig":"MEQCIBdoOohCbwHDlPuFOVD10gZVa3QtWXt+Z0N5juQRFzQYAiBBSKbro6tpCDLahJge4vDVy0iSGuiWkX3p2UNc3VmyTA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9xwYCRA9TVsSAnZWagAA+tAP/2UqPcfnjhYE3Jg1+RSW\nWNaoIhElrNkt2g5W7DsRnhrhq5l4kUEgbTQ3Jb/yDcHWRCT25KIChOyg3cwU\nc9f8hQO3nW1Cqvuk/jZOSp7k0Cp2ts1Wym0BjtXMkKCNXR/oU5mlEPoQZ9L7\nLaPIvMNeARmwZrNTkvs3XPheBky2ZOJ1plIn/yuXJY2TmFk7Ni95q3txQEeW\ni5V6e55phfwK7NrcYeRee8hgtUn8UiOhZgijrx9D2UavfssXE2qMSaVWS4Sp\np+P6BMa7Z0G9ccNYr68Zom8yx2lW7yntNVWv9+rYX9xLMympHEap0YtYW7W7\njy198D9lW+xMVjc5rjWKkx9MeR9XM2m8DvLz5jcZT7vOuv+mXKmWn0GCJyUx\n6w3sI8T067ylDXOZIQ44TjWK3r5/zcmYjOHa8h5q6CNY20VZxT/99wFdDW5U\n0w94J1ZvHjWqVLrUWhDXqS5kTBZRvI/UAVYXA7e5UPJt0mZHR4mV3sGUZ/v/\nIDBAUL3tTNBuX6Fc+d5n/QsOJoHJ8QvzDa9r2HtNjyLRsGUTJom97ZbS4bJf\n6mQ7hkYh3Z0byawpBgRTPk5EXERNUA9EfFUEt4/uCIO+CHsnPiurOJpjqTeL\noNPvVPNf5yCj2o3LvJtGrkex/qM0xHECc9JzohUDgYqqXnebyKoyTKMuKsLS\nvvB0\r\n=xjoA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"2a239018b9234912e21aa75ba2f92570c2da9074","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-alpha.17+2a239018"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.17+2a239018","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.17+2a239018"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.17_1610030104188_0.6874122615978975","host":"s3://npm-registry-packages"}},"2.0.0-beta.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-beta.0","_id":"@apollosproject/data-connector-onesignal@2.0.0-beta.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a5d8fc98856439db5c0a6559b84d42c6c863c964","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-beta.0.tgz","fileCount":8,"integrity":"sha512-ZhMipi7ZP11S9gTtmkogndT7zUHoHK2KXqvlW10w9mZxDeUBWTwml3d3CZRU3hYtnZUqMtM1lsxJHm5n94LyMQ==","signatures":[{"sig":"MEUCIQD7N4LdBnLPChYste15TSog7gKC2tEJ3w71A0oTo305CQIgNRt1P9YVcIOvgzS84A4bchqqmh7s4leRoLUqeIDlHis=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9zoOCRA9TVsSAnZWagAACpwP+wSOoWpAFnF13nQeMnnd\naJA7HqjXEzbwxwNs1oHOjEeTBvVdmnmjgqZmGO1Q3AiWJAJn/aJDovCEl6Pw\nodlM/9h9oYGyl7IGPL4CyMuaA4yF8VKxXwYYFuOxQz+Ge1UaPjhAV8x6c7l8\nT3IAaBFKiQ/TDXmxuB9ZREDR3NL9cNIpyC+pQHPplB1deCPGquAmuzmKtvYE\nscphnaV3f+n40JFLKv/cqkorZM5uWgOtt1H2+cY2koM+bC6cC/1EuuNgHdsz\nsi4C01efHyrXEWbPGkPNpkG9ctqCxLyUWtBH4rrXDzF4WvrH3AYPX7FtlgxL\nb3UDO76jGji2bZoNIF9H4WsirqyYYdNcZH2yRn32K/sZcJoMGzMkRem+XqZ3\n5nODxlcPe17PrlH6nuOMbwR30xZ6NcSdkzSGrlA+/2Fb2afx0PdB/HkkSo9R\nmuuOJneT+Dth6syOI5r/Lj02EiSljNoEj6W6JWHN7BNbDjgrBjXhcI2Cif1a\nhLtmCGjT818WCLTUJ6CVtEOJkKTfFimSC/qW2TSK6OvqHNaMTse572tu4Tht\nnahZzz4JRIluD1k1eDg2RZT1rKfnja2+MZsgCMZQlMnXecAOw84bdl5UzDTh\n/wwR/IZaaUor3Za6IpJ7zuCc+/RzXO4x/wBlO5FYip20Q6NG7bGhRfkS9j+g\no+yr\r\n=iCbV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"935a4efb2aeeb3db6f400c8fdbd9ddb45a31364b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-beta.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-beta.0","@apollosproject/apollo-server-env-mock":"^2.0.0-beta.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-beta.0_1610037774186_0.09824154583524991","host":"s3://npm-registry-packages"}},"2.0.0-alpha.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.0","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c77f8d9d84afe89c3cc5d0bd6960687f762c000b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.0.tgz","fileCount":8,"integrity":"sha512-28LX82MtDJjbAGtE2EYmJi1Xu0J4gy+Xgpdg8LAjnsWqx53WQoh/EPGBj3JMkhUVM9PAP2DeIopQdeTJG/mzdQ==","signatures":[{"sig":"MEQCIDppcSj4GZ5/sI/Pvxeasc4K1MDeEwBU1VMKISsXNtlQAiB1aaNg3XavVEyREWrk5xVM1/GaxyKUJPnLJqDD2Jpq5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf9zrVCRA9TVsSAnZWagAAG0gP+wecueED+ReDkppFe/RW\nX7gjhqATjju7BWEs7pOBLcmV9Nc7E2i5z7OZ7zn6qySrOfNDKCrintk0yXbS\n3POp8YWquU+rvh8T8/Gv5Yqm6PJlH9y5b42MrVwbQVR3HUjRh/rLeL0ipvba\nJ38TrXAfbUgKW4uAJRpOaa1KDUd7rWZIYDPknfzn9acxmP0EMtAJqm1NJyjm\nYT3Ql4ys9K7Vzhs/rAwIOlQX3yrLhOF+CALZ7Wb4O9/qzWsYnYH0TJDgCcJS\n8SBnsQIwuEihp1rnnvwjIuwzCyn+F+KUzjT3I4arF0uhV43f8vBRM7B8WBCr\nVT9Wqkerywsv9BqhJE3p4BiFdRjMKwQMB+ovZX+ob/ansid6vTRveS3z7h6L\nTlZqlppAQOZ3SSBN1CpZjWdHTuJWYE1sdXD/Vp4osOcUJaZqx2DVu4I3GS/o\nHuy5Kd+lrLHgCUj7ZVlRRrU67rzrMIqZhHcdGDvTCj5PiYZ52Y0EsXcxxRQK\nUlGClTc5+n3CAyjVc0em2qeNC63sOTOTWb5iyhUcgpAHygSo229wEUxo3Izt\nCLwq9mRFuxt/ErwnicJKTLLSGbO8O8MBh8NMKuVPqjkRDwpj/7SQPGMM3gYT\nKEf8L/Gez6L7ml14Nle/QDT5/SBTH6qiCBRUfyXPsKzK734rOvs4clwfcTIs\nblYs\r\n=XdBl\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"935a4efb2aeeb3db6f400c8fdbd9ddb45a31364b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-alpha.0+935a4efb"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.0+935a4efb","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.0+935a4efb"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.0_1610037972891_0.47424978928024353","host":"s3://npm-registry-packages"}},"2.0.0-alpha.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-alpha.1","_id":"@apollosproject/data-connector-onesignal@2.0.0-alpha.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5b765f942dc1adb6b2abfb7921b672d8a84c4f50","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-alpha.1.tgz","fileCount":8,"integrity":"sha512-ZnmZ6WEdyBT91Cpa6bdDQjtmdvbd2VHvPPaEhtfCj0phIb66LJd62cGf2setPgnUrlZKLU3HWn8L1p8gQ65ueQ==","signatures":[{"sig":"MEUCIQD0wsH1Ic9oRnvqA0iUHASKbFoCWQJrP6xkekTcQLz36AIgIUjsBW4Qhkgvp/vMUW1nhTKrAjFMV0IHiH3eL4KA9rs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCGM/CRA9TVsSAnZWagAAdo0P/1vnlYbEGsYAedwpDXsc\nkHWQ6whOLtLemyT4/3baHZ0/bjywQRQaxDwqKOz9EhyMFjkDtLxB0buOMbQI\nPGBNRUwFMCOWSJTSPjfH1+7ECorIf2G9Wms8eOFfWb0lmzxayoN8Vz9nnYN/\ng9JXu+4fRYc2FPeolA/HHb37qSYXbhE4ISrWtDnL52DZ6RoM/h0eKOeRJzvs\ncTU/HhNCgDSzmNh7yMM3Lds4YApZFPVpwJCVDcymyhZAMlNZCX0FQk7ViVfR\n53GxPSW4erFN4M0rJTO4Cx1dJPnS1b2c3AsG+6um2U253N/LmgpDVhgieYTp\nM+khEPHErrDdnObKCRQlRrxnLwKAXue8edAD7odyD9ojDSvb++dpvS5xX0mP\nYzlDOkTCqN6VaF4cKal6vkAHW4T0DKa7m0pjbIMJg+c5ooa7MA9Shvg+fMni\n+JdcI0dVOWemMglsU9FHBTDld8KCf0h4d6zu2T1IP6tFI8KNERUZhJpyv0xa\nT0OsLscannUFHWRJumoDvLG5hfAiTsgde/PkD6BRBLgw8DNExXKpugcREDtl\n89z9Lodx4E6bBbwbqJhT2/TVQ+IXrbhpO2/EL+4HQ9ZXSOg8DaH+eB/MPrFJ\nm3LBZq7hgfRMl/iAzPgFQaMI+HMClK3VuDkv70EwaiYTc0X9qcBOnbwNdAKy\nC68x\r\n=xNwy\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"9e12b69d167f12fa42df2937cf636191b9653cb4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-alpha.1+9e12b69d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-alpha.1+9e12b69d","@apollosproject/apollo-server-env-mock":"^2.0.0-alpha.1+9e12b69d"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-alpha.1_1611162430838_0.9983901871091752","host":"s3://npm-registry-packages"}},"2.0.0-beta.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-beta.1","_id":"@apollosproject/data-connector-onesignal@2.0.0-beta.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0f2b5a7a45fb6057bf52160db4cf74fe80d7faca","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-beta.1.tgz","fileCount":8,"integrity":"sha512-B09SN9Xo0CO/coP+C1HoLhAc+HF/Q55OHpelKvVvs9cGWiW3/q+f3htV8CdWsEgfwiikq97JmRlGwFbImugWGg==","signatures":[{"sig":"MEQCIH4QhfS/QeGE2rbr0EcpO9Zd2GqNf0TJAQtlSbz3w/CUAiA9bhZD24HGn7Ch1cxQTCJmXFny/z3q8bXXbVbH2LreIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31836,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgC0MMCRA9TVsSAnZWagAAQnAQAIsJB67y3H9p9eoI09IU\nxLTF+GJHf5r3CokUqhSIqZFYNtHJMx5RPhYe9VIWkdrWY/lbjilgYLGX9L7d\nEkaJW7lLIp/Ri/S99dk8UmQLf+oIqOgSd1OZ/KHEG02nrVg+gN4wUMyQnAQ5\njIJbSh0bECz1ZhduQZph/UKe3ZS+ZF7tbScE/zdHdqll+cd2A9OvbO3crVco\nZHV04Gzt2D2ymFldZuXbwd3PUyZjdQEAHOX+5w2gpFKJW+BG1LFA/K8cpQ0z\nq2JDFYGrfdhOhlkgjmvb+QjULjFOe0ncKYPmZzAk9DcmQnHeHmOGZsmsGKq+\n+7/82q3P3Vkgu6mYkos8RWSwZW1ZnIhocg/LO7KfBRU5CFRc1bwjEQMBTjDj\nbFUyr4leREzyakinyH7M6tSsJ0EaiRJo1xvv+1pkW9XMp6I0tgAFlIYghuU5\nDIJJzfffi18k+QQ9y34TSetRj1eqC+HKO6ZgsuUnVgKFKY3lWb0UCtTxSFh3\nAyFy8iMUplEnc4xIt1M51J4yjLN0K5jZyxF/BysoKS3f36aThgHEKACFQkro\nRpZcbJ7IIBLWcV3BPGc3FIPWz7nFC8pU6Or11w8jdIyxVefszPld59IiICeC\nP9ZTMDH7CljWVd7BWRNk+jx77z/qgYTQ1SJ9h2mU/C1KB2UzkkAGp2PWeVQB\n2Gwg\r\n=ejSU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"9c74a4d9e0a9bb64e1099b71d27968c95decaaa6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-beta.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-beta.1","@apollosproject/apollo-server-env-mock":"^2.0.0-beta.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-beta.1_1611350795664_0.6410899143017634","host":"s3://npm-registry-packages"}},"2.0.0-beta.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-beta.2","_id":"@apollosproject/data-connector-onesignal@2.0.0-beta.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"105321093080b260465eab8eb51a78b39ebc2122","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-beta.2.tgz","fileCount":8,"integrity":"sha512-tyht5HCPcDhpa9ZxpXbUNT5EKPwXiofniJv7pQGJbhsAXMfbmgkCSL7v2a2mLFpdGQmOgFLymElJ0/F1obQ5+w==","signatures":[{"sig":"MEUCIFQMC6LJSd8RrLqgCgHQ6lM5jeC0Q4LftnCqlPU1PUnXAiEAl2+DH5NpqMbPW3+yoFf9olLjqlu06xlyl/TDW55vYpk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEbeoCRA9TVsSAnZWagAAPcUQAJnFPGrTUgudd4OvjKuD\nrfaC37Cfry3QqqgOjzi5+Mm0uXnS6yNI1szzchI3S7vTM8w6G4pI0rRgNeXx\nwMFqq0+gOQFaZOZEkoPkhvSvEko9QvkjOiiLu6GWXkq2opZZegNH+6NHXzSz\nfm7/O5yttSaHF4k5Z3U+uyQA08pM87jStb+V8OarpijrXq5HxJhRS7O3cjFz\nhiSFdDkjEipiGC7dsb7TuBIUFS6F50U2RU/OY3p+fsgKBsn7uB4i+OSrts2W\nyvV88HTBLUIc7hRlpiIStBcFOydf3OoAaGFNR6Qa34fdx2TfUpbxp0hVgecy\nRAVkIicQRz8aURlFxOwh+sokwLYtmAur2P5u8Syx+rEjuFAszA373B+BHjUy\nnud9rhWUWzhdn5PR9QgzSkrdWEaRCqn5YlZtzwA1uk6lPm5PV7aSKEMXfXiT\n9+ULehpfFFk/RMntcuJT4inDX5441LErM6e9LtseqWBCdVxrCL2d26++3yIj\npnlQE2ZTkTf5P0wbyjkwVGRRQ8P4DluTQrWq5+8YFwnsXnXHYQac6obDAr+q\nScoXdupBPhf3HpKo3sk3t6lq3FftfmLnk0bXMlnpVPnjGo97QhG4lh2GGKiF\n8ovlrCMvlrxh3gvUIIpKuLhO+z2aXt/H318I7KO9/6ZpigZ3ap3rCH9DZJQn\nVem9\r\n=faDD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a2f8f4e9b187b2884c0ee51e78c263ba053ee7d5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-beta.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-beta.2","@apollosproject/apollo-server-env-mock":"^2.0.0-beta.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-beta.2_1611773864146_0.11508078402742705","host":"s3://npm-registry-packages"}},"2.0.0-2.0.0-alpha.16.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-2.0.0-alpha.16.0","_id":"@apollosproject/data-connector-onesignal@2.0.0-2.0.0-alpha.16.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0443e265355c07007904c6650be09f03fefa7c61","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-2.0.0-alpha.16.0.tgz","fileCount":8,"integrity":"sha512-vbzsDMrgjMPiOQVg/VJ+PZNut15mb3jkVGeX6VFrVD/tP3gj8tyFtYBkSpwd376rH+s4asumASkOwAioQBCTeg==","signatures":[{"sig":"MEYCIQDct/FY86M/4FmZnPUfEXMeY90BWCFq7gy+ejSxlNgBMgIhAK1qjBwk9qjUrJJ1WAtzlQjxL8zqSiwhyRHMJfiR74P7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgEc72CRA9TVsSAnZWagAARX4QAI7fU3jnFeuRhtnQEbjV\nMb2zZfIR/r7g7uVN3n2OytwyC/xDK9xu/r6wl4+lc+pPVC3TB/mnkvw2hoGT\nrEwz0TeIkNwxOXM3cABRki6vJvMwnsTMcIQtp/bEfEuW9vXRRqLQqj3p2mQb\nUVgSoMqkjYs/6Ne586qaVlqaBXZCPa05lq5RkttRtfDEoXFSb/k0yFH764qm\nd84zOd2L/jl2/Ob3pyI0xUp3FHmYNg/qBsmQOpfBeq3cTr1h3o4rwwYsHOxP\n0EpJqLel1ISkr14KLtNtKpJFjEjSGN/GQYl/qEIE6ZczYOOymrXOhYsSfza/\nZ54oUTCze1AyHDeOluH7+0s+H943mFzHqW8mLPuAYGaM27T7Ak+EIA8q99mF\nUSdotVo0i/oeiVkqWF2sWo4O3dk5K3c14AA+WhQV2KXBiBCrZoisCLZaRld1\nik15UQhy/ZySlow9vCowSky6TFwKHJneHtgfDX9nxO5T+pxcR2rjCNMH8dPD\nK/sX9gbBPlykBYWyDeiWHlhzgXtRo9oCfl+OqhLYifzh7n4MCCO/jWaV6qHD\nGXAE6U2vc5fkqm/qbqRhN4xHClcNRk2BcbmWOswTmPrAbT+E3D0QUIejHj2z\nq0rjTW3xVnstsuVnC/Rl3XTkvokEcND00QAH7E7pTURqrYwFFflQaECxrUyx\nKgES\r\n=0SU3\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"a49059ac4c22d9b315b6f94fc2a65775f7686603","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-2.0.0-alpha.16.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-2.0.0-alpha.16.0","@apollosproject/apollo-server-env-mock":"^2.0.0-2.0.0-alpha.16.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-2.0.0-alpha.16.0_1611779825880_0.858956697194388","host":"s3://npm-registry-packages"}},"1.8.0-alpha.8":{"name":"@apollosproject/data-connector-onesignal","version":"1.8.0-alpha.8","_id":"@apollosproject/data-connector-onesignal@1.8.0-alpha.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e283f57a32c2679c2d3d1143548731e1b3166b78","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.8.0-alpha.8.tgz","fileCount":8,"integrity":"sha512-WGavGFxITC0etEP3m7rUEY0rfwcSGrlRYoHJNVFQ+VcoQU7eAy//SOVbaCbopPxwXTjon4Mac/TYFLrKnkmEgA==","signatures":[{"sig":"MEQCIFrbtVKr976ay7S05mcXPNU1OcYOm/Sfk6DfuvVBgx/AAiAtHmW0Zv7LHZv7ZTaVXOyMD1dYsLy5l8ldwlzy7n3jZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGrZOCRA9TVsSAnZWagAAW5UP/iC+Wa/BHfIxxWoxeK+d\nIywD4qP11/0tl3K7iEGbRSrh2THZfZTrWabnjBL44DX6XahgNEPEaJXy7kZF\nWP0Hva47iosMV5KaSMm4oD0UlCX6KFDBQ0bTIhAK7BYymEEIasB+3XhZlsrN\nCN1Mq1WnbDwgMEXy0iJx0EvRTAyaVyDXaGGF8klEVEx9Xi8rEC1g7W6niZJA\npvK+8bGqgQwp/Ypj/aia29vFnKPngghvg0iVJazcNG0j38qHDx4Jf/DctGhg\njieR8vUCSq/aV/ZHt5VortQ61PddNSWaaUXYLfIzrqSA+Vat6rTvW/OBZmUd\ngNvkVewlDpKS7zirC+70QAUndf/6X2WKG5m+Ut2UODYsoXjbanDrX5fQo+c7\nEnrq8fuNybdi7KGU1XisCquvfzbv0/BQ7dBQO+ENZ+azFr6MstrVVtw+MgIe\nYZHoACv14Ltl5q53g4F5+4WU596Lip56wkx1LK9ir8YuckEc1h+AmlV4Z/du\n89w3s5vXEq1tI7tq0OM7nJMQ2T0UM6kVidGZq/vMP/Uh7sowEsFcTR/3qxo6\nqxIwBQQY/S5WldelZNBFIuXsVkiRx+2SamnHqQYK6Zy7QuJo/1f8kOuIGxOn\nXvzU7Ipe79+X+YSveddlWcoDdroHP0iHTyqo3ekpIs3fWEanISWtYB0zpj+t\nsf4s\r\n=jpEN\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"4204912c982d6b217191e37769efac2aabc8cb50","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^1.8.0-alpha.8+4204912c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^1.8.0-alpha.8+4204912c","@apollosproject/apollo-server-env-mock":"^1.8.0-alpha.8+4204912c"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.8.0-alpha.8_1612363341640_0.18642922919471094","host":"s3://npm-registry-packages"}},"2.0.0-beta.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-beta.3","_id":"@apollosproject/data-connector-onesignal@2.0.0-beta.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ee2ed386f588f982f33c7731ae4124967fa511e0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-beta.3.tgz","fileCount":8,"integrity":"sha512-PF+o9Uwysve4nO/0LavW2UjDFQeRyQeavE3eGVESdWBK1wPSYrwW2tVzKvE5b9alau9sl7jshyoTzuwBX//kDQ==","signatures":[{"sig":"MEUCIQCgsb3xtoSAy8zazJgHBgHX7XLr1Mvwv5/rlH3kPi+drQIgQkGKhgml0Mp9QswWLv0G/DM77sKppBWKEkydMgukSVk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGreRCRA9TVsSAnZWagAABysP/3KkbjZEnBvjO5O6vuVh\nCoPawM96794s4SixSWcC3aIWatNJ0ECJlcxqoUYU/zc/tb87blZ2EgnXqzKy\n6PNfTGacN7GGOaEBurixui5+Ws2e3uO24ypdjsgiMJisPbdx4mSj0IXYFSg9\nRcYF/6taAEJ8qHP3cw7Y02A6gy4+FsqH58N2eIEo2QQo7IP66EJYn3Ndi10G\ngaUO6tHuCE7jN2JeWR+NxD0RW1+CvI6AURE7PIIEvcV8lxtCCn2eYJyog+8A\n89oa+2cFszrp1eKHOOw6XIH+wCWoJpB1x/YWGjm81/nEsmwF8xCIb0WgvHoh\nGxbWTd2Z6sgtp2fn5IitjnSHzZBE2UkMiBl4xu+mwY6MJwb8uFhiws1fjyEB\nOf19iQFdxGx2iqda1nYAw/yBG5v4eEl8GpB6m0lrcBV7wN1289gu/0stgi1I\nsINMs+ZB/+c73Ede1LUMvNeVdxaGRIhkCGzNIMdI8/COcEm7wGkE2st5PfYL\n7WprWTL0ZVfmqDfGkGam+4Htt+fZbt61UHrZopzfGTjH9tglIqc79H1TjjJJ\nR16OQ2oaK7kFQ2sfF3ftQw0eOd7MRTitiqYWLl51aAmdz6XComiUqtbdzdAz\nYTiQaesz0TvK8Z35LaAqFTwni5jKxieLcHvXxSARX215UElzi/k8iVnjlVwz\nYD+O\r\n=fdIb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"7b5122edf49fae4b2118d242b41e12e38d5d57c7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-beta.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-beta.3","@apollosproject/apollo-server-env-mock":"^2.0.0-beta.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-beta.3_1612363664731_0.11583045957417193","host":"s3://npm-registry-packages"}},"2.0.0-beta.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0-beta.4","_id":"@apollosproject/data-connector-onesignal@2.0.0-beta.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"cf804ef6681c74de4def41fe3b304c3d8438e39f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0-beta.4.tgz","fileCount":8,"integrity":"sha512-LqWXspHnRg8IZJ6ZhF6A8RKKy2O4U9dthuJEmswoylEIhHiCtnTUkvuZVar4M/ahxPqAB1ytYyxPg6JSw8TYNw==","signatures":[{"sig":"MEYCIQD2S+bRdFo+awmSM5v0cyFCv/xJDxYDBQLPTlLcjFlKKgIhAP+Qt+RSIGpL7SmyCwOegAgReeDMKI2qY1l4bWb1z4uB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGstyCRA9TVsSAnZWagAAhHEP/32bVOcO0rddiMu0SGXv\n6pZ1dnUFtunK8hRgLvsbvIjdL0pz0a2LNPrlNpcS9AfByhIwyAJZ6tKintl2\nIjysqvs+S/KKJ0g2VUixZCym2N1c+6bKcfqLhbKuFJxv5/LS+db9TivoynHp\nD1hcQuWUFytiQyk+dW2g/ZDXHWGZ3B5bRZ5pwRePpPf6ttbft+vye0ogrUy4\nZkJqhjW13/eBE4Wizm9zCIQN5UfH/t9jMZPPdoOwHgfULGAKnpO99H7JeCxR\nab4kpAGNALqGg9TVOYnqcvzOvb9jFWu+DYV6+bmLUTdwinCsZEh6N+50xXaM\nIfpVqlfdqF4RnODgdc7x7tMmsEmZU4Lb6oar4Wx065AVkZKP656AUqi2VDEP\n4Bo2wDuSXwyteiEcpMMPxMW/6d3O78ifRX/cVzK8tXCYkJ5rOoMHGTn5LYTg\n8dpRnTCjcRUwBk0a4tzm/g+JR1JjJgdo+IiIf5m9XitKILFtOK+EX1PVk427\nY0aJB87RudsbZiVu1mSD3RoEYYc1PSGBQFlZK9hxokzmUvRkRwRyOau1nU4G\nk30XL0FGUrYjgyNnLtyENVFAZLscizNsI4Dr0S0ZpPOtW/P8timPiQN2lRFN\nc4RVGeYcjFNNhozfK4OWoeY0lE3IruJNE2Rf0dsnRZ43HM9KeUSS2LI59hxx\nq3Ep\r\n=pRQV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"f3350f4b9e2498e7451199f5c146cf7e05c377af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0-beta.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0-beta.4","@apollosproject/apollo-server-env-mock":"^2.0.0-beta.4"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0-beta.4_1612368754260_0.2300585511246107","host":"s3://npm-registry-packages"}},"1.8.0-alpha.11":{"name":"@apollosproject/data-connector-onesignal","version":"1.8.0-alpha.11","_id":"@apollosproject/data-connector-onesignal@1.8.0-alpha.11","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8083172c76a718b97b8e05b51e5d6704fa045edf","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.8.0-alpha.11.tgz","fileCount":8,"integrity":"sha512-PcWfdBuhG6ten7ufc02Rh15IiXFA6fMH96feKjrRZOeQZ8t5fReeKO2gefpbpXI3tNT0Fc0LkDdKJeBBj2bZaA==","signatures":[{"sig":"MEUCIFzcOlrsT/LMqnfvn0WJEWBZFd+nCfxx4T38qq30UX+LAiEAmcwgJDSR2Uqmgr/3IaG6ttlb/GuCxPMM0M22jco8kTk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGs+RCRA9TVsSAnZWagAAAmAP/1gii9JhnkzYF359WwO1\n6CA2OPUJMYsyhXEpnfYA+Shvf9F9MhGxqllg2Jw2NuhtpLA/vCora8Db8Gp3\nPuINg7FpP6//URO8D5nqcd6JN+K1Jj31B4AIok5P8gj/FZgwHc75QK3v+M2I\nVLGbpjFMBZKtg3KuG1PTd5GHv9rsS1+nxGeEmQ/1xTK28wgow4W6frfM9T1x\nZe7k98J2ygxLWwNBY0reUIJp6BdzBO62SPCC2GXGf194t09QuvJugltomId7\n4k6uddPCVEmFgAw6DeAaFaevOz8/8qoZ8j+RsJgL3zn4EO4zO+/o3cOAePZD\ntXYmpH7HfRv6LysiUqO8f67Dslo/pAPOFHRMkNhjRBiIf0/mcDbpcJDg2eCW\nWyfZFOyjUtzGUqfVmzPBtaz5rEOzwsM2/NryBwI7aqcwDD0ZLeX0LnYeEckf\ny2/+H25Aob2rz37e5duFKWRFmn5YcS/nO1rXdqdAFUE2/2kLuzCdGplxxNYX\nhysg0AUuOZjT3MwDli6c2IOHjVTY4e60WyWq/cqTD4ZPvCGUOIR2JSFTv7JF\n/E329QclE9tx8QeOKRW2jQBgI1/CZDa0Q+AzOJvdFoy/5oX2QyS5amT5O3qi\nX6iLvPd40D+pHGvA1s89SzvZVuPfug9AJTF3vGf/UJYkY3fd4cO1Kp6LMgUq\nJU/f\r\n=/n14\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"54fdcf6a0cb961577488bd8d67804ea05b00c137","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^1.8.0-alpha.11+54fdcf6a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^1.8.0-alpha.11+54fdcf6a","@apollosproject/apollo-server-env-mock":"^1.8.0-alpha.11+54fdcf6a"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.8.0-alpha.11_1612369809472_0.17221812843625073","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.0","_id":"@apollosproject/data-connector-onesignal@2.0.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b4fa359f38c474d93dc56ce059fb8d37aa738fce","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.0.tgz","fileCount":8,"integrity":"sha512-GDso4zoj/UcaDACrVCYZIVq04rjo/acTi2me06gOQ9BTXw/sm6yBCc7aDSReN5dv0Ln29arJ3+93V2mxRirwGQ==","signatures":[{"sig":"MEUCIBVB0tfOezqYhtp/FD9m0sjb+x9h24iVgwt/3w9EbrugAiEAmqLZ6Bxu2mY2YVDLZKBJ+dEaNTwj8gtIY8z2dn4W/7E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32200,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGwauCRA9TVsSAnZWagAAcM8P/iJM7Eu9yqgIurj0vz+x\nZy123Zuk2cQfnvqjEpSU3RoQyYUdfpOnxEHYHsQt7LHiP/X/0AUCh84NQ/RZ\nMCqpGVguOhfxNDSqz0ZPZJ+m+7JMTI1NHfugZbFjGa9G3CxxgRQtZwxjyfeG\nwqOu4KAhH+/vkiRc6tnb72K2r3bPaBompDecAxziWyDho9vdRnktFJ6+fO+i\nqpTk04s+XwIUvElDth5mbrJTju6t/w+8Nn1J1L1TuPrqzB3XcH/sWBEiLhGD\nCGMbWuqNlVMzqmyClfQ66EYhtebwznPmQZ6EHQEzRnLoJZcufdDkihiCa9TW\nBakC3iaCeEOBrnqb6bGd42fCYPQW8Bo1wpUBYpcw5rVKJcN64YqmQ9ocnFup\nEloZbdg7LKuc/6MhbUgoNN1D0eHo+c/ec4uBYGDxexL1xWdOtgONk6EU5ZTI\ne8TJ0Upv6/8AlIfqZ4vT28M5+EyZn7ut3zhrkCrMiB9SI3F7Mtv/RUbRXAeM\nt45+nPx5Vqxp594TkBazxNDvuSYxg30BYt3rXetHoaaCKxv3etQOlTy3Y7wS\n9C2dfmOcR1P3nlhANoJZlcqzloQvpIgdVqAEV9b6As0NCt/MjTvi6rkH0Eij\nDkaYa1kFcaYnNvzD45aY+uhaleG/mLwJ5S4PLJjWgYW/hxZiWYkCVI3RtXXM\naM6w\r\n=oRJT\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"b008b911f273ddd7798d8607b9136a6d9422ddc0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.20.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.20.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0","@apollosproject/apollo-server-env-mock":"^2.0.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.0_1612383918350_0.5195612742613376","host":"s3://npm-registry-packages"}},"2.0.1-canary.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.1-canary.8","_id":"@apollosproject/data-connector-onesignal@2.0.1-canary.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"89e78d383d9e0bf75399ab54c666b2ba0c1f25d3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.1-canary.8.tgz","fileCount":8,"integrity":"sha512-7JDgoOa1DIRQHJHoKVx9EsJYLWY1Ym7CXUGnMX0KCMbfr49Nw2hly6CLMwjl6rzUvTdGB6ODcjtB9Np73oTBxA==","signatures":[{"sig":"MEUCIA86omhjf9tpWh5K7ygTvTFHUV/XWiBtzi9LW4WtWE+zAiEAhQdoJEo6wCnpAcCHKFJ51fT2JHhALRnzEP9+rpVwEYE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32236,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIudmCRA9TVsSAnZWagAAjIoP/0D+3Evm5DhoE7VnKeSd\nnI/RIjoY0O4YOvJaJw0DcyPz7FrgsdgVwRh5f+93hIbkDCMJ6ZFbJ1KcX2vB\nMdJdazCHkQ46QXymxMfGxFCnZEXs9hspsC5sOPsEySW0GKLAvnr8EBoo2AAN\nk1hKqmgLECnXIj5eBJKgHXVaW+WmKtyKnTRDe7gQ1SxHV70RnftO9poojg4p\nR/llWIxzL9ang72F0GNZ/UpUVKdq48PFvtEh49MU0Xe1Fa1Dq8Uqxmhwda5b\nCmrt6pDSg7CspiGR+6icuSYBXjjC20DRf9mwpnTiNcpNpegwweCNbxnQuSB8\nN15xXTVjEEfJZ5Vb4BEN+7/ds2VBYqO5U0244sqpzZ5iA6c3FV02SY6WlZsC\n24nbyysw8M5bUX9QC1S7u1qXg0DeOSRzGC0b6t/pQ49bZbBIDC28w3dO4NfZ\nQyXh711YOZR2f58coxxwSPf8ddwLhXOvSDmZ1y5hwa1gVnedbASuItLNueP/\n+9WfCkWwtIyds579xmzT0ZourBC4YAt6PKjmg/qfVtmDO5G3Zw1jRDK86AwQ\niKAjV1/MYQIfXcP449FA45E+etkYRu/aMYXAw8l0rS3Icjy2WNr/v0DfV8QZ\n7kQ5EYG/hOMFQjbcCfoYqb6pr83EDRR9AHKiw2LmAR61L7Bd1Z6iCkuIjOYj\no7JH\r\n=iscv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"93488c5abda58e56099b786feecb999020f907e8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.1-canary.8+93488c5a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0","@apollosproject/apollo-server-env-mock":"^2.0.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.1-canary.8_1612900198487_0.12832659602536256","host":"s3://npm-registry-packages"}},"2.0.1-canary.12":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.1-canary.12","_id":"@apollosproject/data-connector-onesignal@2.0.1-canary.12","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3d05171cb6806755349200422522acf825ce131e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.1-canary.12.tgz","fileCount":8,"integrity":"sha512-BPo8JNJtV0dUGomOj46c3vrLel08duUhNj0wAU9dE2lkQtBxapgFpsm8+3EW692rZbwnVrYoJh4ZG5QlbnsN9Q==","signatures":[{"sig":"MEUCIHVhF2/3FKNr59PKz08d3+6Pc1sv1tmSxXTm0o/xBVIPAiEAgui4OYsNw376UK50QIe1qkqsmT0GdnBEvYuBDk9r18I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJS7yCRA9TVsSAnZWagAAIPcP+wUSAzbTofrUF6ajziBZ\nNBUMWvZKjKEL0OW/MtHWuqJPoBj1pVnny4aC9xc260Yl33Judv8Gn29V89Zy\nGbWj++9KtZfPHgS0JJYZK8FoT+oPeKsZ2N0ciFU4hGEDJPFmmr0mKb8EOmir\nAbBpyMJIcvDtYpi6x75wpz1erzXTO6Y7AS+QDiS27uHstcwOf2kPYPlIFCJG\ntxOX3/BI+Eofqdw44rGbBPV9rONnFpk11imYOtZHK57Wo76/qGK096feHErh\nEb5XXYQCCYRFwfVwMi6pJWWGxWMLlYkW6CWMdc2ijZDRmplKb51hX6aq0FaF\nii1OSDp/RoROsC0ntSiqZnl14xfINyGIMqRssSUjiUq4HFsb+fpYJSdjSqDu\n/oftwPAXPfoAn/gDLTO7z+O7gXKNOFPjR9EQ6ErrSvQ+CrgqRN2CDilRnjG2\ntbrDYF0aR7TX/BLw4AAgtxXjzZXjOXevgD6Khbex5Np29bkS2ty6Pm5LaVPx\nEHsyctEF7/K5jvunv5BHPJ/M7FR9MB3F5yldJw8bZ26iOU1rcO56XrA9mB8k\nd/RtQZRb8iSuzfLBNEhvOUElxpR9K2wncWQISZ2hrr9nOaJ3wrOkWfOFLu/d\nQyC/8C+x2v8ysHumsa6i2IAv0ezjTcFQvy0PSUZc11Rfv3tqr3bGLv62B0Oa\n6Zow\r\n=WPJg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"e7f2962cda71c0bd84297cf3408e33112935fb9f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.1-canary.12+e7f2962c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0","@apollosproject/apollo-server-env-mock":"^2.0.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.1-canary.12_1613049586018_0.3538755823803146","host":"s3://npm-registry-packages"}},"2.0.1-canary.15":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.1-canary.15","_id":"@apollosproject/data-connector-onesignal@2.0.1-canary.15","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"011cbda6d492c1b0f057699e35932edc8517cf2f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.1-canary.15.tgz","fileCount":8,"integrity":"sha512-/EeX1BmdIfRkOgRrsOLE+vZiZjomXg/BnoPYOVQ8rx3+7j+ZzQu6jEa8tO5LMUskHZ9RilMh0DCrYpTQ1pANvQ==","signatures":[{"sig":"MEQCIHCXMwK8kjrjXbgj/ILY5pO48DgTPxVvfKxqIGkdasCeAiBdrjpXd0trlqirAnqNdwieslrS/HG3FbecL+UUhhKXag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJZ5YCRA9TVsSAnZWagAAFGwP/2+NsCnyw6MHxC0xC1Fu\nOZLp0mkSFbg/SqiK6cOWXcUMjwEOA3XEQ3NNhrrpOlHcZAH7MshxzJ5Fx2KX\nITgF0kcukmOvNkH1vrzGg/y8aNepY/G97QF705METBPQpPN3QyF3uZAKTMoL\na8LRiRsqb8pDk5zLgTZls0gZDyDcBP6dMzGcdh0yhLX3b9t7+KqBCa08lGi3\nYxtrmYJFp8G8XQTBG4OcItlhilTfl4VFNr3WbkHxAeSjpM58af1td2UczXy9\n/ad19Wjn85487Fyp8vYAXVKQsVBOBZPm5rsLF2PknvpLRhMkLYMZUWaU0Ilu\n38EJ2NJNofBYbE+W+ceiijllRm3Gq5WLddZAMcbBBVXCz37tpGdaLZ3NrkZc\nKizCQtcwFVqOvHoTRlW6URu3UoWIvoE1kWS6unzsyLQ9DqPQcEZFi6T35c1J\nisA44gmKtLW77rAz09WLx6CmiZydikUIuItpkFErR7pWWiEDHc6soI2jEQoW\nBCxGthnpUe2R70KMhCXH/kZApt9NEP0m2FU8uHyDUBQgieZyenOG917ovQeX\nFLNfGtXLz9EfCl/gIio1ALyZ+TWXjbc6TLookG97yqnYPv4PO4XZz5AEiD+0\n9S2+rtVu/SnqEiN1f9AnhicT+2yuW+S66PFJci21J65ne4h1ogJ8cWL+x3Sl\n3TLY\r\n=Gn0h\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"da6539d839b2d2f78871dba674a66aa76a39627c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"hello@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.1-canary.15+da6539d8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0","@apollosproject/apollo-server-env-mock":"^2.0.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.1-canary.15_1613078104146_0.43497652587505864","host":"s3://npm-registry-packages"}},"2.0.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.0.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.0.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"62a04ebc05a57791a99144c477fa36a3d8d4bf60","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.0.1-canary.0.tgz","fileCount":8,"integrity":"sha512-GNkgmlr1a8ph4yCkOe/6gamccvC3DymfmvtuME/X4ZxfavEyqZmfJbJY7ZLnZmpTMrALqBE7qzs8SRIzZ81tQQ==","signatures":[{"sig":"MEUCIHydy16gEfy1lxWj1sVcCm1xH+A8k652QkuB3YtUl9k1AiEA0bfbMqMA45oQ6cBEZz+Jv9O1KN9vCwldkDLPWtlb8m8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJr2sCRA9TVsSAnZWagAAhnYP/0dGc6wyWEzvuTLttbWK\nWffwfCEOa4MwdrH3ctggFUgzLGKFAYgWc5rehvKRwFL5wNPmd4GzFzrqC19M\nYqWFE5Cvx52GVv7jE4cQC/WqwdZ2FGhnXs/VlMnj6BlQl3McQy+OJUVFPGuT\nMn671r0JABH+nGupFo3RmPI/btq2kstL/FXKJ9D9QbhRpEGJLNUEe/EW4PEh\ntFTLFG1qu9gcY3WcvjeugYWpQWjJFoMTjI1e7XNe8U61z5GqpZWoLzMp9TlK\n4+5cMAEnBe+eyFB/7AqjANVVS4FA6C8LDRSeV8X43lj0v0IJMDr3wpCHXDqp\nb54T2eTvMftitNyEp/1TfP8guoBZ8cGKw47FiVzB6+BTZWcnC5/8BA7D4xoH\nSBQCxt+vOvI06g4/Wi3lSiwXl8TQwbUeOu9jQk1R2tJuj9L4Sk/QdQpga5sF\nsek7HjBMTbFmV5vlLT6vW3U74WiKoAsugZHg/r/1YfFEivb6vuA7es5doCVF\nRSa6YDVZcczpxyQmeyMJpHJqRa9+IT1vUVuufVaCYAqzY4ERjxE1q4szZcvB\ngY39xjHmDOsJrc3D4DMfkQZ24nD+QkK2ISsj/NnAkm/uk9fCrOjx2s5qUddk\ncq0z84ixrdIb8CiydM7i93P4Mop/wMoyEaTlQcT8acd/ZIGnBlhVICI1vgQb\nMbDM\r\n=9W0m\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"7c2905a86f080cefaa219a771ec15d660aedf39f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.21.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.21.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.0.1-canary.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0","@apollosproject/apollo-server-env-mock":"^2.0.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.0.1-canary.0_1613151659890_0.21624965155859321","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.1.0","_id":"@apollosproject/data-connector-onesignal@2.1.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1be4f90e101e4159a5dcf6ecb06149e691fc8374","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.1.0.tgz","fileCount":8,"integrity":"sha512-3QkgF7E5LA0a/x/KaCEleKRIKv+z1ZnD4ZMS0Cntj9kEQdm1rrl+PqPolwmr02xNU5pYQzGhNlyoy+p7cFPpNw==","signatures":[{"sig":"MEQCIFahymIqbDE2W/lR3txN5D9VGiMU0+22N5WpycMC5NJ6AiADTMRurEeiK2YliuO+YWGUAZpQ/r0HWhLOUDsx+8qW+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOS5gCRA9TVsSAnZWagAAcCgP/j7h50yXSjlXw81ML0a/\n85nKTvvnVLwliIqryvMTnFJnozN0VeE/bxtMCiREI11zDhi1Ze3D4RNjVHLb\nyTS65HqpqNKeX2EaYoV3++7/t99VfDPYGqSGocKfYCgUIJDeKo6nzZ4F16Fj\nVviONi7KzmYQp75V1YszgwF7oygnAG2HvL4FJsSp9venkA2HyGEZE+2Avk9V\nIMvvT148c917EKwoqlDzMNkD18to1aT1pL5NfMS4Zw270f4mR8K+a2jNQp1R\nct+mN+VLNq4LWihVYvkZAb8Ip2NOemTWXcdWMZyBTzeQuUJfBGjFSaqf43UJ\nVQEuvbyIAKUpLjY5OOndv4KLjQWgh/tuCacepdNLlTL+T7bGgTDAfuPlMS6u\npjkEtTZEO2V6ax0KiR+vSc7aCHOU+jxQ6vPO1C7xvlIkotqEon9Cq3poRf5P\n//15rrGXBgYaAcSQLTLohQ1zeY3AlhHIISSmUN6d1Reu3CfQ0njJNBChFjR+\nc7QXZ6r2XnY0tiNAkGcAS3Y61kr0Qpwoxd4l686bWIdjdE8gMbzbCDGhBYYV\nFaIPGy8kKiE+jB2pqnYJOm6ssuwqa1dXXcYwneEGvKNPLJl2bi90uKUQG87n\nWksai8uUOtvdbT4ucfPz72NNg+MyHZQWkKAN1xyX737MCRJt2PdgAHxesQlW\n+9WT\r\n=Vv4h\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"cd31afc4f65afa92a8e2359d64c03f03f0861e95","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.23.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.23.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.0.0","@apollosproject/apollo-server-env-mock":"^2.0.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.1.0_1614360160162_0.46955541857735006","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.1.1","_id":"@apollosproject/data-connector-onesignal@2.1.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"hello@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"92b2e06fb32db8b973f6577336500815c8a700b1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.1.1.tgz","fileCount":8,"integrity":"sha512-v7sAnJ/9cJ6PXBumF8Bq9dqeWP8CiRsULgfGNXSMHhLxoYonLUCCHNfLJYOQfKC5LIHcm0gmxjzgMy5AhvwJsg==","signatures":[{"sig":"MEUCIEGetPzynhnr3AnDVgYGV3fsWRVwUsbAkU2jkcyrSIRWAiEA87S0pVQXcSiJA2iJW9nOdrbbOnEqmadERSb3TJtZ/D8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgOS9XCRA9TVsSAnZWagAA83kP/jnBa0Sbws2rwov0vZAo\nlTMJtW50X8Z7SrPIliUXzH99x+5cQv2x8SeWps+4zhR3vF9egyqc6J32/GlE\nKaU0oKtzioDsjyKHGACPdbE08g49wrUAs1cHieareJqUZd95v4Bjb0bGZaE8\n7mALV0+vZi0JZ6X0cDN5kmDMit7ATEtJ0FzjhcofnFsRfi302Ry4rHV0dRam\nNYSip1ZBk2CYmseQWrGlsLFtClBBpbVEEoLFw8EyNw5A32MVWi9DJ+WxEnt3\n5FHahg5/qkiWIaLb7a7I2Zbgn3Pivf7LjAqoCr2TQid3/dDAdE3/RooMmc3m\n3PybbjDuUjpnY8tEGmjtkeb5EtCASla7FVZ0T9FxUlEb5Pidvp5v8kayXl0d\nk8qSG8F/38WWlqcTZFFHtYfpGlt3m92CnzedMFtRoDjug1kFdZC7ONUh8Zfe\nc7rr0QYYexVbgI3Gt7Te6Zf9tUR6TQszZ3hZstgP//W/aEvtU+7O+3QEs0YK\nHWKB50794/b1pR5JbmK1laaF7dmZyzVVy3OU6hoLRLQyfE9Vyv2mf3HVHrJc\nHKr/ULI+TXFp3EBmCH9ty05TwnCTIMgB0sH5QuLWZhP/cDCvMvygLKWRUuwl\nfYqjZ+kA3xdQkS5rK8AJ8GYJ0mjIgVyS1rXtirWzr0uDA7nA0jx/WiuI2fKe\nwH/O\r\n=UzlO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"d83599ec4714d6b09ede839da8394a2f66919099","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.23.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.23.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.1.1","@apollosproject/apollo-server-env-mock":"^2.1.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.1.1_1614360406561_0.6402184102310857","host":"s3://npm-registry-packages"}},"2.1.2-canary.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.1.2-canary.6","_id":"@apollosproject/data-connector-onesignal@2.1.2-canary.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3099ade50678ed0ef45b502e572a91193c106945","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.1.2-canary.6.tgz","fileCount":8,"integrity":"sha512-3/Hafp6pWPxrLN3rnbVRIURlLU8/ypyujKWwb9G7WjHcx8xZzn+JhgdUn43foUewCfw5IusEOnuERmFBuSfiCw==","signatures":[{"sig":"MEUCIQCGXsTcWiVjrhy1rbPH3KD1YTO2sjUwkMOSEVu5WzuGuQIgG4ViQ3+/PZVhdbcLT5h26ZJIWigvcs3rlgqjmYGBNKs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgP8A4CRA9TVsSAnZWagAALd8P/0jhbldZRupSLFbHsOZX\nqJxz3yNzPqUOTaKBSSyZuwtlxbGlD3FFAf0AnNxFg8R2hyQNtrs4/AHukdNM\ncI4XxAegbTBSwVeJm01N8CFqObg0ZnlFXdOgf21Mi8XcXp/4jXYulNiIaUKB\nXsmbgraArE6aFwpBwcfh07hPokYZ/cpKZjBTAqQuAdmZvNYUvCMGfefYoZ5v\n9t7HZ2ixYvhO458u5ObwTvHlRzpYcE4QGtqRmotlSCoBIQOf9VYL1u7aZj/d\no6NSoP0uSoq0GGI3qqufpUcuD4czG6GAAkNz8HvGOVnmQuhWVH1idANwlFQH\nRt21nPh1iMVmnv3CwiTDdwE9DY+eslmcZVmGnkssuwM/kiiUkCNrs51tV+Iu\np9n8po+q1NWag8KllyuFBYeC2SlDaXtaRWElaqzsJqpEt8ucHh4fo0RGX9+D\nOVVuDx6N4UTlkISp/hRyOpB1SBzS4tsgQjr9dOW9sOXdWYGgG61ZbfNyUZ5O\nN9PK7OzSZExdngjkpmeVOdNvlUvMlCLDM6zgVbTHsQXLOEX0a9hdI3/hUD5Y\nNamiFGzjZJut8R9gSpIRLRUoVOKNaxnyjE1O1ZGtb+supPtx6pyNpA5FZISg\n8xMy+SJAiH18KY63YlqZ76ZY0IrA44UUPOH6SuEOV2t6bXAmT8bg8KjsCnrO\n4A88\r\n=kYrb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"f87a58443986ffd2b8dd4c69f2537200f6c81804","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.1.2-canary.6+f87a5844"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.1.1","@apollosproject/apollo-server-env-mock":"^2.1.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.1.2-canary.6_1614790711864_0.877341370526465","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.0","_id":"@apollosproject/data-connector-onesignal@2.2.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1bb32b157f18be63f8c85a45ce7d06db5c0b2ce9","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.0.tgz","fileCount":8,"integrity":"sha512-/5Wxhg1TnfMJI9LqDWJmWF8gUJXrb+IRyqxPdv08PgIVbAfcFENghQxLg9Rw1UeXkEC3YnSVzA1foJzDylCZ4A==","signatures":[{"sig":"MEYCIQD65F5+NYj7P5IcxpxuOsr5X0HisdyYdpOnxqS5vEkw0AIhANypD/gbGRIXSf4t0ZpFfBDT1RWQ7hWVsu2y7x3MhyjM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgQSbZCRA9TVsSAnZWagAAsa0P/R6NPGw29B0Id4tCjVAE\nYitadtcJZjl1NFDpxPUU/XirdmaDWSAh1LiiUEzlxRNIaTcUUGVxdpKONgaD\nFHak/OdNS9gb5AnohigezmxKJlVXFw/gbJNATfPGLdgbvMWyUsglFvsX0RWq\nQCN/hU/GjaZRc9S9ypJMjd7AQKrnRVEPCOTh1uZb30F4UYRqDRTrrrFEDlpL\n/80Y9DRoVQSJkQIzmRAUrGO4R2+94tYjbD0+JRnHPRioX+dCA5LbE95Uu1T2\nIijj2mWwmfobJ938YjmLL+DpA4PE+QyuKW/dHA5KtJLUu5ohx5Ft3eynm5Hh\nroFrqBIIERRqfchzAkgP1OBqj+c4dahCAGiW+M6AfoOinMrMCH5QFNqoL7mC\nYkZiT3Z8MOyHi8Lkzm6ujbccOwXzxZJG/CoArbmEAQMTxQNgN4vMQyFPasGD\n2IZGWoL0mHdKNbODPIRiZDKoGmDXqxVVQ0i7Te3wIjN1LxLqRifS5cukTqQ7\ndvzpNf3ZWt2ejUAtuCS/M6T8n0ExzDmwXMncWYdz8mULze/gMJ7OAd1rFv+l\nnUu8d+wai6xjgqChWC1tg2AvUNW9y/PZXWBuW2zig4C0lTLPNzlVtSbq1pL+\nNBLXsOaIUMpifU1y9cTo/j4W2ypp55NTr76ge8FKpo1qOp60ZsktNeQkh1qy\n4xPc\r\n=Sldm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","gitHead":"6d528ddc8fc6df84a3e2e85c1a0591f23fb1ac88","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.0_1614882520597_0.461950222721385","host":"s3://npm-registry-packages"}},"2.2.1-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.4","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d698f2a8b373ba5bacd9b0a2966f7b8ad2374155","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.4.tgz","fileCount":8,"integrity":"sha512-5ii1zRIMzpVWP7Pqjop+mE3C4b36WVNrWBtVBU8odbqhMk6F/blk8LG3mIMK1+Swvu0BZjewblm1rdSTl4iUyw==","signatures":[{"sig":"MEYCIQDqQaBXlhjLvvb59nnmN1JUbIKxFHjtqJpL0WJj4qn6RgIhAKoQ1gZ0U1SVILSiZpEVQTpuYDRK+i2Dx2ADS8P+sonD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRit4CRA9TVsSAnZWagAA91kP/00R/iymByDnqmyIr9BE\ndMh8qKi/v1Yg5X26n9LaUMVd8h6SYmUXDa5OTD/2AOweQBlck9g3FOlx/KBc\n3rx2QiKO4LSu+77N2sm/p3Z9ckRkPh1WKp7a+Z+EX0Io68XH1WwyVmasSZls\nrjCmRxa3Af9VA0+Ct97NSBLle3ts6UvkWkmh56V7xdNWfM5mK4i0JdH4oApV\nwUQZqT1kQ0YIYsyZkS7MPTVer1vzVeOSJ0gJtvqXxPV+/AgDzeD02KJX2X83\n3ZdKG+BmV/8Ipy373CdXU0256SAczUEOe3GXpMdq/7ycdyHoZ4bQXvNJIaOt\nDvSAT56VjQ/eKKBwlH0WflRjXcQrmouwOD79i8p59v2NHsgotqUZ5JUOT7gs\n3HDFQ+/eo8gCyPihMlhuGflpgohRcVXRz/VmUauHlmDtJJ2wFi7s9eiZFTVH\n2e7PC4NdQAiEUJwCz7BeQZ4rhQyhwLbuXVPGwj8cqi0hMgp9CYTyj9hW+uhk\nYa5DgVke9czm/uLk8FH56YXRxDJTwHpADME/+ai0Na05KgBT1FpaPAVod8ZA\nkGXRGE/SCUCXc2slOuDWwB3hXTDLCjIBB26k1GWJ+G7eXA1pdQhGBo2ad8em\nRr0vDPTLnnu0k4ekRJVvNjlwcI/U/WdILwIHbBW/SOZgCYedKrbwWIsGwNje\n47K5\r\n=6PVv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"804a0a7c98e4abf8cc7aeef548d1735a9d40c5f9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.4+804a0a7c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.4_1615211383477_0.4444189583294573","host":"s3://npm-registry-packages"}},"2.2.1-canary.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.5","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.5","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0096210f842614a65683b7a2bb004e99309819f4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.5.tgz","fileCount":8,"integrity":"sha512-aFpPCj6mk2UyrTqHtgRedy2mBCc2iLa0ivyzlbJLWf/0iuls6BD7j4q4uPxq3AiF9Q2Gs3kpRm7elvddJvVjYA==","signatures":[{"sig":"MEYCIQCQCcthKMPbQCq3AFOUVaNAGD61hEecWpNV/VgW1svwWAIhAL9hv+RB6AMVny9o+br8JOi9jaXs1HOEoH1LCdixJkd8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR4KRCRA9TVsSAnZWagAANwQP/jt3BpzK6l+ji1OWimhS\nkjW0KsRXl3H6mHRPgVAenbgU9tcf+blhJGcRJK8ZI5xSdFS02UrFmM4dq2QH\nExvA8s5w5+a2QCDkrbuJ82xHRm1z6X598u3aR+lDfW2otbG6AN3RM7vPtG7S\npXP2fgKYQ62HNXo0hbIH8LEscH3pnLRIUA+fQPjAK3CqtUQ9K+UI3OnnwirP\nqS5Qw8JXY566Vv9HlhC7QrGrAS9idjkeB0epRkY92s/eih96WI2Lm4H7kO+1\npGV9qQP8DH5/91xwRgMYw+NrxjVgf7UDqqmRg8oLF3mbOTujJpgwvZyowZGB\nVvWMvzMCmyzCEdGPrceCtC1A6ljsyT7aGDBsr1S3cJsNMNJ+8o6uvhTq1eRh\nn+sYFAwbwUyVdZljrxHdAGmK6n93ptHA/4cOYuc9yGd/J7C6Qo8z0QFS+4AU\n2BqCEfaHBOAKsrlm6RS10L4+jJdySMdrS4ia1FyO9soP7+zbXB+nrEyc/Qu/\nafdaEtnakwKobQYJv+N4aKYU+3akILVCPhIBMgM2JuLGlvjgVYQMGvvMrULK\nUiAl92+TmtuaCPT6+z/a/P3Dj5WEdzDyGPVQiwFr7oggFnrxoOHCWsNrC9g7\nREluWJ3jrbYIqwTklCXIae8YJXWcj/dTx+whiNoABio6WIienc6kI2nDX8bv\nleJK\r\n=118T\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"c254c5bcdac03c840926da53b19eeba9ac11e9a5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.5+c254c5bc"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.5_1615299216787_0.23466852922644743","host":"s3://npm-registry-packages"}},"2.2.1-canary.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.7","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.7","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"08f42b315fe03b88663ed55b9328bc3e42a0d938","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.7.tgz","fileCount":8,"integrity":"sha512-OE/7OszC1thyHmK7pEy7cvifTKMpCiXBM3h17ZDL2XpcrAbXF9VUebwXPgB0sVnULw9RFFrAdkym1RsW+ty8MA==","signatures":[{"sig":"MEUCIQDqJC/V1URkJXNI1ZAbJ59DRQhf0W7YZl8YFQ2E5xU4cQIgbZfuLMjKaKefDBeoOHOiUfv7yxJaS0XSkjmfM0h+/gc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSSFkCRA9TVsSAnZWagAA0T4P/RETNoN4nvOF1McMYiKg\npy+nh/W5y5dssUVj5K/3WORmPXV0CdE8S60VN/Zjmq/vwoAUqc5tr2mQDHP7\nRMtx5iLLBqhal8tthJIinHkXx9IbO9Z/ECfmNN/E19+oiMYJmA6iTO/PWURH\nfFCexYDW6sZwqSNje+qjlliBu5/DJk/ltPRJpsC1FNwSNN53FkCwNOMP65Ws\nS4ZB71YHTZYQiQKtIeqzSXSqBALKtJpGwgH6jUngBAWQsZ2t60wXl3kTa/Xh\n4ZOd0WvarSAgvPOiGR+Z86Jy+2ccUlpmtGfImOOXOgrE53TWmeu4uindseLL\nhUjvMkExEQG6td/r3laGvzjkxnf5INg+x45Bc8sF/adUgZW/HXG9UQhauGys\no5oiwcddN9IZQGt4mM9yVYoz8YhAGS5tcqZrhYbTAeTt3aSjj0tyl+/HRk1B\nt5CNZIkWQ+YomKTuN5zd6bDfZSk0lJic74n/TQI9yzSuZy5wCPVIABBwFIht\nldeakrentjVQUGJz8u3GQ78tqYuID1WkCGxdF4xasHepswaWZVwq2A0tlFP7\nfQyGZaXL3zBqNc25hBWYFYdfrBwPTBwSA5GNR5ZXvvfW0idPedpT0Z0ORMkz\nzi99VJ08fn6RKBzYuYai65ST4/nFdl1GxBlkj7HYteGF6eC/hmAuZ+xnJqtJ\nkSjw\r\n=Qmbn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"3d3d1a2ee014e68abcc2b28b3677bacefbe1cd49","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.7+3d3d1a2e"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.7_1615405412167_0.27084000704009026","host":"s3://npm-registry-packages"}},"2.2.1-canary.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.8","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3be258c512f19361446302160e0a867a0711b5e5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.8.tgz","fileCount":8,"integrity":"sha512-mVx2pN9aVQ6r8QKWgXFEMbkQI67qnaZhGmM0weoYwQGZkQpnxsuO7Qb0eMZjeQGA79aTIJqW+3C/tyXwgGGpHw==","signatures":[{"sig":"MEUCIBmU+ONetneyhlQLpJN90ybDepOMempYT8RxuqDvHGWlAiEAxUqltgle7XqhR8lzPXzxu8nJML/j6eiv2A99/EPr6zw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSSznCRA9TVsSAnZWagAABFwQAIrgYB2VAw1wNu+EXs4P\n3Ff5FmI6cR/UuOGLqMqutSWjQh4szlnUVks0xA0QsBRY91PtVvQLPbaU02KU\nU169o/q/oz4XHu7bx521imuTECLQaXlv9bmAh0ovxpw62kXYevNKh7BYA/A4\nV8yORUg3qKnX93R61kLty4obtXmmWCpzq5U14OpVRYI3+wF6y/xFhrrtFElc\nJDWzI1DfR3jPbTz5DAuEL1WW68cRgNsADR6DUHIJwhNqALe8VqZTrkE/L24V\nAH8EiYtb4PfSwnYml6Q6LfOMgxcVPPcweuv2c73/+Bl4Wf4A02AALvQ+c5p6\nPWQ2oU/lDJYCVcGiKkha8/G1lRl31S8UINZfm4NGSC+2OqEqvMmDUBBOUxmJ\nvFBxJxklxvsFcFLnVBqCso6ZQwjKysXZYqT2fBNpOOoMCNSmOarAwLszGPlC\nhpRDtnOC4tQoxpnjIA9qeLzRklotUgW7Ercsq2O7yJ14AstZfU07Vj4lhk/m\noQyf5Tsmf2zuLadr9/yR8gFt8blDBES7IJVbbOJ8AIlb3RTN5gcv6o/mc5Ko\neTWqlBczfNRySIMdpq0BgH8Q1VuYUnE6czPc7GlWCcYpQEsDkNVlLMfOqIyR\nzXVqALjfqpPvKCWaOzy+9V2e/lhjyAIFurJsLlYJwh87WgXw0NGzubml92kT\nfMbp\r\n=yyrB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":"10.x.x"},"gitHead":"f47ac2273016bdec57c610bd73a7041cc226f618","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.8+f47ac227"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.1-canary.8+f47ac227","@apollosproject/apollo-server-env-mock":"^2.2.1-canary.8+f47ac227"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.8_1615408358587_0.5492069174898264","host":"s3://npm-registry-packages"}},"2.2.1-canary.9":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.9","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.9","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9934b51605fe4f1840f6a771a0fd4c6b7f45b551","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.9.tgz","fileCount":8,"integrity":"sha512-77HpRvp9HCRcDbBTxaPkHX6tb+zj4vPB8g//ySVBGJSiVP+uKh3rUZdHEUcmIlZ3TZL73icmzyw7CmINf5AScQ==","signatures":[{"sig":"MEQCIAvM4TIr6o4KS2xT5LfmV9jd/2ZrDx9duGbRp9Mdf6CaAiBV0z2LbI/JnGZl3XfR9bCLE57a6CNoBdfStYPASZagXA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSTvtCRA9TVsSAnZWagAAKssP/R423KFFxn9CyAaCtrTu\nhowgGxzYm7yotAJgh9YvaKRJyP+jEhy6QIpqjFF+yasFgr5Pwv0VXeU1qChu\nmWG6GxBxroucbzIGhxJuX4kfS9Inua3bHfqeyQaSE2SZ2wtxGZDYI4sFW7uW\n1NU917sLKchQ6Z5XSn4ps7c8XEkRN1/itzeCqh+xD+828FDDmQ8q2o7vIemq\nABjpwNsdO0Neo3SmBXXtkqVyCaDXNI3CDqVK8BROBgbJJBtzpGQ5nGW1HA4I\nZfXY1k7dwdTyf8Tn/NeRAduLvjpEuSQ9O80ZlM08G+/V4aFxnhF/UBUbnVVg\n05jO+PexgK9DEFdtvmqTcNHU1zWRl4JlZb3reOrYS07aeQW3cok/KbBNW2vY\nrMOWeHsAFhSQMxHZuj10zLWAsmsk7y/bhvnMSAazvTExI41iKWVXnf/0r2V5\nBq65+yNrczV1TYek3shEodMOjiNSQXaFLrekp+hKdiHWAhmwpTVqM/hgEwyy\n9VQBvB+TnFQuES2gktXlyzH5j6Uzh3e7ZcJ8ySDv7j8IO7Ff9epyjrb7x6e0\njTkxOblVlf6b/kNUfZGWnTfrc2UwfK2UzwWYFumIMRQnLPNXANgZ8wFKhEzx\nATQLPh33vbS/JT3ecvoovg+rXbt0uLf0SsEbls5Iqb4WbAQ6nyYXmC5OsN5f\nu5lb\r\n=cQTP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":"10.x.x"},"gitHead":"5f3cd78c45d1e2588f85dd5c6e6f0bba4349ad0f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.9+5f3cd78c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.9_1615412205369_0.06256443650703258","host":"s3://npm-registry-packages"}},"2.2.1-canary.10":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.10","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.10","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"cc19d2204b5e8aed3d03c97e46274f6b1876b8a3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.10.tgz","fileCount":8,"integrity":"sha512-/pfp/RRRvnY8j8iWMEHasZU+MZYylluRKEJuqYa9DZWVlbvy/0IEHLUl2pFX9yUyBEwEKiLPGMTJ7fwGqGYuBA==","signatures":[{"sig":"MEQCIBZ4KyX9CurAowsQLf2K8wUrE7/SnlpAOom6WYbvAKFeAiAKfEknx/HcOVUU6na4HZR32LiH8oCiqryRKeGOqrVa3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSjf0CRA9TVsSAnZWagAAb5AP/25ZXZ5ZA6lHLdWul4Vh\n5J/L/CTJmXJeMT+iMQV/GBGO/MlaC9NRClu3A1+qlQypuPFi+GIMDE+QGsG9\nvXfGWaJT1RhOt2cazrHxQXonBKzbC19CQud/4ExMXp0FXeyC7PSuEUMBAI1y\ny0GRSjgJX42/dmBT1qqgwofkmSSNp0Fa5/jOxRt5DIMNCXHL9ohPhV33Cwdv\nBBxhN8GEL0/3stj8WE3ZOUdNC7/VGJQbjriNk5wlNTpYDxc1y9/DW9Rww3PP\nNmCfKIiYNPBdroJrG0TLwa+M6GER4/S/ExGf8mGw/LtdmmcUNnZ+ZsjyzfEU\nCYDI8O6e7jIR0raItGkdcPy2ElE6ZvJJ4Fk6NIxEUdzo0mtoNGPRFTyNOEkd\nSiSiMZ9Gb0Qi6n//+pPw3ekyS840DS4c4KTNmpbMOs46WaqLtQ8A3/lxRIBf\n6WIq3AjeCoeYJH1Q5BzY7Lk9BxUB37YfQOctSTTbkDrR60mRtKA5bmI4YWkZ\n/9qkjOm6AS1CJLFpKWMvGq/hqX8EQJO79aMaGM//KF2JAFW2LU8JSNUAWmIg\nEoNYPDwqOg+Hyl3vx2+ofQohtts3D5t8PlM63CBiXVzcHaGx0iNZ4V/Yk/7t\nG/VkvwMs1hw8ahqIpGAcvJ9Q3K3pHeM58DNvVodtHQSs82NvTOluAdzpnSYU\n+fXs\r\n=DzMG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":"10.x.x"},"gitHead":"71fcf373bdaf06af9d3fc956d2b95f9e5f4506a2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.10+71fcf373"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.10_1615476723777_0.7647347134151952","host":"s3://npm-registry-packages"}},"2.2.1-canary.12":{"name":"@apollosproject/data-connector-onesignal","version":"2.2.1-canary.12","_id":"@apollosproject/data-connector-onesignal@2.2.1-canary.12","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a5e4ec73a9fdf30cdda48b711e0c754d394b4fa4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.2.1-canary.12.tgz","fileCount":8,"integrity":"sha512-NB9mRWeT1aAL33XecVW7P02J176DcpB6NdELz51XyOjoqYi5vShWIr7SyrdLufacb8VlXu/o68RRRy9+Gxv2OQ==","signatures":[{"sig":"MEQCIGgxj+xBiNHHb3Adw9/2pxs//0/6/XRz1cJznkoR2npxAiAEPsQfghYtAUtaerd0B8TwKaQkFT3aNHDzw3Ib6oOmlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSl4KCRA9TVsSAnZWagAAM4kP/3Ijv1OO9meUPkz6NLCU\nBijWj3uxOQ+Zv9LtNvnQs7IE19aLkoBpA7ZQZAayoV6WaF1eFduBdk9vu9eT\nUYfp4tgUvIWCoRozGLAqaAmnouJi+I6U8XJ7INEVnh1FVB0CJo0cLK/FOtH5\nMGo15JFom++Q3Or4rBLev+fqjm+oKW1bJnG/qBrTGEEPXxs8yKoHNyvCSu7c\nMxl/KAUmTWmD+GZ/hYYBmHOY9Q+iriyf96aQArsxW6NskVszOyIXb9As3M7T\nd+trA6jAqS5qL0+FlMIejlK85fwzqAQgcMYSAfZvSbNMeGmjOrhtTjg5D0dp\nmgIQGN/s9SxTHhZvNJCec9zm54d2T+8aTiVAnXv8qylaS747XEcFIiQVRWLN\n/a208KT6HV1ulprGnAicvZGI1CB1oZKuHa5bW69e8p6EAn+MW9XGbbceD6/o\nUc+quFE3iSh9OE7uAm7wCe/DKvSsztR6jbkkUp0MC0ZX43Ztaz0QmJDLn06y\nMP8KYqTUojEhLM/mvGL46/BHH6ov5EsfkWm+BUT2/9uMy4DA9RZRGleo3c3p\nyCIQhaMsCeNUWXEHn4c9YRZTMS5CnFyzOHi4Frnqj236RutB7xZyi8YsZ5gs\nk/2mMfvHRPJyNCAZTjByP0kCjZtBgvhCxKTkSd/rMEsq0KlVU9sxvaovXrHh\n2Ju0\r\n=diki\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":"10.x.x"},"gitHead":"68d042de2999aa466f7460263db6ec273cceafe4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.2.1-canary.12+68d042de"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.2.0","@apollosproject/apollo-server-env-mock":"^2.2.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.2.1-canary.12_1615486474270_0.1357679228729889","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.3.0","_id":"@apollosproject/data-connector-onesignal@2.3.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5097acf55cb7c12998e07eefbf3dd007f7e9e67c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.3.0.tgz","fileCount":8,"integrity":"sha512-viOunviXwXg2HUg5U69aOMHn1iEfRjuQJO6YpCVsoYpyog5wQ5jr/btcYZ4mkBxf4TFfW7+jPg8CnVZleXwGaA==","signatures":[{"sig":"MEQCIACRt+ICUu7TIYCgKjXW6KoNQwuUGqPe1w8jy3wFahehAiA+fUAghoYJhE3akw4Zavt12PgXhBxpBM0JTGaBK6vJZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSmu6CRA9TVsSAnZWagAAMd0P/1Vtw7nR2rUxicn+D90u\ngt4Xes+SA/QnEK9GkTHV20Yz3sBwBdztLYxCSGpmcSMRqDIH1zw4jKJC+CgB\nETSqxyBFINyxTdsdCpfRJfYHIHiYL1jzxtJATx1mPPXOhejj1PalZddxSSxR\niPIEee6iJ0TSM9TtqNTDKySDO1NmkPm6Uu/2qdvZPDaz1BgerXP4N4IYwC5y\nPALoRtECVFwNinEQS4TZThPqhQ5d9u+FaJP2mAvepAu8LUtvPIgd/0WMzfiL\ncoCeAVG9iPpTgOglY500x5vkf5X0LOVt+xiQ7stcejGaCoksJNahSxcJWCFE\nwvDTMc5yiowzawB22cVKA1RtpzSTw+iWLz5vcwAdSxhlsXHBmfmYt0SyS4aR\nWBnGuuSbe9I8/JFkPpkL+2gt+4toh0PYmsYXXApnL8wyxYNyqFJ+0s18Bc4f\ndxpK+fx9v0+sTG17ciRzN3ixDPYm1qkMNaeIJ+NdWZqXKm8NB0XCs+5VEDp6\njv4Ja+6244IX/pAArMqgRDUZrODR2uo1oRBJt61A19zpPEJY+liEiSIdAdHh\nQ/A/W+bBaQzSZ2tPqvNTgGecJe1glg7yXnRWjMSAuNmIjCVvQucSLBrb0pEz\nsS2Dj05+ZiAPy4ifNJflZ3RpFBVY99opQ1Lhgv/H4umsxXW8RLvV/iDZ3K4d\ngqlF\r\n=NW9D\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":"10.x.x"},"gitHead":"ce1b9da4b0d172ea96e9c903106ab4a4f877a7e7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.3.0","@apollosproject/apollo-server-env-mock":"^2.3.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.3.0_1615489977608_0.047256985393090645","host":"s3://npm-registry-packages"}},"2.3.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.3.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.3.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"480d2d6bdffdffe789872c8117d20f8566194a9c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.3.1-canary.0.tgz","fileCount":8,"integrity":"sha512-Yz5WbPPlb5t3Zu/puwR8ZFg94R2wl0ThcMay4k+dypFxQR5slknZyC2M3Esc1ksi6icYgavuDh236jUF/kndNw==","signatures":[{"sig":"MEYCIQCCjlOT0bqw+RzhmzvUWQSi10bynDcnBZZl0wIg4i31JgIhAIAnmo16bPkq4fLMNEjGZo+5Mv73AOX1w/vO8JjFsxEc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33967,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSnWsCRA9TVsSAnZWagAAJ5wP/AhnaaMv8O/ZvQpg/CqU\noVttTwD8LVl5Ynl4ONHBgslyKOK05Yq4wTP1bdTW+XrAW2srFkvcCBckIPOU\nX3rNnSuo2O21ekiQj2V1PwLu1StWl3W5IX1V9zVV+V6CnF8EA6xY5NcvWGmk\nAk13AMQZa6gbz9yIU0jWI8bxsWr8eDKnKQHqBzFdPhpDAE2btmeaW7OgiXbB\ngVwPmUfudlam11W8q8eZmDZX7RjCZH5G8qP+75l6BLkwdwnjw5+Ewnz0BCqo\nrLa3oECvTLRNQ2g9R8tbkUP5GMc2RRPUF6K5MyvGTetJTYiZsZQivGW9cywb\n90kMo/yk3Gq29VzdG7XB+V+xWzEM/SITrW424MtXqBzbl08fRSsPp8oi4+oM\nmng1nMTX4MBJYf0GA5+rywg1/ei3gTm5jiNajX1g8/yY7WLIFMwxkfCsR7zL\nNjOsvUi/hgSjqA/1QcazFeBS628Gf6JSCIDQjE7uQ3x7gE/6BZKY/eHd+Bs9\nPMZSbkPcMVqAI+ng6fsNxZpQ0FzfzMwxNuvvm61rW82Cl8VqMQmTG5PLS11U\ngyw7igzuPRlGgUUvO/OchLiqmD2kFduTUUohLeuwSJ0TVigjQTC6UmUMEGX0\n1B/eE2fhDfD1duoWKSbni71An6Ma+pI1S3JLgJ/TfJODHO7EL6bL5NE4wyUv\nbJQB\r\n=X7v1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"a8df2ef39f7437e76becf4f9a3ef96e61bf3e76b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.3.1-canary.0+a8df2ef3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.3.1-canary.0+a8df2ef3","@apollosproject/apollo-server-env-mock":"^2.3.1-canary.0+a8df2ef3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.3.1-canary.0_1615492524221_0.16518454203215827","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.3.1","_id":"@apollosproject/data-connector-onesignal@2.3.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"575b28a93f1a9d48210389e74a014dc4a09544f4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.3.1.tgz","fileCount":8,"integrity":"sha512-aCMdT3QMyWhwLfS7YoECtiuoHr+QvBG1VsYXyfzphyPs1tjyMeIt5K8zsl8quKR23P+LWBzjSTqU09hv6VSmXg==","signatures":[{"sig":"MEYCIQDtaVd2IwvDeCeHjvS17MgxBNzdFhG+mFFVooVi3doKmQIhANLeBPTjv9rrRypk99Mm8eqfLLmEe0ujgYV64RMwcNW6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSn0SCRA9TVsSAnZWagAA4isQAI2xwh4vRTdl3kHDAnSA\nbqGBffNZSCaDyoBMvPlObS/W1tm6Ke0JFSxdemjxuVmcRh00yM0OWDqQQgeA\nKBfmCHCE5cFYCAgu5rADQ0rcniDzroFrNVq5TC0CA0ftUDbpxQ32Ckl9oaGd\nOXXMLLgRZSFLhdUcU9kDJeW7Wqerq8f46ff4egk6OmmWPND/1P5ovy3YnM2L\nKrQES/4hMIkRu+WuW9SBzmREFdeXZHIfSSfaVHWb5sDLOh7A4Gl8bkgEPpig\nAuWgGLMMqij21dCaTiN7x+G4APil2wM1jmIlXf3scWHmFeCQg6+k/5CZm/VY\nwH/mKsDcEn0kBlAea8X4F0YeaahgEyJOoh0FgmSB5xG3ASMUF10IXbC9Wevg\nT7s6DerR5Z40fWr1OSHL678YWbEiAHwPVLa8ZL+oiJwRKAaScwVIPh3ZVt6K\n59jq/Qlqxxv9BPG5JzV7eCSfAaJJqFv1lMvzjl4lt8gTg5/MnzUEGVbQNdnX\nMOzWfCycxoqzct3HQlYWV2p1d8A+1Ut+18AyqlxDjiqSy+n5C2L9gY4t0a4c\nkQ+7vTug0e3lnNUKWHWTpf9ycGDjvlnj4kKlQD12W7C57D+2qklPWkpzM55H\n5JwNhb7XPRUt/celgQzLFfYgLrW/wKGyZmPvk6Rggk25W4X+sTfliRsSwvKV\nNNGW\r\n=/gii\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"e0cf6a9ac9d837cd1c41234f12b11cda9333aab8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.3.1","@apollosproject/apollo-server-env-mock":"^2.3.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.3.1_1615494417634_0.8890302460070261","host":"s3://npm-registry-packages"}},"2.3.2-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.3.2-canary.4","_id":"@apollosproject/data-connector-onesignal@2.3.2-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9735a59395598790055128dcc5413a80fd6b02c5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.3.2-canary.4.tgz","fileCount":8,"integrity":"sha512-gbCTdo2OUtQJzC00TYZv8CMbxkxEprRiGhKXv7hFkiwjrMU9PtbQAoXROa9WdPFTb1dToTpRf4tQwu8M6rLG0g==","signatures":[{"sig":"MEQCIFsQETJ5wB9uG9iRq85Z9mJ8CsKUnDYBkXhU6s2kLv1gAiBgmsHeaqiUPyK/GVkyOhB5t10ATcjdEJr/S1Ca98LTSQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUMnvCRA9TVsSAnZWagAAYtAP/33qCnhlBQ6/0AdQ1ftr\nXAzPgALJ7NpVL3aEOdoRcqg+/ueBfue+UTk+iGy0sw6W241BaOE7ZW33LC/h\n4I7qQDfj8zFCcdRBsLM1RrZD6Xox0mF/yPY7Y8KUA4Tj9DAu07iHXQ9J1eY0\nympRiB+Xs5rLp1tAEG9/BYXB9AmccrbWeucfb3jJWAVOfBEi9NN7cqnILMGO\nNiUXuDgdJLEXXcAs+Ajphb/uXn28BtV+vTKikRDR3yY+nQanmYC450CwYZK3\nsjQNxw5zF/OlEJItm9RsTEQ+w6hUPvPsdPnuV/3rHcACWmkl6nojoGcSRC+b\np8AcIRRHdBzmAn7oZNovZug6ELpxP0v7euttNk+NeyZP7agaDREEESBQ9sg9\n2wzjUxhZDO07dPaplEBhZQcC3afqKpCgHFatxI5ukKZuOwiCex0Clos4ktkG\n5VtmLdZj72iTc/JFh88xz3wBwoozOLYOcYFdwADHHoD76AX+DtDXK5HagAYF\nFQLn/qUGQk+c0yeVmv7x/UAE6tjtIFg/GEG9mWZTrMCW5YOhtXdfK8STZEzZ\nJZim2bxq7MkMY0i9o6cabeHYAodeBVgr+txQQH5ZgL4XMdt2AK9YcTbdhSF4\nuS1DJvaY92JrI87lmjOtJ5m4137htypHubQVk11RtueB6VCklDhARiKF5swK\n4o1N\r\n=Q02o\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"eb115b616eaa6f1a69c5c0701bbb8dd99e0b4dbe","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.3.2-canary.4+eb115b61"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.3.1","@apollosproject/apollo-server-env-mock":"^2.3.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.3.2-canary.4_1615907311325_0.34905483617482713","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.4.0","_id":"@apollosproject/data-connector-onesignal@2.4.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"94a7720a8fffd8d847dc2f7f980fee1d28383523","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.4.0.tgz","fileCount":8,"integrity":"sha512-OubSGiLul028clUH+ZbEkXYnaCNF6JaXJOMOA26weog/33Q6BSLmrD1Bmqme+nIsP5sRUJWCImBw8byIQGpecg==","signatures":[{"sig":"MEYCIQCUPlGK6XhewmrVBxPAAaNCNiOG3nI5Ml3Tq1Nv8ho4zQIhANhDW/92gMCvYdUTlxj/EmGbQ+mTBc1dw/xy75r952j3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34262,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUp2MCRA9TVsSAnZWagAAJPYP/i0iuOoiPcLl+/WHJRxu\nIiEOo33dPIOm5n/W2vdSkK7IgRRks/jtBgRtNm+g6cevcmlV6kB8QDoiKLp4\nSp/+Xl8C74uDmEcvoah9viZXPsClCBcNh9YXgu+9b2y349u9Gp1AL9O2v3qV\nOTfe2i9P0VQcKt5kq5EyhES5VIRNTF4/CubG3D0gmVkzl+1rzCvjsUKgTz4y\nbEYx0+co1xTXRYMMpLpYxP0MFJx7h65jrbZQIIdDEYlqQot5Ie/0dCqs91Ol\nQzxW0Dtcxt/1z6z9tUJ9/y0kCRypxMcjnFM5GAB3O1+9jbMoVO1cI2FPtdjr\nmk+xJet5eNqr1QAqzcM24snR5f9zfEGQp3AZl/x5KqxIpH0MQhVjubiYnW8C\n27oZjGQ7Y8A4E2REcUOJ/d+JP6yLrmhD7Vaj81naQ9/KHQ8LN2SJli9x8xFr\ngIErD2QX4TzYGQrurQge8wZJqrKolXzSunkqYxOBbUJvVUoiuGfrn2N3aolR\nzA5hBloXrH5YcKS/H1E5WuC1UPp7PE16j/QnFDw9WKTgLBvjw9ESJBv2UqnV\nHEL9B/7H85RpJGfVC5EKdMKY0tXdgsubgtwQqxUHjMu+xs6/TfQnHl8e3mFz\n1hxy71tSoGRwJYzM/4j6FnAupzR6vviZYvRVQTXRZ9Kxg/1yDx/z914Zeq6H\nKipa\r\n=gwXS\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"456175663c8003f2751dd362425471aa1c64eb96","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.4.0","@apollosproject/apollo-server-env-mock":"^2.4.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.4.0_1616027020301_0.8571740726593522","host":"s3://npm-registry-packages"}},"2.4.1-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.4.1-canary.4","_id":"@apollosproject/data-connector-onesignal@2.4.1-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f76e1b33fe8b1f400a73c775c3b77cc22c60ee8e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.4.1-canary.4.tgz","fileCount":8,"integrity":"sha512-5CyEgtBLvD/rSlFqpNPkEBF6fNsR4ddD7W4W3EMmrvgTaGa/wIEkF9UCEg4AWNZJcaqOGJVcreC5Nz6d1lvc2g==","signatures":[{"sig":"MEYCIQDFi+gmR8PxaFlzua3kT6G0cpqeSWTS4BdZVOpnkiosiQIhAKMr+GB3yWqkYrbDkbVmqCp3K4ZLeuPopBTs7d3Cck9G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVqfzCRA9TVsSAnZWagAAkFwP/i4VyktOESK0dRKXLQz8\nh+Zuz28yP44H6dCS82DVvEV2VcjlvdSmX26pEhmLvKX0sBpB0GJVSuXbtVeO\nGoDM5uDW1xoE8jFt+CtwXBg/cJNteKiShoTUSlU5RYjbczuuIMNhtDeWaLuM\n9DEs1/0OyjbMY7H++LTG2pdqM4yoZJ7L1A5IxRQJebHsnP2k6QiiKpC0ZBWg\nDtzEjrl9+oSC2p9rwq7qLMZQyk+7BcmRxyZEgWs/Y5cgC3rAfHwnsmWiUsgm\ntRaGEKp+AG6SbG3E8h79SHtq7K138TeTyzp6yRQ4sLhgX2JNSFukLoNzRZrT\n/Wo6s9ZD/sKkIK57ltav1N5gmt3Q4EmN3vxkZHtZKQoO+IwqpuaMi9q9m2Ut\nvDdAN2D0dHMQBR7Tqs+8EfgsiPUXFGVDRV6LoLAyAlV0sO4M7A8Y5lO65Vag\n6OVIIkNNgtzqtUuMUcCvFb9Fty/eYCRyKMFPm1sSyIqo8Quz8vYypazET5zo\n/39Xvk/aKebBa7Ujqos8pLypZ6rdYfErWfrw346K+IjDU+BUXBpGkAXS5I3l\nfQw4Atpcc5YxUek2OSMxqZrshssiGGrsdR3mvszNQ9143WzSPG/6bIBBoX6c\nfHPlYSTor08oscgRrKuFuPK4FJ8h9dkj8Ez53tO+MOGdwXu2CXzu9VM5SVsP\ne1XU\r\n=7DUu\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"16e35562198d9b0049e067075c53f9f9aab0d25f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.4.1-canary.4+16e35562"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.4.0","@apollosproject/apollo-server-env-mock":"^2.4.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.4.1-canary.4_1616291827213_0.8992088204162585","host":"s3://npm-registry-packages"}},"2.4.1-canary.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.4.1-canary.5","_id":"@apollosproject/data-connector-onesignal@2.4.1-canary.5","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"429a09c84c6b46b96e60befafdfe2204c9003423","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.4.1-canary.5.tgz","fileCount":8,"integrity":"sha512-MDzuNRgKYORM2ALwQyqNnUVICFigAMxJD9IdOc5Dzn0dO5OcDgWjjyd7YgTwCPNVoP0feKmIKEV6tFhPZlh9sQ==","signatures":[{"sig":"MEYCIQD11eNMPmEHoKRpr4eJgweCJYGkXxlSluQHPWgLq1MrpQIhAKWwBHOD0Tb5ojugb6ShdECSBS2Qa+glb2CwKFd87CO9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34404,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWL2NCRA9TVsSAnZWagAAThYP/1hW0yDnh2k5+ZI78w5o\ngvHaHsT2ppNHUcEEMsD1gj5o2yg5QzDEC9DzKnL/ucrBG905M1niDRyKnjtR\nMzRDVfOp/LmyILK96z+cWttBnFDzhVFNsFKpXwb4nD72l8rSOdn99R3scXjz\n1LblL0u9zXG77FdPiRdOPNC+eB/xNsafZ4WOq6A4S1eROdaaOoffQ04JyXeQ\nZ8FosP8CLQIMNp66BWDosuMkhQzudxKqnlPMaFrHb8t/W/zp4Uokl+vGPepo\nGKXdEEZz1aVbPXY4ps6RDZmZjeDBPAir2tPPLRS36MBEDXcykQ6MODEcBuho\nxcpbqlEzYDkwyzjgFLTx3BjlVUXzSuVRtfHTRoa8gPfpV4+JGe9HAHLWZaaq\nygNdFpv2cppjflLRS+DYnBzKgPJTpqsWXM82Ce9+QDdfZJzfPoL8smZ3RZE0\nlnQV5d1csRZMW3UB/+7pJxGpHC31ESOAdCvmlsUIMUBIzjy2livYmkERtIin\n0y5Gs57YszYllIb6gpPbmlXegdL3ATY4ukuYAn74WFhqfo2mGwfrae0j63m2\nzcHyqezD4Xe3+YOqhN8rmI6rf0bA814KB+/rlwozhXSSFghPKkAqe/DEfA5u\nei40+uPuJkYlOZ21DeOv11O1hPYcAp8cUTNU35QwO1/B8dsOS9jZ6ryw+a4W\nnP4R\r\n=qUO6\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"19ba81b0452c19275918fbdc251425fa981a735e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.4.0","@apollosproject/apollo-server-env-mock":"^2.4.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.4.1-canary.5_1616428428899_0.9269293854053466","host":"s3://npm-registry-packages"}},"2.5.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.5.0","_id":"@apollosproject/data-connector-onesignal@2.5.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ee9c408d1bdb5d62a49d8a9a9b5e74d74673374d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.5.0.tgz","fileCount":8,"integrity":"sha512-l169LZLOY2Iuyek2tJ2ZdSQAupMfxneUY2tLkVtHU52pXXUP6f9OzllT+ISlHMYrRIq8rBKD60LZw8gWmnx6Jw==","signatures":[{"sig":"MEUCIQDa1fPHT13uLPXLp0JTciyZETovBClF14CDYzYNpS/6xgIgBF5UQqFvYhTk1j58UHXQZaTHP1+kNij6hlyJmEigNso=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgWOkjCRA9TVsSAnZWagAA2iwP/AiROGpUjf32RGcmue+y\nerOAgYBX9w7XNRKdDWPjH6gXfZBVfLaPuT1BGxt+oOGUMMSA3GXQOQZmzD6g\nSGo9b43UYj4El5ofyNjwa0Br3kafi/h8eCc4cOAlJ9RYSs4NzNRbPx4pjsvG\n2PMSrttw7LXUijatZ1oQiflkifBa1nmwJNJ6tgSiU45/F3sptIUEQTRjHD+b\nXVf0JE4tOLElrtQwSJijjBN+wCejmbO6ddykweqPwox5pFaTQdnTIp3Af0XJ\n2tE7QqQeuaN/+UJXgZPIrrrT4qP7oEIqQ97S3MrOgT9A+iHSZDwzQ49IRhXV\n5spwAVeMuB0hwyfl9OAUVNL722WlRBmRlwuBafEsMsn+PChd9RNXuLAY1NOr\nmwCxI7stVyjHsgDnmdsDUNxgqt1JfKCNA4s/vi7/bgKpVCV2Plf61GUK+oTP\nCsiR44d7fi8JBNHwEvIW3+YF4omXpcVA4VwMc2Tm0UPGfUrVm0v6A+bro3K5\ne505rVVSYPX2axf8USnntCktour4zI3a3isR0rj8wblnT0/hrqaZ1fsnt0Bm\nzesoI4EetOmWY6aP3o1ockc8KTJv8mAcxoCZOsFhC6MtprgAz7PpNssPd7aC\nytVOp0OmP1icgIGGNqxFHP+gELtylXjAdjJWhTUGwUYz+dhO7D92lPKNsIz8\nrOZg\r\n=Tupn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"a242b98bd2129e3a3edde14908dc817930a29475","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.5.0","@apollosproject/apollo-server-env-mock":"^2.5.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.5.0_1616439587337_0.48076697860741446","host":"s3://npm-registry-packages"}},"2.6.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.6.0","_id":"@apollosproject/data-connector-onesignal@2.6.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"bb077ebb6e033f4cd1800c6f74505914d83c48e2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.6.0.tgz","fileCount":8,"integrity":"sha512-Bf6Fojt1svlJWeqY9WEHRABh1xyojyBeWkwBnR0yPHo1+ONj+XXu8tg9TlcwoFcvyvVrqh+VLCIYE/NtcL/2IA==","signatures":[{"sig":"MEUCIB5DgR/O434zGFnBWRCEvLB9yyFYV+vYPsny+ozps/tdAiEApIlVxqzlnCQQQOgsz47Y0/gE+uqH08+2pXsllhQz6Bs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgW5pJCRA9TVsSAnZWagAA3B8P/R0QwYcogHqhIPcqB1Qq\nddLXqV9z78zumR+lfRhRIbUKRbHuJY7VyYk5eHtU8DW2RyZYhqJJqcm9/TZ4\ngDjc9dDYJqoGbsvwtIt6NxJOp1sWyyfMIoWval5/fxImrec4z82pC5fa5OXZ\n9TDSdkuo/Qb9BRriGW/usD8LxqOHJq5X1Z1Qj9VeMoHxKgieOhVJELnNMta4\n2WEyyQFd+G1TH8ZEh2ABNWZZomSXJtjqwQF/E/m9g9Wh10rZr6bg/vklBENI\n332MO5xVvJLxPdLWbnQg6FCjSDiflJKnwtdQ0XW5S+Jl107gU46MiyvovnXY\nKwGuDm0++Boy+2WxndHVfx7IjdAnQkU6lh98CQrbMxOb/rdzfrLNVpFNZqJl\nD+hGduhCr39WpexAzodnn6Oznwl9pKMwIT8X5kmjxpo7sR3XSP5MpSuRkZxU\nvjJ70cnbwgdXrvscQnuayCbn48Mn5cqfV1wCfpsZaniit76319Mbp8MXepQK\nXlu8jPrW6/p4vscH3g+fFU/zjeaApJ06WS077ov7tOnpqovXwlRI9iJWf2OP\nAnakee3+1Oi9lMS1ZuhzSSO4vY+5T1NVIN3AXghIDqMqZkTn26D8oUpLLuNu\nbcAvssvkXYjR1IUfzT38bePNVIW/DrGwPujQ+5H2mpq86dj4zNfdkHclaeBo\nz4Vy\r\n=YhWP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"0976a22383bad628124850d6ebb9d9f5cbbdc1ac","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"yungvincenzo","email":"vince@classyh.at"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.19.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.6.0","@apollosproject/apollo-server-env-mock":"^2.6.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.6.0_1616616009198_0.863692078914011","host":"s3://npm-registry-packages"}},"2.6.1-canary.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.6.1-canary.6","_id":"@apollosproject/data-connector-onesignal@2.6.1-canary.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"322f41c5fee7ef3f789c2cbb2f20b105239512e7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.6.1-canary.6.tgz","fileCount":8,"integrity":"sha512-CTGuRy0oz+LFHnoUUbGYnj1vQMo8/gn/bqxM0eYRMyO+3nd9DpuGGbzLY6mE31LonWI6wUgTlvWOmYmb/4M5aw==","signatures":[{"sig":"MEYCIQCzmlmyShz87vxY6W+lJ1Gp87Jh2adnEaojA+LXzoOLfgIhALraEgpcDWHpo0ODfVyfHIgGatwaXDlopsFRfRMYIBeF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":34883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXMS6CRA9TVsSAnZWagAApjoQAILgUJ3s9QsinBx4UTId\ntuYf7tIBZqT4SqaAXmU702g/MrVN43dKfW7/f5UahRen+femAd11dUNe39I4\nm8jlEiNSdwgUScjHX+kEUi2UHk0wq/18y1FnxVNb7prWfOY5WS8RS7C9F2Gw\nc+i0qUrUPQT09YxygJRh3mw/l85L9pHr0w8H69nRFV3emR/f2EmaN5xPO3v8\nJYcZolChdX36TtMZx0O2J+HJHOkg2EwDpu/laBuO9RC7VmxOvROM2PJoluEo\nlS4fzKGmhkcW9p7gWKwBMqAuzFEngNL8fQC0YiRX9/LXhUG8G4yjshXKrkZg\ny0iuZM44RAWV3It89bonNYUae+b08FE/fEFzYh4uJkXwKZj5v4IEAUYqZ9NT\nwcHJQat+dZQGN0kI8057zT3bs68KpeW6P6arTNGXxc3YQc/CRWGGp6CK/+XH\nNWLhu6e+6r9wdZhoECDWeOfSqnCkv77XxdRpyiPM+CA7h4g5uleAQornOpjb\nkPnKJfKNLhRr4/3eLe5/9pMERJqBsfa9UERBEEpj4lUVMtqcZsK9r5J7D5y9\nxszFD3NKV51mz+1TVSABAFCYugNmVF5Q/vvfFiyfOJARtATahHRlzqXGORFu\nW7YiFIxX81YuBBA+IQBO47c+eodfkpWfuyhCisUs3cKczoNOvg3EjoWRXEoQ\n4Q6d\r\n=e/Tp\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"4590af7c4299d3e7e0643b25385d82cfc7891ada","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.6.1-canary.6+4590af7c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.6.0","@apollosproject/apollo-server-env-mock":"^2.6.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.6.1-canary.6_1616692409686_0.29001890192137014","host":"s3://npm-registry-packages"}},"2.7.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.7.0","_id":"@apollosproject/data-connector-onesignal@2.7.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b5bbd64ba726fa70bfda755b9b7467fda169b0cd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.7.0.tgz","fileCount":8,"integrity":"sha512-Vw2/du8gCzVhU+TRawDnzFaR+SKjB+u6wEx1XDs/l0NlxgxD0O469epJa/BkBY/6A/snFFiNZUDOwfU+JZ4izA==","signatures":[{"sig":"MEYCIQCBi8I+hwFjtUiQPzzLUnU3AZZCeWpXcTPZr9tNmD85ZAIhALsf086R9JWTLA2XEEJp6AK0BBjiZu6+lVcFFPKXb+Pm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXMpXCRA9TVsSAnZWagAAnZIP+QEm6d2uuuKB6XCYxDMt\nwKiI+P4MdCxODeXR/bDPos0d2tFRZ8j7Kd1metInP+sJIrkToUUM73x+dO71\nxdWexxH6xztSfZ2D+GISM1CfP3HZp46X0dFuy/6lLxeTbOowAsOnIF6VIOvN\nWPsBb66Xph/CrdvSz5Iu3AKNwhS6/DB5GAfzFjEHRj1pfebse/KNZPjWBAbP\nuYVv/rveDYCCJt+bL1YcPxVmo+Q+OWKymLzgOLc4T3CmA9vsMFTa5gf/GxKV\nEmxnowQ1r3GoxmeiQOVNdf3g0ZeAAZuB7vSxWKivxhu9h5vrlcrvAPWlNfzz\nu4+7nUT+aIKjvh9OXlfk9uZca9D8qH5jNus5OuNiO5yC60NmCzjnmLNUkreC\n4y7pKUpWnXL1cSx9y8Z5N4Dzlxw0eq4RsJmZaakSebEoPe4yt/3FGpXTfry9\nJDDMwYMa2J9ivM7Eo7Ma+/CYu3qRXlEaiV/W6OHl0PppvjpeOd94BmoIgPyx\nNkFZGzD4LDtaB/eOJz7Da94WsPaQ4M5jYtBJSVNhRkWwC78JDe8ole3EdK2K\ncfRA2zMg4clqviTWNxyYEcXKE5xdfKMGN/9zKwhMNIfzPDAHBkiUEZeehgQN\nrS/m94ToZiTZT9w9PSP8cPrsElzI5ebsMoERhRJD4qjIaZMkGXRokE+a6P+G\nElRj\r\n=R2l2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"e0ca94fbccbbe278b580b71d4b415c8779454fee","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.7.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.7.0","@apollosproject/apollo-server-env-mock":"^2.7.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.7.0_1616693847538_0.1813077551025486","host":"s3://npm-registry-packages"}},"2.7.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.7.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.7.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"83c3cbf3b9bb363e542a4dbb0d0bc2a903e690db","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.7.1-canary.0.tgz","fileCount":8,"integrity":"sha512-3QUUsI2cu5oDg5W7nJPdm54hf6AeclvWLdT4Cfo89bd44Qk8YuR4+vhzX7q51jHY8Zl0zp57PT1aMpm7l1q78g==","signatures":[{"sig":"MEQCIEbrowkh+i5h766wEwoEvKpsvcBIVAQwiKFmWBqMglTxAiBDqySpfM/gctHE9y1nWjAAyO60rPaaQs18nRJzTeQ6uA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXMrDCRA9TVsSAnZWagAAQUwP/AzgdBXDCKXU+HLuKUEx\nwS2KZp7wwTgsUxlpK78bQrvasYElmZAGgYm0y1M42fyDuPLMXXMCR8u7XNIG\n7HU3e5ivxpdd+qmb71Ib6rywTA1b7SK7YU+H3qMi8nMDyjY/UnVXfCKixr4/\nvXSpAv9b3Tokxzpl79iXAVio9agYtN1AUun7vK39mVYknKPpeHLvV6mUXnvL\nLmRaJsaUPMiolI8p1hjOdyubaVW1qs+pk0BpNmD9ZabnRQqBo+DhSjkBCPSP\n0T/lO9FiQAXPbrit/B1mRONuaak9m8Y1B8UvtWgN1g9N2zWuJUQnBSHaonla\n7pzisjPnHS/40tCg/8YH9haQ++gGpCms7bhYg97kdH8XliSuC9c0/92X9J7P\ni+W7IUwiaAqH+dy4bHr1IxI4jY+maHz6L9SmoqmuKkCO+yRTL6sxAM6yIaNZ\nYatpowmox0WedtqYFos7ud9e1uoF7JXM9yf8jWEmsQQOzKlebu78akTmBN85\n9uvY0BrR80+oCWfP/JeZ7dKN/vevZhtVIlmWjPk4XhlJfgl3sj3OEpqgiKak\nEKYc6cUW2sR7inhnmzgu2EoWF0vhqepZJj32vnXDMapMldHXDHBWPznsnbs1\nglLmz9nb4tdcJZ2aeREg/iPBLGnhtoG6dVmq+tws5kMVPnp3x6Qef8rmtsiZ\nFDIH\r\n=lE/r\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"e0ca94fbccbbe278b580b71d4b415c8779454fee","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.7.1-canary.0+e0ca94fb"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.7.1-canary.0+e0ca94fb","@apollosproject/apollo-server-env-mock":"^2.7.1-canary.0+e0ca94fb"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.7.1-canary.0_1616693955034_0.8621089921113625","host":"s3://npm-registry-packages"}},"2.8.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.8.0","_id":"@apollosproject/data-connector-onesignal@2.8.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2409f1d58836b6a45d52d817d0485e346d4d7633","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.8.0.tgz","fileCount":8,"integrity":"sha512-Eu5FJAWtoKaO22Hzb83eeD7oi5kWuRCVlfPsoZ314OC1EzidSJfAKQAhEefwyNzsjVKPpiHNMKsryWOYmXHVAQ==","signatures":[{"sig":"MEUCIQCahJb240FkgMIaxLUic8pNTIybLVTwdNMdL3MzIcMtWQIgarlaj2ADQYnHf+Y3rjn5rbmynWyKIB5pN+jowzzzQxo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35379,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYcfGCRA9TVsSAnZWagAAUo8P/RR4QSHFfrwYvRJY1xV3\nayHB2LHC3TKXZP5DBhkOigpBcOyPcUsIKo5Wa2rTp144Ai0FcV9iDHm/icny\n+xvbIWJmM7BdUQfdzOIq5lOl2K02BaIkpvpPkCzZ12LcELdLc5SO8Akh7o8e\ne7tQK7p0GXeVEIphU0FQzol4pjyokK9sW+UumlUrPahINP4Vk1JVaPC6xPKW\ncJnY91w7VgsJ2oxYd41Hql8kC7q6Ga/QAD2Iyayaegaz63CkSgPp9G0tU9cB\n2+ODkTVj4Au63ZRVZmrH5o6veESBsgnt4vKun/pKgA6Bc1/Y8gcw/KWwdTE6\nz9Mgm5fc8zAhPzuCTNyHk2Mcuzb58jPHEw+uIHrvhzlr/ENPn2KJh87OXlZM\nMgsD3SqndzcTwJRn0P5nf8f4pdk+GJFee/FhTtCSnXpLQFZUqz5A/GbxJUph\nNNwMVfLS+AdRqS2sfJV9N1DEG1bJWWyhLmQiTMNS26e1QsR+D8WPVwJQPeby\nBKx/Tgte0z1mU8ek9cl8C6muSxclEQsy27OeP2oeE5jffihGUxG0mxM8vW7P\na/Y0FhZdB5cl3GZTh+fV6jo7f4f+KWwyZYpwCuG1FbKwzoCxNa7S76dofYPc\nWLXiLIT6Asc/Hh+eh40O/2RysI0+1kTt62lYCPb1VGiOydem2MA49nO9O8Mk\ne34n\r\n=QDy2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"36d68e0c3e11cb07bc217a9e13cdd3466437ca79","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.8.0","@apollosproject/apollo-server-env-mock":"^2.8.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.8.0_1617020869972_0.571380985772125","host":"s3://npm-registry-packages"}},"2.8.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.8.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.8.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"54740bc8bb52a37ae9185fa9068c7f56856c2ad3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.8.1-canary.0.tgz","fileCount":8,"integrity":"sha512-PrIKdaw1gS/ETM68NnMOOJnU0C3GspMFqNg176eNZ5X3SNBKoGdhS+H8bE0TH1/cUrdC8b65FPxtKGAoEcrp5w==","signatures":[{"sig":"MEYCIQDIJviObe1vCDlIm5saWo10ZKpgEeC9X1IzuA39wAQwSQIhAPjcqnYO7HLc7iuGhpD82Ks8Kim1pjmqIM0QqidRIeJy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYcg2CRA9TVsSAnZWagAAuF0P/3hcLmlUxbU9f5Qn66L4\na/Tu1VC8VwN6QT+BcrCXm4Dt6t7/axxZ0Nb0kWZedhO8i7ETCuo9snF8hQMu\nMuCYcp3rOA5+Sh7MSqzOejYISG+jzpJg0GCkqQBSREXvG56ebrTU7baHULw4\nrnbgXLo/ggJNi2+htmJVOprNq7wSqKlAi/FbenltVp1hUUAOOQ+WaV61BpF9\nq5zF1z5z2qOJdfsst7JD57C686e/GV9YeZGZatuhwWBDwDAV21z2JILEdplJ\nf/8e+04CjtgKmdfjqAWsmZiitgRkjBM7ConwEcfrtXRQYNk8eK+jFPvSdPmF\nxMEHfbRdYCGVVj+rYgiA4SUkJLRlsrFqOztLKJwcp4BUYo9eC+RBSZqdcD89\nU6Uyk43htS/CQV0sXZMdkee/4zmiGd+hk/5G6Tmzr/Y+RIla60YHCa4d8kej\n+5NrJ1TmRWvLzQTQKFfbsyC3XHYzwtpxZbYtI597mNCb8Lirt9SjYLUarjlh\nt05AOe0XWLzOI8d8swiCxFEYDpPyIkOnOp9I+OK4CtPsGcQXAhiC+SQZPaDQ\npdQuX5GZXUv6LkswOTXKuE2nItoAeWLF8Z8Yc364Gk7rAeA2vfmFB3Ewy46L\n7oZ1xQeJrGHZmQKb2yNg4BM5Yix5X/iqPJjlcN7A8yjmv99C1H+GjkxNH1UN\nbjJT\r\n=bBvv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"36d68e0c3e11cb07bc217a9e13cdd3466437ca79","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.8.1-canary.0+36d68e0c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.8.1-canary.0+36d68e0c","@apollosproject/apollo-server-env-mock":"^2.8.1-canary.0+36d68e0c"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.8.1-canary.0_1617020981618_0.0011121553037658494","host":"s3://npm-registry-packages"}},"2.9.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.9.0","_id":"@apollosproject/data-connector-onesignal@2.9.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"aa6c1c50334aa78cf56c7cb1fbd7bd77f19a181f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.9.0.tgz","fileCount":8,"integrity":"sha512-CiRPPYHYKARBaWctegiVeq31RG9bmqpD6WHq14H6CR7RnaCXinikNLYkUv72VxuKjnJQoLpjMHLCvFz1C5d/Kg==","signatures":[{"sig":"MEQCIAmAec8G8ivlYBEXupCE0FkZB/y0LOaqTXHD+SvAWvPaAiBGmeY+Gh7Zeux93I0NgwSpmzGxEyH8lkXs8LpZRTmtrA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYxZ3CRA9TVsSAnZWagAAbRgP/37VxQsG9tTBh33122n1\nx/98qCqnmmnj/da+zpKJu8w+wg/ucURPioQIhNlBvQngp+H1kEHy3GIYinA5\nAnAWhPh+n387KbsJ9ThROiuS5AyijamkmFSTAh0YU+hFh8Pmgf72eI17thmL\nRpnW5jFbYvMD8/GqCgqiSxN1lUpvCWcBub/FiS6f12M5nrlG2jiMP5CzK7Eb\nFheQ11FGtCDnm2Fv8fuQAk6pDZ8hscFQTJHgBzFrwqCD4KOYPQZsm09K6oh5\nTwXiiPXpXUx+oV1tcE7VMa35F/jagb5XtvnPEumGiHsJgfeC6t9SGd6cjrAs\noVH01zYxwjU1oipg2M3bGXz8685dVEy/nc+EUOM+UnPQWWR8hUBNcqRSPKaU\nmTQOi63FNSfZJVenl/YEee7N80uE7AEwNgmTB+7jPVOqjnCvLE0nSVG+uWix\nsyeqiHE8Xsn8zXPREbW1735EhCPqmRSQW7e0/bt9j+Njhtxx7rSXpkZwK1//\nwKgeb4TEGXq0rCcpjblY/G1cVqu7OhOM8/vwLswldkGUFUWdGApHTP9l9a2m\nnI4vl+k6BVpAoZOAFtLOSDnZ0MewwSh0KqQTH5DjHbi5H2/ymjKiNfMvcSpm\nrWmUzYsSThC6YubS1uHgeSaOHcoQz1tDzwBkRci9CWAkVci72sgL3za1c9gL\nsIhq\r\n=kB51\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"8555fb7dacca51f7c5bec4d40e013fe6babe64fe","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.9.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.9.0","@apollosproject/apollo-server-env-mock":"^2.9.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.9.0_1617106551175_0.7723292034018263","host":"s3://npm-registry-packages"}},"2.9.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.9.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.9.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4b1f53cdffd4d9096f9e8f87e4efd662eab0fd33","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.9.1-canary.0.tgz","fileCount":8,"integrity":"sha512-PZaxpkKS1t6oSHtqWtFqlIt2DL3t1cRPDioJhD4Sm2RoNeyZhMzzRW2ds79TQmo6FROx3CSCZzHIz58g9d3ayA==","signatures":[{"sig":"MEYCIQDwaCIHanX1qBL8ZnK0OpwP5mUjf90BbJ1JUj/nai8MRAIhAIz/52zdletrFJR91dBULhgEMiclq5THOTQbj/2fM72u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgYxbjCRA9TVsSAnZWagAAgDoP/R799gpye0mzWmBUaLOg\nMka4fHDVdNZV9zaZOTKudSbctngsh1NqigX0kCFVARHRTj3k2eCb4jLF3wss\n9n75tAXRG6UU2LHrM2CCtL1sMunwxLaJ8+kANwb+ezzZQKYBHyeyf9gZE2Gb\np3Vf8d/hKDn0p86Kkc5Y8ppWJSPl3lK6PE+rtCpNU+SZWLKX2/Mlg9B9BGpj\n41FBlZwS2XcUqKUcgkmXGnMceU1BlVZZ4VSQw+kUDMeJ0XXMn7vkFcHFdt2G\niijKH3RmIHvt+2wuLHnCWWAXX+k5OSUyNWFKC/tTwzwvNN5hD9jIF2GTk3Ky\n1xll++bXNqe9ZvuxpnTNvLStcJV9TToP1wyvhlfG6LSM1gOm0t7OaGoDYAk5\n8weqlFEi3nttuFUkh6fEhIu+HHea6fFnJ9SFk0GQMkjQjgDwf+lYjmvwEJNi\n6cMkkzGkFvdxRGBFY4VvmcWwuxVd+aVJ84Hb8o0pAxhTAAtLXj8ypfTBZwYb\ndoAh02u/Ocam9nVd/XO3JWiRd4VRq4LY6/xRpqy1dsGygd1O5lGp6F02tflC\n++hqtbxO9cDwxartQefTMBgAIkqcM93/2uFdJKZvulwmdtOoOc/IVkgB3cD0\nj+TCtTz5EMJdMws7jKuo/HJ3u/8vlZw54tE9xsTV+DTYPPRDBklCyImsSlLm\npxLY\r\n=HLx8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"8555fb7dacca51f7c5bec4d40e013fe6babe64fe","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.9.1-canary.0+8555fb7d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.9.1-canary.0+8555fb7d","@apollosproject/apollo-server-env-mock":"^2.9.1-canary.0+8555fb7d"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.9.1-canary.0_1617106659222_0.9608819336897139","host":"s3://npm-registry-packages"}},"2.9.1-canary.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.9.1-canary.1","_id":"@apollosproject/data-connector-onesignal@2.9.1-canary.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"26808fae3ca84025ba09d05cb02274cf53c9036e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.9.1-canary.1.tgz","fileCount":8,"integrity":"sha512-PIQt9jHw162fX+ib3EABXqVwdOzzRoQyoHBxhuvxtVY5FBKjV2+bbWG9PO3IIBY/mmO4owuKIpOZZNFGpe8Q3Q==","signatures":[{"sig":"MEUCIQDdsQDFSbaYH6h5vRr9g2Ye2HZ6xGtT2fOXrGzTobvfxQIgRt7Q0PHj/UnLGESpQKx3Cl9dcxtiW6SM5tWmPDA1H6U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgY0hVCRA9TVsSAnZWagAAvw8P/0A7oLsSzeFwHrP48plF\nDx9H9qRbj9gVFYYSo9i7d25tAzOaFXstOHnZ+pvsFrkQSqaPZXfIL0RcLivh\n9CnGhWufF9pwVV1RA91kp3hwXfYk7XInBpG28KFWqMDw7YsnDqF4uAHcakgA\nciz8tFVyIXSwnTCDSud3ZcRwBkbPcBZUejhSagkoec8yaFjwemmFafIL+2mU\nz0SLXNRusy61hSkfQikhV8mMDbocl4igvtyuauYjLMEtKcCF3H1L7CkkPwsH\nsC8Fm9z+s7RBhJlFcyMruHNMQI/sA6oCVLxbZLQo2D72fFDFtUCE1t5Bu3vL\n+ClqrKO52YVQI594rsVeNK43083Aw16Q3TKmUJO24Wntz1t5N044tKrVY7oF\neHGAjt0FYOSZjsWCDiCK+mXw4qxWzK/EgBaMMNNQXnHz6WGz9D6m6PR8Axfj\nVevfkP5lIqd2AfYbdvsuSGcWpvG7FzyC8VCnq7c2L2wWpGrnsIV3lj4lIZvA\nQZJ4rDA0D+DrA6KJZ7zEJNF4ssyK1znsGsKI7SS4ZZGLBLzn/VB255gUM+Fd\nmnafTgZugTlW1lf/nGBeFq/Z4lEvbUJy88pW9yHtqvl4yI5lZFJ1zvVAXjr6\nNWDzvArJAiFdoaX+CYahcTiKd+kygSjJlXDqNcUODxo7IHHmSRofh/RxNmcB\nWBwo\r\n=WE2T\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"1210d6e3ad50a921fefda91cb9df99a3ee0151a1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.23.0+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.23.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.9.1-canary.1+1210d6e3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.9.1-canary.1+1210d6e3","@apollosproject/apollo-server-env-mock":"^2.9.1-canary.1+1210d6e3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.9.1-canary.1_1617119317251_0.21051890494279535","host":"s3://npm-registry-packages"}},"2.9.1-canary.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.9.1-canary.8","_id":"@apollosproject/data-connector-onesignal@2.9.1-canary.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f086640ee29c9c803f5dc9ae5bbbaaea68e6f5ba","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.9.1-canary.8.tgz","fileCount":8,"integrity":"sha512-CBeRKT8Hcw9a3P4+z6uTUC2Cb/QgKoJ5CzEKMXG0KexLbmCdrc91yAOkNiY57k+dSsdXr0Ob1jeVQyxZVSRmtQ==","signatures":[{"sig":"MEUCIF3DzSwSfqGHXYGgLINl4T4sslB5qmu9doZgdO9fozpuAiEA8f8yAjaoyK+WOJD7w8rI0U5EuVLhIlS9gpTprL6nSwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35598,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgaxz6CRA9TVsSAnZWagAAyQIP/iylagVGHeU7rpyFAp+f\nuQV0eP70FWkl/PnM1mDMDoOktVypTicN1/2edzXAyXADYG/zDYQVdoojzl9l\nfRD+CPezrrF1M+oUx1p4jsrTrr1UVSQZ2hiNJUoe/9A+yRp/ScsdZaAnQWwq\nfCnGDD1KuetmPHIwY2Urccs49kWVhQ9oCDLRkh2wFy6iF/Y7TeFTpoOnmlO6\n43y9BO4S3U89zGpfPeWwXTfoH8xmGNE5wy8Aaq2OABInZA/qga2/sU5Ez3js\n/riiVUX4JumEtPmZT06z60jLHA9kYi5WqejVZp7bE8n3xc5rrKugbNXPj/3Q\nCiUw2yuBpzgH3ZnVTWt/4YWB/so9h7VNQt/rPto4qb59qMQPZQ6L9XDwGGqU\nwnzFQPVhCdZ5rDW4VYLG65c8WN4I9klYHsgLpkItlCBhNe/mAVFWzL781Koz\nW5pVE1cb393P9uy3oYgTqFsWvzrmwQuSw0gPjwvlVrf5Y8iV6S/kUXAxm//c\nPFApDcNEhLFei4+gHytCsmW1aemqOVf9fn2aGu4q1+D+iQjUaEnCDO7OyaJs\nxixG2JaL4cxkwsKMaB4Dm2tczrQL7mxbO6Nj5s1BIyEFVi+LY5c9hmRMXwmp\nBjEpbolJR6OMMpA3le2uwZdX4H7135+cn2FPUXf06V9pA3Kl6kI5Rg2e3D+6\nliVL\r\n=Up4C\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"6968b6cae059adc4b810c18d2ed9e217166c48cb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.9.1-canary.8+6968b6ca"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.9.0","@apollosproject/apollo-server-env-mock":"^2.9.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.9.1-canary.8_1617632505835_0.0003221483307866979","host":"s3://npm-registry-packages"}},"2.10.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.10.0","_id":"@apollosproject/data-connector-onesignal@2.10.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8dad84d63731909b0d55f857b3d713a99d1122f6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.10.0.tgz","fileCount":8,"integrity":"sha512-Q1QDmJ1R5RP+9BIWX2Sm4K1fAWRVwQMYBriUt3+0SDPXW+wzfj2/81neYoWUyBo/NDpGOgUEeSGqw/KKC+Y+xA==","signatures":[{"sig":"MEUCICy6CuautJR6QzSxGbfWmjxdlUv3PKrO4DD1LsywpEo1AiEAksei08pbutoatYX6dhDM/QmZQ/hK+wtJKaDjNJuOUZI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35751,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbHPbCRA9TVsSAnZWagAAYfQP/jZx4iep8IiQMJZ48KQL\nQnaJxQdp2QtENTqdKqn1dPu+rUe8JKx67pbSfB0t3Rf3sW43Bmp74qiLQ4Sb\nGYq98fC3Fd0n9ZomWVCN1A3/ehlf5b2q7qldmO8GknLMScd9FDP5tRdNqScp\neMRGLa1UB8VFDvHW3l9lOmPo2d2J90zy+EKtD3ZIqmLxO6obGycU8kDKzTaP\n7X7kJif/OjvxPKo+i0hXK34/u3J6Xnk7D4k2/AaesPQTvQDDlPiX2OqAEgGw\nS6d6lrVcVvoqBYHuv4/QpPAdc2vA/5Lfm/fVbfF/wUNDN/TKWEMUHwfFVJt+\n1487OiAA5vg+JZTZ+3D0ugOP41IGM3FiHCbxDLZvxZ2q8G4HEPu1sW91zYaE\nhIqdYhQ7aFWGFFVueA5rSlZ6tgdRHH5BqE3SGs/dbtwy6iYd/wsIgDeJIouY\nvBdGgqFnkn2WDfgzaGLjJgN5chxtbjycWeu5Pjv5wE89xZXtZzdvZOLsfZTi\nZdqbkFcBRd6ULIiEghVTEUcEC7SO09iQ5Dq6M9qfnUgew1CBLm+arTC6OgUP\n3FH9Bkj/YdMRk7pIgURPN0sSiHxKrsAg0uiN/QHqdzlfDzdIkYqOVnqFwpkJ\np0YAPKxJokiS5tBXnLa5d90jQo/G5RgS/iNf8mtPFGXbqMT9re13zd1nA9QT\n3nh0\r\n=pCex\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"1a2e252309992f6e1c4514ad92da73dae9949e74","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.10.0","@apollosproject/apollo-server-env-mock":"^2.10.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.10.0_1617720283260_0.303422101770324","host":"s3://npm-registry-packages"}},"2.10.1-canary.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.10.1-canary.1","_id":"@apollosproject/data-connector-onesignal@2.10.1-canary.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"77c48ac0c32969fd2453780c52587a71b453f9d5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.10.1-canary.1.tgz","fileCount":8,"integrity":"sha512-wYWzFN2F2tSRnIYpC1IOpLmTWOaKuvts3aSj5qMBrd+/shcNSyxTdEEuWxJpM6L3Kt3BDXiMq/czh+tA77xdjQ==","signatures":[{"sig":"MEUCIGoZBYignDMj9EYLXC9gUPAUKK1ZMOK26OpIfP13ZBRpAiEA6bHoXontHgrfmLA/PXiuEPJs2FF1lymIXCQS111CL9I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbITcCRA9TVsSAnZWagAAPIMP/jKXMzBOG4CJ1W1zyKuD\nmmdcGAcxDR88Mi2bLBMK8at4VrSdux3BqUkiQm/icRizSx+BZ7cT/I7qQ662\nx5JVxzBaVPdbPtwpLWDkG+99W5TBM+nmJm+tpPhOF8rzpAjzghONnJRfaGbJ\nuPDhDFsh7OljwoFvT9oe+Pj8J8dC04SUUpE+rlzmgvauNVlyap2wRQSMuZsS\n5pMl9XzL7m9mrRC4Sscc/qF9qtdaMFSlPng5OrRGj+4822Vccmoot7o4o8JO\nuTNOYEQmddBHQfTOoj+1KsKMpinXqpAK4bCoeKdRdLVVlSNMo7QMmMRq98tU\ncFZId6Jv3CknhAR2Y1ThtM5pIinl9NAaueXZwD9K1GjX/j+G8JAStrLH3w8D\nPZU6tFi+VEjyzsGkagHy/mYkfUFOp11pdmmRoj0CBqPJB+6rrDGNXiF8Mlr+\nKPY/YVsh0DLFuXzbHP66XTdgd6nlPASZ/kcTKsb8F7Eu2iKHgirQDu+hvzuH\nvf2wIOBhv+iM6HbAwHDRebqJD0bIlmTuz2J5yp/vKL9Lb9x5vFYHkKek2bV4\nJ9KBgjHjHR1I3Y025daOnFme/3srpAt9jtd4k2cDXb8B/RuCUTXumwRdWDj8\nFUO64SYIRq1FWrKzPSGf4+jn1J3N/lfQONr9XQv+NeD8oyC4ADgFtL+LAQgA\n0sPm\r\n=Tnmg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"87f6dedc7dcd979c1aa96bdb2b308b2fc1288900","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.10.1-canary.1+87f6dedc"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.10.0","@apollosproject/apollo-server-env-mock":"^2.10.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.10.1-canary.1_1617724635607_0.4952750235328707","host":"s3://npm-registry-packages"}},"2.10.1-canary.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.10.1-canary.2","_id":"@apollosproject/data-connector-onesignal@2.10.1-canary.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"459eaf37384027c16f297c7795d6af2e9914c035","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.10.1-canary.2.tgz","fileCount":9,"integrity":"sha512-Dp7a2hgHxQPMln93I9EF7A02ZIZ7psdmsiR4WYu1L17n16BhYZT6yyjyyCF/zaPxSlEnU9WaM9YQTfooGV7iRw==","signatures":[{"sig":"MEUCIQDj6i1UJ8p9VqC9+29YXe5xJX03oEvHTsuUHP2PNpZ9dAIgTYylpuX2kAshD/qkCtxTcjqUCj7AHkpb4mYBIs58pvo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38222,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgb6nlCRA9TVsSAnZWagAA4YwP/3uYTdDfHhIjOa8Vf3cB\ntr+SGbheELvyxopxeG80/4u93KvIL6WEAbR652yWRb4/j+DY6rH74vUpH4cq\nt9iGJ0lEXeQWw5FofQTJtxWVXh1bZhLrLULsyLXjFukBa7KQaUqj7nZA2Lkq\np3c5PnPLksmd6wd1v1oFGdx6Fs0wyCpfj857uE+FOOgUvYJHUHboFiCubtr1\nqfXumX7oJaAdVQPd78MBmDEKVW/hdZhmXZu48TXGRfQ+Ho6k0tS0oJ4iN6RD\nssWdJqw4fNwvA3vyQRDBFalhOM+SVhaXv+RqYV3Y3imet/K47rIo3cJ0xtQv\nNw9WxpSx/G0q0YXpiSB3b8mIK45p+sthqjfGANfMPO4jpZ7YUM0fohVdMirv\nV+KGalYbmV5WRlFbd92QgqgRg26ZxuHCpFm2QeR1R2V/rlG53JKRLdLOZQBC\nU3Eg2/ZLn/7IPxA5VS629kd5NoqxfRk+p8awwZZly46grfdtNhnrUR00OUca\nCNaioZnh5kxlZoHA4u0XVwGPT8esFuIBYAsgwUW64xuzz/rn0lOakYfPs7/K\nt9rU7UlWeoLmAXjcZ6OURqM0qUXz3PgO88CTLPnLhv+ln0egHLFo6bY2kCU7\nnePSnHcDWVG5fYY7t1mrUtJQbWSrjSgI1dmMVYmce0vmYQQWUw2iJlNH4mqh\nyHA6\r\n=4tfP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=10.x.x"},"gitHead":"e97d73939d848e353f08db9db50f8667d78511f1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.10.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.10.0","@apollosproject/apollo-server-env-mock":"^2.10.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.10.1-canary.2_1617930724423_0.8797915681510724","host":"s3://npm-registry-packages"}},"2.11.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.11.0","_id":"@apollosproject/data-connector-onesignal@2.11.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"917dabe771b97816f6f41bf2c893ecc898d9a64b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.11.0.tgz","fileCount":9,"integrity":"sha512-kNdrPJ8EwRLDhx2TMR/jNrrEIgaVWhF9ieUMkUVLLpyevQ5DeNLyFqaKm/TA+FuGjO+J/Si3jDcVwM/VcIhUEQ==","signatures":[{"sig":"MEYCIQDYsZP4sWBCc6tIiMDlJboS17yFHNH2IOxu2Vxc2pnH2gIhANx656mkV+miZqyGDVvdQMIFX59Gn2sjYOyU/kUBkY/p","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdIS1CRA9TVsSAnZWagAAdK8QAKPTCwj7j+VmzhE1myiy\nFrHi76r8iL1miBxOsaDi4WIeV1Wcv+hOnB0U8Xpr2LHhYhquGijOeQvD7ktP\nK1mDOspNakOY6DQn4p0GKLU/lMwrccRfQLaIvxOJA6pMzLMSpAVqIb6hNNJ2\nnqpg8lADxECP7PkSEo0jooQc64qSdrk4xZXh89B7X++vO4XD6QnTVk1Q6H3i\nCASVkZFzKbX7qG0/we5V9R91MQeSd34TUvfbNXvVuljcWdesXtfamRlwRNeN\nOjUQw5m5pUcS96AZF49q6SDysHqKJrDlI6NOGWe3yeiMjFL9PkCv+AjPL2V0\nWAQhRL/HndqYic4wFRmnqS+tn6v9GKkHuYd6s11GgB5pon9ay0Wt70JS5OqB\nNCM8w/U9h8JUBGov9PcdTjdmM8tl3swrtsDH25TdUF14bX15N/xDwrsvwBOx\nKHsQ9etXfmNBBJvw63yd01XX3zAzkGPZKi29rAejK+WaOGCkQCbPS8niOpTM\nlNciSgl9ab7wCKa8cJ7wx39dOuN3IqrigJ6Yp1JdfNZGNuKtZA6AwoCebMyE\nbvQLMPYvCpnA/gsR599WrJmXKy41WeiSslmJ4RY3ob4mPOQt/lV/V+irf6LT\nDe1bFg81KkG/48BGwRwz1CF9WTHdEdHaYhf/itc/a6Y8PVwfuNuByqbSgCFw\nCoWD\r\n=ku2j\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=10.x.x"},"gitHead":"29b07970810f5f2a566f188043c38e45a798005f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v10.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"10.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.11.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.11.0","@apollosproject/apollo-server-env-mock":"^2.11.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.11.0_1618248884834_0.5934673781880042","host":"s3://npm-registry-packages"}},"2.11.1-canary.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.11.1-canary.6","_id":"@apollosproject/data-connector-onesignal@2.11.1-canary.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eefc6045d9aa00d99a48a5b53eb82d9761b884c4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.11.1-canary.6.tgz","fileCount":9,"integrity":"sha512-XUE+knqO+615l+Gp0nSA7UEWAlFMDdGzBSa/sD+41qG7BrqZdanxdSnTG2OJ5hU+CvzbH+gNDh1JFuKOjMrFpQ==","signatures":[{"sig":"MEUCIQC4TROjMuBJrdZkKETrsdUswfqSuxP1tWLbn9S80ma7tgIgC6P5FTPumAXwPlmel3qegmSERqTl2HF04vZo8Nt8r1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdw44CRA9TVsSAnZWagAAMCIP/RGvQCAmzZgsufzsRGht\nNpiGXs+HJCKAK92jjc/TX/a59/5oropr9EAE+Bn/tqcaqNkryUDHOJCvqv2O\nLPX7RIY8IBpEDiwS/WSlyXitm5+RpQHA4SRIHemVOSvHqTXAqV42wFLFE5ck\noUHdyvnHPmn+SYjqQcRG3KZoxOHmlFpmeUiYlzyV4bXpsFvT2BcICCP282on\nvz7yWsgQTHVC2g7CbxYUM8mCrZkqVedtmiyBlb78Lw5EhpcFrIuowtob5gC6\n9BvQ4X3pYG6Pa4/6SEEfIgt+NKpV1DYNafInuZ3nu3oABVgdaAt+sKXY3uls\n6xSIRyP2++YAT8CSXp6ztTGgVIdUPPZDTdYJ3tFl8H1aF64JZkG3Nwih6Ryg\nW1nDQkvPWcO44o6byAcAr7yzu8hZZKXvQVW7NVxRISZXZUce2RizR4uCq76H\ni3rxjz/zlWcAKgNrMd84HugFe855SfmZmmuu/XBG9wz0nsVXBwwFq9chq2d+\nNiM0wuWl8L3SXych1Tk/C2/W+wbCzyhToYahVQ4Or4gHLjaHgxndrTSCQPuA\nBIajlASHXO5MS93NEDHRObPNwQ2JekuqUqKIv3y5wtLgjfn49SxYnCL0nhWJ\ne0lVaPb2sOLrguAaGMIleCJk9yZsWkfc3j3wuCaJa/PYMI4D941nmJEGSaNu\nzMp3\r\n=CwBS\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"56c020a08ad3b6cfe8c4838ac3369878cb2999de","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.11.1-canary.6+56c020a0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.11.0","@apollosproject/apollo-server-env-mock":"^2.11.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.11.1-canary.6_1618415160381_0.9232040849547061","host":"s3://npm-registry-packages"}},"2.11.1-canary.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.11.1-canary.8","_id":"@apollosproject/data-connector-onesignal@2.11.1-canary.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"19799fb41b1b37e755e43451c86008fd3bef6047","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.11.1-canary.8.tgz","fileCount":9,"integrity":"sha512-1qhhU78KDQcK7c5Gb9MVMwaZM1KAaKfE8SgupQzeq6t98QogyAdpMEi/VCWIM4SKgj6Wvjjm5e5PX/jg6iMW1w==","signatures":[{"sig":"MEYCIQCN/vKBGa5FsjxBMfcbZniBo1AIJhCkg6drpxiVKsLvkQIhAM6VvjeLmCR+sYuU0/nE9uh96bEBqSmlAIG+nbuopws0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38597,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdxxmCRA9TVsSAnZWagAAMAIP/0NJpM/eLTWIVOttfR9t\nVRiXacF8vYCYQSoP5TBWa3FlLmHpqZ8bhu3ooNOnDqhiMS5yq32EQShusq/P\n8VYDY7ekBmVE8qDvSU8wdfUBIhU4mH62BnDAVj5QNg2XZ+XVG9ln7GQii+jr\nSyVKpP0qe0vMHgykmw6z1n3rNIcIch8AP82xFtyZsr0zZoVUrXuC+9RjlVKh\nMcOOrJDmqwI8r4lLjFH0Uie4GVAyYdJIqrwv2VLVZWRXec1OJpRtQRb1iOpd\nBcAys8e+vqO4qcXUNKgFy2dpBTXtfIdUKV95/xEodlaYVyW/63EvJxXKJ2Jn\n5Ld85+tgiw2O4bEsHImAC+oj+3oTQoROc5K1p64AktEx8UCAhBLlA5VJXjyB\nmwQOuJGSWr3T1JZjyNbbumsfB403M+ETb+EtTm/Kjl0DAQbaZZh/LxxiTB/P\nStVHGTaGwF1NdWaj8Eci1OE0nXVG+F+bzmzgcoV+ynTUJlfKiDcui2CMJ7sM\nQw7/L8xTnKG8OSzWCF2FHEHPkLXHbWTo3TYgv6GoFX8DQIa9ddTXG+wYpTNX\nFG+ud/Ymn7GCZblCHdt6vjt7OuspkNt3U48/MTqdRBMrvSzZDU7PLWH6KMUy\n9Mz0Ved5x5FF2HY8lg2UGtREXt/K9CyfdsyKzOb7qJZJ31y7jLghFHkirPh4\nP5W8\r\n=WE0t\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"cee52b13ec4cad0e0f1bd2faa11bfdb6773e0e9c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.11.1-canary.8+cee52b13"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.11.0","@apollosproject/apollo-server-env-mock":"^2.11.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.11.1-canary.8_1618418790065_0.23380251038863076","host":"s3://npm-registry-packages"}},"2.12.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.12.0","_id":"@apollosproject/data-connector-onesignal@2.12.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e10ace4acdfd786ea76e45990d6bb457efc3d17e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.12.0.tgz","fileCount":9,"integrity":"sha512-e0iTKKiI/46gfyRx/cI/YUkLAxd+mmjhER4InKgFBraz9cNVMfzdXjyfRIx/DNZw787VDakiLmA3u3JKG587bw==","signatures":[{"sig":"MEYCIQDJ6ItQ97CrcvbAof+WIbyZAeMbfrlLJzv2jfqr9v0MOgIhALAfDILyMA7Gv7c70SIrJe8fpWF13f1/Eig5zD+vKEF+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggcbnCRA9TVsSAnZWagAATtcP/iISOEjRss5Ti2GFLMQ4\n1+StiOb6nDC8dBfKXTDsSANt7/bNyZXyBLXubY8H1wOk69AEcK0/2mosazbZ\nxD7rXgpahb0XunjVA8CBwkr7pjF9V63p+Vr0TKrrAMlNMWk8potpYHvb+ncO\nNchdelBKAdvgw4uZWWIcGWVVG39im6XJUnRuiVcCdjhttKxxfdgViTLN3/ZH\nSAq9NWCTP7ZBurnGeTBcb3eG7Pk0IcPY1zY3+6zrbvDqUIaWb5M2zWXK3e9p\nQ7fNmBudywueLCdp2tw3b2YCqTOk6/cY0zUrPl52lrxjKRkDxPO1aGQbvANN\n9eYzX+R635Te2bsDwtvYxpnOALFowW2vfKV0hqsvg7m/n61eUiDUiZXBK+Z/\nLIxodcK0hideOeEJu148jdxDuXXG5eqXy2HSsovNyb0Rwg6jCvE3QSMQKCP4\npFtvZfALPW9X3YGl0EyJvsrDFSqXb23Bp3ZX2+RdH7fKRCpDvK6zhE425IwT\nZwEMt763s9u2z53yhBRgi533JnNOP+WohJb8RmF8jDmeT8nzKoogAC+2K8j+\nH0rpiNQ8bNzZvoylAXzfKKkn4Jnemfyl2fcUuiwmRxUQJxAsCL0JTV86QuCG\nGr3X7ug0in3D0ADX5jY3JOcljXaXGDUXUiDF1NWe3Fa7queotuPnFwaMdZ8p\nV28M\r\n=uSxB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"6c493f963ca10aa1ca8122a4a210aef5675e269b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.12.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.12.0","@apollosproject/apollo-server-env-mock":"^2.12.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.12.0_1619117799141_0.2751766973261791","host":"s3://npm-registry-packages"}},"2.13.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.13.0","_id":"@apollosproject/data-connector-onesignal@2.13.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ef4b537486186de3db5bdea3acc545776a6b8a5e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.13.0.tgz","fileCount":9,"integrity":"sha512-bQA96ED8OcvPegjc/em9gGQAJISvUX6JrNkWT4FTbSB1tFLAKOdbTBEFUPz8t3qevO6RYIsgY2nrMZQ+pWVP8w==","signatures":[{"sig":"MEUCIQCA3k1KvO/ETrTZQoKMeO2j54Wze/RVVtFnIYDySTIP7AIgInM6hjmQdNgeCB0Rdhpv1wC/wfJem1FTOA90soP3Cb4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggs8hCRA9TVsSAnZWagAA8FwP/0ZWZljJ3G/jkbPOEBa6\nY+PXwTKnohKxAq+goQatVuyf4x2FB8TNOp3+ja33jPV9+0B9MLleddqhzkwy\ntw9W5KMjlXgFOknbp/0owE09kn3vBmVbaKkOAPkAvq1vrVE9t84Pq/5rnnD7\nrQHQeGZcnxh458BEqGo0KTlzxKaWatZSjaoKi6WILEYFfdO0fvAbC1+iwznZ\nyLcUNZlZBwGqyESz+KpnBWXQwR8hFlVxmHy8+4sJf8OiY4ynzo8hTAMb/Tna\nyh3ZQ5ps8HMK5BRH5rdY9qg/9cxtm9Z5QkdkRn5jVRdslfMotfxK6j2xMVSj\nrAD2cLwjvVrQEZlxVHBZuEkoqtd05SuzV47fuXCGYhmegWApwHSwxY94oNhp\n2+/7fEECLXr4HmoNCCrTKKdJXAZhreUEZZBh4fGMlTXsErcfF47crhZ/5Bsc\nBAKDHVuwrDs5uisAp6CD82lKoN6PnBeGLwCCiB/8CAKF3+ZKSIRe8GfDC7bd\nMy5t7JeapMgz7c+uHaxN+e36Oub+KZB5DK2A/jiMqFKCJup7jm9lz+2HLYEi\n3cQT8lhP9Id3FXjgjna+BSfuC3aORPoyWagzitB8V9ZLsiKuIh1L5RSth2aB\nkJ4kHk75XUJCXQj5PCgvZdTD7ITiayJqZu7axhUs0C/qp3apdf9bb9urC3HV\nHsvB\r\n=sREQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"6b98d8e8d65dcf56475d1d0a2ae929a6ac8696e9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.13.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.13.0","@apollosproject/apollo-server-env-mock":"^2.13.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.13.0_1619185440497_0.764507394952916","host":"s3://npm-registry-packages"}},"2.13.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.13.1","_id":"@apollosproject/data-connector-onesignal@2.13.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f8e647688933ce5fdd9950a3e4319b1119983b17","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.13.1.tgz","fileCount":9,"integrity":"sha512-axeO4FSXD5IDSDXkn1ywEFC4JxtjdYx/d+eOP7BvzHEA4Rwm0Yw8gMvdjXOBbyJh4jgCoIrUxWAg7ZdPcL8fKg==","signatures":[{"sig":"MEUCIQDGwzJABCoPZIzlbpjwriTCgC/ZzMw5JluvAd7j1wjNhwIgfmYDL9+InRYREUX2Tk/9W3mTasnt8bUa/uYqmqjG2mQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgiWmaCRA9TVsSAnZWagAAuH4P+gIXgU+p8/bQahuuNYzM\n8UDHOFcP15Ox4dVd2VPhsyzSxp4hhgpmIvMoSpqGdshJs2LkGqxQVgEyzZVa\nHXDIYrVMQk/NFwaRRFytUVbCC8stpuP4OGH8HyxMmI56s2LkoulZmrbsGKHj\nHjeQdj0+q4NkyvPbUSH6blkZljg+lwdp16rJVOzyCazTaZwnM3sQVn+QX9FB\ncB2zI0P/ggwBT2KzoXvU/G8TJG9rMRTU4/5lKBPYeh9REuYlsi2wHYOxmIbS\njubPhX20TXWTeYUCyk8VK3+KPk5kNBQ/shwTn7k8sjKmGCy4iUQ/3uIYs+98\ncHqXkHBQJJA1JW/eK8ppBwe65QkK9zRd8O4gwJUDGyjV2ivlbwUqFswo4tte\nuD7njgMowzr3ERER6nGN1YPLa5i5X6m7e0Xe13RyLBIpvZeEKOwLthLPlNQd\ntmXR4xdEJ8+Xnf2Xb8SM7CJpUrx67UrVd1aCsuVInjs+pe+tyTH3vtqz9JAf\nFEeeTdR45Cve3r9fVF5Nlz0ouwTrxhXVUPI37IV116mLCyb9sykh6Z+WgcC+\n/863EcDhVGe431NLaQBqEBq8+DMisCHRrQiKvNNozUHyZ1rYz8yXQQQ4E7Bs\nNUoeV92mNvdFmo6gqulnWuYw+BwoPDYwNkGEpGUBJjWa8iz7R4RyBS+ufYQm\nmrIW\r\n=uAGU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"e79fd4fb9028cf612eb5280969a5e7804efc51d4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.13.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.13.1","@apollosproject/apollo-server-env-mock":"^2.13.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.13.1_1619618201687_0.4779783567686946","host":"s3://npm-registry-packages"}},"2.13.2-canary.23":{"name":"@apollosproject/data-connector-onesignal","version":"2.13.2-canary.23","_id":"@apollosproject/data-connector-onesignal@2.13.2-canary.23","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"bc9e61cce16bf408d5802813ff63dd4846731182","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.13.2-canary.23.tgz","fileCount":9,"integrity":"sha512-AjBi63cYiVXmJ9aHSbGkeytERlKkBwv1/ebemvo2jyTK5+yi9HDtLEbUa3sv3/mGjfaqNbaPdLGtIpSxL9qK6A==","signatures":[{"sig":"MEQCIDzFJkXugfv/SzFZ0UnI0s2duAdkJZLGzKzPwDYKw82/AiAMHIzXb85zoxp1kVsb7umSPCfEElU6RyJ7CgNyYolbIw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39158,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnmsyCRA9TVsSAnZWagAAtoEP/0VrONjtrEZOJixTwsN1\n/l4gMqIVJyGQ/E0ZYk+GbeINvMrLSf/A3c6BuCDkN0zimDQxIErAaeQzUdtQ\nTwCAeJ/aL46am0M57gdEGLtCv8qZHtpgHNudqFvU9GreEdUmG7EnMcgRkJuG\nXn8b08QBoA6BqWq7B4UvD9w+mkOekiG9MpRuFyzl8+wTESv2wR8B/JByJ7Ja\nCdtkFhkmjnzzCVi8K2FDMZqT24JlolrHGCj9cWOYc4PYW2eBhyIMvOlZuGKy\nS++Bf5xHHxK4J+mwynBpGpUVvrArw/dujzVaQu6/h+WH8HtIvnJPSFMr/p0J\niYixQ71ChA53y2SHN8B2qhDL5oaeYKFsVOLmMyZZAlo8IXP0e/OdGpLOkf3E\nc9tcLav4mzzrJo8d3O48gTXf1i3KSdtqDU34c7Np0wll4+xZJ5oZwXdiGQQZ\nvhU3VlhAo25GMtW7z2S4DBzw4EtVyuVfafq56bGfmzAFOWkxOigjvBtsIf+N\n0Kf4CWUCU8xRbO2XjpqC0UeKIwOjESVw5OYpCI89v+0B9TuP/WBV102TmtE0\niHI67/wbpB1EXE4EgYor7KYD1NxERoRJ/fCGn8fTBq04nbQzKeEj/MhKzdSz\nQ6Hd9GcKo+nu7MQEj8dzLQRZXjQFtldX3BE3nEi9dIGRwAf6toBbOx8So/Hs\nX9Fn\r\n=/9t9\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"844f67786d9a2b0814c9096ea89af42150910e20","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.13.2-canary.23+844f6778"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.13.1","@apollosproject/apollo-server-env-mock":"^2.13.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.13.2-canary.23_1620994866136_0.16151394122555884","host":"s3://npm-registry-packages"}},"2.14.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.14.0","_id":"@apollosproject/data-connector-onesignal@2.14.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f1d394c8613c8cf6a7bb5860dfe0f1fa60abc146","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.14.0.tgz","fileCount":9,"integrity":"sha512-hhUiW4Y5lNMDH6gRHVe9g5W1u16SEgcYuzPAcBulSEzjl1s883B3CMGDl3tMxT8K33/rzgWwEyWRvqVtiDrXlw==","signatures":[{"sig":"MEUCIQD85xm3vkyAPMFIAiNsw7R4IDJ8SJeBXsB5OMbkQ09NxwIgediz0AvQIC8BXNFLBH4Xh/BpffL91zLO6eaClLV/Ylg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39306,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnpl2CRA9TVsSAnZWagAAjxQP/1gVUuSFE+DY8GIrj2ht\nxUohtaaw4uDcKu7InkzIDwXAOxsfLNyf04BR8vuZ06GDdiNH0B64ANWjAnQP\n+5NZqR8ypV4wwgAEvhDr9ehSJ2WzAuJy92+YNeRgbVvt1RBFKZGQlEKgJFfE\noWdPwv9/GqSeoAcQA6Eb/OhSCnxyAG0C2U7OsprNUbkiTwHIK0hi2stQW9Sg\nucMSkZQv89Qr6WrU3Yva8p6rIKbA/olOR5pcZni6etNb0DadtpgEBG2e4Qow\nlcKCE1XrSox7n7d/Xv5PuGR32lfCF4THfCxBiYJifYbk4StsGWYaNT90oHHC\nAucCIucJqMhg1oAEbGejA6OclhMw4ugRqbPABXCD4FSZd43Qg/becPuVFiV7\nB/pbDoxbwCVHi9qxwi39B7hqYywuOgo+dV5EPRXI3Qxy6vIoUQ1qbN2BXWLT\no77DVVK/W21iMO7iARE1iqIS/zMREEgmSAgKVHlid9Uykkz3IZ/rkVC38vYU\nCn9lUqIuDei0cVHoJH9/lJAEAxx5y0DLD+5FMsQJmbV8KfSTlHqAst1IQJ7h\nKqYwbAncNmU42rIw3aXPVfibJ9XcObOiLyz7/JxWIXPt3ERukr2+K9oA8Xql\nziP1SzbRAOMcdDXbXw1/TylGsVUaVyTsXXfwBrYuBjFkbU4+fOiJQGg/ck5v\nMysb\r\n=ucef\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"a967877717651f0ffc9f03d4bad3d27fc2433487","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.14.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.14.0","@apollosproject/apollo-server-env-mock":"^2.14.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.14.0_1621006709803_0.09898285674078067","host":"s3://npm-registry-packages"}},"2.14.1-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.14.1-canary.4","_id":"@apollosproject/data-connector-onesignal@2.14.1-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"870004a8f75a98c753c61d8bd458765573573fe2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.14.1-canary.4.tgz","fileCount":9,"integrity":"sha512-8R92A1/B49Y1CHMEv5zrzSFyFpbK+taec+C0U6XmIaPe74shasgIb5Npzm1NQp3ZWh8mXPre6ynJ9G5+7XvRZA==","signatures":[{"sig":"MEUCIBo/yJTGEvgy5ZlpXO2diqM5QBkTK3Qfylfx7cf/icmGAiEA+zWhGb4Bnvoa3XD/gZx42FCtCgjc6FlP+g/LabHPtIw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpAK4CRA9TVsSAnZWagAAANkQAI4HU9fUQc/qZWEh26ZV\nweRWp+MV3FBrNGI8UhjZ5eO8njrxZseF0HB5Qa3wrv1tBpA0Ble3sMYivDw/\na8IZiDWnBEV2OKqS4pmxwU+adTdGpHwzf9MTCzuqs91X/rIYzQNxNqftpLTF\nQ4NcAn9O2dNcgB6LbNobc27sBZqNGG1+dcEThS2pVEolIirm6khKPENjQZt4\n4qSd4HnbmaXu26Z1WsFheLC/ESWBDjzXvFhiv8TXh4e1pchR9yfqgdjqtSVV\nwZLesPtGrOTjrnl3JqTMnoW8A4w+W5HQLOdPWgHSByx2AAB5MIF1SrdwkYFo\nAmabjV1uoYg1e4ONcvi1Z/eMmOUfqTj9oyHz21m1qsHwiplRMywGkDx20Bgl\nmFQLIREG5nePFaFqu8oMf/5I29UqUOull3RfEyKjwp3cx8cXaCR/akUdInez\nRPrig+Ls8kO4DioHWh58xXU1sDLeKqDuR7nR2zbQNIVOHELI9yrvgc47al5Q\nqznXnC0TPCDYuEvf2F2fUMvkSKh8GV4lZpLRZq7F3b3RfR5oX3r6ILODAiqT\nlNNcYZoQy8pJQmtORZ+TngbwEbm3vULbFr5qZzDKyhiWhriij36G1ehpZMaL\nhwd7i5iLWpoo6tPQiHKw+qRfyrTYfnmsZFLL3ZPAbS0/tWAaoqD9QWRwWKwA\n0zUX\r\n=iFCH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"f038a8789615a77f135801557de6eb06ef3825b5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.14.1-canary.4+f038a878"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.14.0","@apollosproject/apollo-server-env-mock":"^2.14.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.14.1-canary.4_1621361336176_0.996329666291778","host":"s3://npm-registry-packages"}},"2.15.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.15.0","_id":"@apollosproject/data-connector-onesignal@2.15.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ad303902cf2ce4da5f22c7d0a8cf5e4b16405bf4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.15.0.tgz","fileCount":9,"integrity":"sha512-O3t8EXt6CKDQiRxpna079WP7iraRQyhVdwY38WBOqVsiF+GG5M5qsxwHlozevNSlJf+aqn3DKS+rrNu4OZXujA==","signatures":[{"sig":"MEYCIQDzDRQhVbLGF36T7OeDsKTkMiC5laz243CMurW4tU7sqQIhAMJ7t/2Z+8uVO6xRpVF+JR1TmLMvaakU8C0kVigBjM+P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39492,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpRtZCRA9TVsSAnZWagAA5psP/irxx2xH23V4rH7TATB2\nZedq78fNHEWhaTe/ic+8qzAlT2CowhBO4g9VE+1BxDC9/fav3FdWHNTG2P/W\n20BupOy3fotnYJ6PDm5gOMA9LmWp4jZBbbvhoq6vZ6McVx5tZFQ3l1KrwE+7\nFs1FvDflKVukTRkk35LyThExui02k3gsQMynDIuuUoBkYrZvCMGffrEqs24r\ntaVrGtAZue43w2t5/yHaQZFiyggBHQsKkmiwDyPabT6PA0y80JQW9seIxx0J\nxotfTdhNMNZMtTKqnYTNhcyzBl5qNydIyJYgFtxQEBpDM5rByMBL2sFRK4/N\nAMfw22ff2QOAWM7tnGhGBOzc7Ao5RVbFckisbZJzXX8+CjMG5JPqBwwCl9K/\nr8F2ebw70JoadDJ6MiZlzxvE+UHUwzYIAtczYY30Q+uSOnGP0nh+lFgAGofb\nnyQE/CkzrEuNcwb77MGFkCPD6g6zlOKCR0zXnXyLYnlkAXY1K2wFktzyQcBA\nleHIaNX4z9eSdTWTa0mVzgbFKr2SB1wRfAkakTvPoLUZdwDBmnAxUKzOLnEU\nugShlqN8M+Y9OkdczZEfJGfx5prpwPmjo8JQCoMrl1YHtRNPmErH5GBr8aDx\n/a/nyvzVFfMvqtIH3HSWq/4EmAlE6GdvyHyjmH80M17Por4Q7taX6R/fr/9t\nti9j\r\n=fa90\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"cc1c7061fdd962d1ba4c987743a6cc6053d365f9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.15.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.15.0","@apollosproject/apollo-server-env-mock":"^2.15.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.15.0_1621433177294_0.3299219519273613","host":"s3://npm-registry-packages"}},"2.15.1-canary.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.15.1-canary.2","_id":"@apollosproject/data-connector-onesignal@2.15.1-canary.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"dcc47f7377bd60e33fac8fb913fc33de9c3ccf3e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.15.1-canary.2.tgz","fileCount":9,"integrity":"sha512-mytRCPDO+cdIb8rH+kS5bqrLoYIBNwyLVhZrIWGYJwpeY6CuC7VUibjuLTVsCybnlHshcEBkungMj6zBLIKpVg==","signatures":[{"sig":"MEUCIARhLoBgIJmruKArjWf9L7ua6wa+bgu8JhUoGJasBSxoAiEAvFc4An8HRQgu1KUXJ3EpjIHDcBBGCmHgL1G7Pe04MNo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpVL9CRA9TVsSAnZWagAACqcP+QCwsoRziCrm5i9qOKzB\nOcVggpmyXZ1uhCVGpaxBZJfhY81OAuYugXCvzGT7WaSuKlz+EhTgv0dGlbSF\nCbn2t1iUpcZrBfIZPrVGGrsqUy32S80WEpaRpl+6wBqOy1m+RbSYJGcIKA0p\n6XmySQ3BHdwAvnpB58LnDRtgRc4DemO10lfzVh5UmbTbNONB0sL3F6jp9MlS\nnDlUzqjugVHaMtCM/3VssfuiAAPYvo8z/HNU5BXtJtbSvSKp8UbS0o/STXt2\nbRik7MhQSTAF6pCYOMA/YqFIt9+PisUbN93re6QCkh3/XypHsI/8Flsh3cBq\nuuLQYO1QRRsyr+vuHIEvcP/1n6eO8h1CSD8MGkped/UQinIYA2l9wY6K+lL2\nP1pusXVKYAzam/gZUOWOcOahbFqUUHjVHYUzn4qO8OGBEPp3mVzdIq4ScsiD\n+RrXyr/5lXM15I2QPwBg9ne78B9hdTurNVEMT8pqq/fQQ7TnT40NcQ9nqsfH\naHxf/mOO8jvOXsTsKliwxod2tW/CA2kLmNLi7ugdLf2bwuA8jvsz635xL3EB\nApYRxBcL64LTAPd8I+yfVd3jrDJhSw98m/iYoavU6Y8lSOZcONrQvDGTo8Oe\nyrSga98Q7GLmCLJzeHGloOvW8vZxWNAbg8LunlY3A5YlqNFjYeL8WaHj0kbJ\nZyb1\r\n=S5Na\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"6a7e01d1a0aa13b341e3e31dee6f7e787768b4fd","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.16.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.16.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.15.1-canary.2+6a7e01d1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.15.0","@apollosproject/apollo-server-env-mock":"^2.15.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.15.1-canary.2_1621447420826_0.2761235970587126","host":"s3://npm-registry-packages"}},"2.16.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.16.0","_id":"@apollosproject/data-connector-onesignal@2.16.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"56f7bad3120f03f67e0df57a2aa02428ab0ef57d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.16.0.tgz","fileCount":9,"integrity":"sha512-YXsZsMrQhPxIi26jLYq/mRtmSs1CMwsgqcjZASnH6WoqA47WuhNp/mNj4hbonYA360mPTev+0jL9Vnr7RsogIA==","signatures":[{"sig":"MEYCIQD/+AZF+Mh4EjwLztD6+h1PrWzNDk054VBC89aL+LhlpAIhAOmP8rOZjl1si/lGyX7+BXDt5WwmL2cMHJYd3NMkFmJi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpm5vCRA9TVsSAnZWagAAX8IP/2oMiT/yZiMl0V904F+2\na6CMRYF2GP+AkTxS3lU2lskUhGc/OAZ5w7EmuvO1189A66DY/2RBBYjwR2P/\nvujRkVwxGEymxXbrZjZNR/pgc/AoqVboy4E5e7Ey10R7kLuue1d5BUqazfb2\njRWq5gVgGlGEcOXhp+S8DyEisPZj+/LhCUBmWc1R6kMl52KnGUi4Uad9W/LB\nmOTqM+3UUfHVZbvxcuqJH2Kmj3KlMVaCxiFy1goPAXr21rM+aJTrLYACDg98\nJ7b9BskT0caQNd89NHaEOczVpoLXOjG+B4PTx6M+0MYJpCPfbubGjtFYDpJf\nu3Zx05sjz/xdhP0tiFzAfYHMJHGNE8jsfvyPChLAogVbxeq3dJAeepSrqnG0\noXF/KyonN27LqT/JI3FRJ+fqfGmqdWZRQxSwwE/4gLJfEro+EVHbcts8A9iL\nstibrsPaTrCrYpvP+yx+hbOzDIz12BxWyzUJ90acOt/+KyKQX54IkGkLl9r0\nZImmVwqr0cwtc36a6WKXPzyBsQskVcKtC0xYMaYb79k7vcwApvW2xwWceHlX\nQTCQTOBFzi5vFRjD6QH13LY/Mg6QLXHOiNLvB9DrDoYTLV+12YSds0BZBPDe\nf7mwvuep6IwvT/woIgzM1fW+oyVb2u8gF2XUqMXbep+XGqS2Mwk9QNIhGQ+8\nNurC\r\n=ZlxM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"ad284a0df6c7802af069bfaef61e51789697a4d8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.16.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.16.0","@apollosproject/apollo-server-env-mock":"^2.16.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.16.0_1621519982550_0.4462828078462493","host":"s3://npm-registry-packages"}},"2.17.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.17.0","_id":"@apollosproject/data-connector-onesignal@2.17.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"aaeccf0bc171fccc88dd52f8e56e2b67616168a5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.17.0.tgz","fileCount":9,"integrity":"sha512-1KbxsD+SUMKCQt01FkkmSEz3Ckwxnka5jc+ylrvtKwr0AOgsAWiTid9yVyQaumOJALr6KxmCdQf9j+On11Agtg==","signatures":[{"sig":"MEUCIF6bSyDHUolelNH5e9erYg8WNjnCd1jOtyoO2lAWexoPAiEA5hpdzxx1kPpoJD+qLj0DjRsMNl9a95PC49gqpi6PnKM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39864,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq/OKCRA9TVsSAnZWagAAAqsP/AyPxUD1/h8FuQDKMODV\nUZDdWMzj7kEqsYMn4Bp27zcuQSvWgdaiVgL1rFqWA+SNlccvvzH2ONqsydkG\n1M2VOJFNj+3oUpE26O5Ka0zeF+ROiIAYPJz0kXIaaYsn3vJZwr1XD593+yFX\nq6Shte3+Ssxk0nVrzMGWo8HCo070sv+wbkyZkpb0XkuV5cFkEbDKnnLmJK8w\n9scEjorRcqOoiyVP6Z1+LfSGyPfYqLe3G15kiP1ZYNwXqronW3JXVLYrHXvO\n2gNJzOqGhBKV2S+7+Fvq1LbjSnb21NVvce3CodIvCQpyqxbTvwKdl7AejuhX\nm0MeU7a0VcKujV354evTz3z2xGGEYdaiXSkgXvSky5F4K7klPS3A3U8rIzWT\nwQJEq/00YKgxvWoPUnOU1UlKC6IzRMTpnd7B9jbzKo4s1r+xSI8G2kpTnqoK\nU2Os7Kje+3U2Z6ohy80N+sHjzvYHrwf9wl4MA2s2i2Bi4IMOa70A6cd26Roq\nTRShRni2WC9dFimxOMGGWtt6XBAAlsRoDMCUIN6Yb+fkifu3f01sHSgiT44J\nWQyye7uloMuJb+FxHCkhSABXak6LUfTChKgGFbFkfa0k6VLK595z4QLxP+9N\neRGcfHFa7WQ+79ZuFFFJ50up69VaGVKI9YSAGOQStk8b8rRvaJfi6aXxQ95x\nxRNl\r\n=f9Nc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"008f0cb96c1a1c1ef39a35216e906d6eecd3f11a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.17.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.17.0","@apollosproject/apollo-server-env-mock":"^2.17.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.17.0_1621881738308_0.21909114043886113","host":"s3://npm-registry-packages"}},"2.18.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.18.0","_id":"@apollosproject/data-connector-onesignal@2.18.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"35a3670373de1a583bf99b17a80498eec8d90121","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.18.0.tgz","fileCount":9,"integrity":"sha512-8qhRNqLKqG8Xt/VC8bgh7uI75Wff+bqGCiVjCgsXiPJR0jRcpxFDC/aG2XocY0z0vaES6KsAVeYaF9iANMOXFQ==","signatures":[{"sig":"MEUCIA5212kaOtXq/cyOfXDMKtPF6uJRIPXawSY6/0DDFj8KAiEAreVNu6DmfzUd3szcCrfcP2YRSVNvJhyMvAqSrNwmNck=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgr+OoCRA9TVsSAnZWagAAeV4P/RcBHtYXQY2lpP/gvxF5\n+eaa3JzYyfjTx8GldAYairjMvp5flNYN3Ubb+yZoCY+zlTFE6p49lgkaH3RT\nLfTbeWKTipCENO5XF91LJL2hNcGkRSkDPBUd1hGoA2A8MPVYjVtrSnwl+WKN\ng9DlA45Fj3MZ8uNHV93nx2T+cuhnaMXA00ayBqdKe/D8oOjnnFD2JhOiBab4\ns84imr2ExIFTVs59BZOoS3u1Jyk6d40IjtBp9MxAg40djGiB98JtR4SRCC2Y\nfC36qScUucGKr9yq9G1ltlBlpUyztLpeiJvlH4vr081hCZsQ0bE1CZssUupW\nxe7jjXfd9hhcRO9i0DuG82FYOIU2g6a+mlJmcvqtaRgL4x+wgXkr5KWQgv7i\nBfLFxw96gSreH/gdGJdqseU8PSmrFcoOGYbA0pCaBeKoyB+bXpUt+kO0qrzC\ngb0y+9xoZc7DNHDF/B5KQlVRHsC75Fy823gfujlqwcA358ciCfql9OPMAy0v\nH26a6Cv389Y1isay/sMdy9nuJvvRu5a0Cn+fDP9VUtoUboogDRG6CfDWSTPX\nLz2uaqUSyMCGBpYtkFZwzo6x2x3SlVGeEpSKQYfP9vAs4kF4sRTd731QX8zX\nP4M+xCcH11r0avOM71cd/Rkk5JF2q0dbkhR0/q6R72E3RV0C63PH/g4uFgJ+\nbBXo\r\n=Kdib\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"ec65d9c8d6eebaa1f85e64a980e8af7e5f41e6fa","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.18.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.18.0","@apollosproject/apollo-server-env-mock":"^2.18.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.18.0_1622139816297_0.4753361606589115","host":"s3://npm-registry-packages"}},"2.18.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.18.1","_id":"@apollosproject/data-connector-onesignal@2.18.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"761679c526553e4eccdadff4ae0805e1c8e53351","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.18.1.tgz","fileCount":9,"integrity":"sha512-yKrJw+fTNB1/4VX75CbBgKhOCDe7h7ZkR7Shk3DPw2X6fsOr/lnoRQud0Vn6CO48rQrfA3JIHjwUiuTePARlnA==","signatures":[{"sig":"MEUCIQCmgTszqb7YvMIrsZeW5NGNN/LCELRdT8lVGlj3lpmEFQIgFDcJyR72Z0FwN9guxcucDCni2gHSA/FjEmNBpKuaUk8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtnUFCRA9TVsSAnZWagAATssQAJEEV8qTZWu8rKK09A79\n8Zkd4rqTyGSy3o4jf/2K7pnCUfgB5bns5ST6SDJ1O67Qhti8ghI+8OIKpks+\nk7FQx/qkOXWRLTwpIVV1YzC6t8meNYXr23w/O8k+XdSgNGzt5C2Ue7MU2bPW\nWiZ5Coj59T2Haa/dEBezKxSWPiDN/msPoPxNSbgtG1PQLCo53xe445F1LKjL\n5oKwF6e7DzP/GjK3vwgxHLAyp01NuDHop75Fi6GLtJsby+qUR9oz/4h+mDhf\nwDt2F3PTnDbHpxkUGLAWBjelMV93s2tclFvf27WdlyNTc4dC+RsQT41bFpcZ\nJDcFvkHqO3SjNNfH9h5t43uHvtLZyexFadSnfqPuJRkNgmH7M7L4jdJHM4Tb\nbc0/yxA0yRT0rNhBlqzZqK4sGLZs5+vyZD8hqz7s10ZiMLLpEl4/KIAKPHUd\niu/UI9dZPQLOfsYWKvISPYHWVvIG6bb5J2SLDKBSiAOsDqXjeQAjXO62Ii6y\n43Q0JOha8gGGcrA1VWTz0wRmAHZDDQwZCPWptApV3cBWKASpEXGLVKV6cS6o\neb3tUfj8Rr0jv16YSSCUXIfecL3xZX6M4Qa3LDo9aIAafUaJeprtqO3/ex+Q\nSpmHx2gFH0Z8hPy+7yHKqDn1eTCnTxJgIqg3RUI5pg9Frtq319HB5NoUNnYW\nDdaf\r\n=gcie\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"94fd41c7dea0690b83e5e8796a06c7bdf0a7ab98","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.18.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.18.1","@apollosproject/apollo-server-env-mock":"^2.18.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.18.1_1622570245039_0.17992462248232877","host":"s3://npm-registry-packages"}},"2.18.2-canary.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.18.2-canary.1","_id":"@apollosproject/data-connector-onesignal@2.18.2-canary.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"20a7987e9dc88a6e1c678d26e27734bc8e875b22","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.18.2-canary.1.tgz","fileCount":9,"integrity":"sha512-C1e4HmDSblH4N6CTZmDDcUs5GIbhq0dfadEr9OxkEI4GpXy40qW+/VeVr24RVhXe+4nAY2EImIWxx+LM1C+QpQ==","signatures":[{"sig":"MEUCIQCB4/SNyu+An+EEd1MgtYfMvbbep7n05SRhrPMPcBHMYAIgHvvjDrTEq662FSl3hvO8yAtYZFaIvGvMXaorP/AISN0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguPEYCRA9TVsSAnZWagAAQZYP/jKeBvGiZCUaCRtm0yG4\n9bxmRoGYIhN5VvTA7Bg1qO/n5E0+5GzdqvZDbYLgBgj3igSzVxWksioWFsEW\nBzJYJMN26LyMeacigkoOoO/4gH79Wmbbh10/d9OtmseLPkqjRVSGIlqqTbt9\ndPQgEkVKr8PqCrM4hIhrvg1Bub04ISjQINchn2bvAf3ZjrtR7SZRgDwzEbPD\nhlYSo8vsA6uCH8UeaPPlAhHaHuCaWuKKFZGXfBLyrEBsttsfSMJcOE9fxquX\n8ATIu8nGXGhGyp8FsgJRGaiZZFWwxMKi+J8DEoD32hqzOewECkd4Csd5yj+R\ndNzki28aSuZ5QVGkJGs/zp4pY9ZqmUY07NUroOS6VnUhrF45MGm97+yzLcSd\n0lng0v0hAS/okRFQRs9xtqeJbMmhJemM4aep5inaHL7/3dBZiV8ztY95/75T\nIW0pIbktY97CfQxkDAPbWSmMTtBR6QlIFSjJLjHAIxvmC15Edi6F0kejPCNu\nR89emVaFX4ewDq/NbxondKs+aiI6pVYfw0Ldy0g4icwkJ8WlA6ncKtcNODTk\nXqaTrmMC8UnG3TnkVhyc2Iuv0CquVWcNPGd9VCDBpvPJcNBdbfEUvjQCRBGc\nQG8+WJewd1EWrAZJojcOSqrx46492RCjnPND2gaYX8OJGENzGH0UyYlPw45w\n2D1v\r\n=NhWt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"9658282b52e2f0e4369bb49cb4b09fb0dbbc12d7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.18.2-canary.1+9658282b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.18.1","@apollosproject/apollo-server-env-mock":"^2.18.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.18.2-canary.1_1622733079889_0.4941925287051274","host":"s3://npm-registry-packages"}},"2.19.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.19.0","_id":"@apollosproject/data-connector-onesignal@2.19.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d07f07ceea8406a6ed1d180fd71b97caaa91ece7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.19.0.tgz","fileCount":9,"integrity":"sha512-v9ubPV+PJm0lv09IqnRyxCZvSN9KpbCzWkR7cjLY9vx96EhZRF7uw0KytXNsKgulMsXxJFqJsuTW5tTXBpW5SA==","signatures":[{"sig":"MEQCIDgx2BR6N90bdnA/EP/22ffJrR155ZGD3GqbTebV68+HAiBgt84EofJ9wGielqXVsTOHrD2rYqgR6xSYKHwFciz6dg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgviR+CRA9TVsSAnZWagAApvUP/A+iHvK6hRuTQ4K73rQS\nB+qO/IM5qAgnIezLgb79oarYoUGJhDOtqzyb/INOVpkIM/UxowJoU66LFGQn\nsY/PncvHgseSFEqPB2ya5ziSygDdkHbjN9JKvakz/qXIkAwz2/OTfaD6FM8c\n3z1gRDPGRhRo6jfIcZlWiJE9Q3v4ayCExeQMblkbYiz/401Gn2dgD75SXd/d\nd0l0GaXYBDM96XyBCvyC42LU7vW8CW+N/wlbc8BY1VTNUpGFsIHhnHnALH9O\nDDOlQwAZ7N4eBuFR4nUG3ja4bPAAauHoGCkcnDEZr/EQHLKlCJOX8rUd8bxo\nZYi8GWHj0TX/+iECcJWkC+fO4iKovQx76wIQW0Jxi7T7D+YShvBfvduSSyaw\ng/MDrqOG+ok0KpVIaeA2p8UaJiOf1BnqZ0WxwGvYS2y2e63AQ+VGs3QOo8y6\nkz7T9wm7XEU4z8xkZZy6GbyQCYLzoVMsBaepQ+PiL0SBvtr1xP/rLrulL6Ii\neNyxI18VJRH76H7fUWo+G2URL4AOt4QFl5wLeKb17OFsnw1H7ZWxe9+kK68Q\nwfKHkDfUnwLv103eV4hU+QI6JDnRaQbRpGzrZr5/lBtrghpHzvsB7SCrVviS\noUb4ZyM0fgG2e88rD8TGNeb/xqXMttiaLcA3zu/B1PvQEBEX9VAGyTvxwIz5\n6OXj\r\n=FnhI\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"9ee85feb3e1be9718c6996ddeef78b2a5aed34e7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.19.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.19.0","@apollosproject/apollo-server-env-mock":"^2.19.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.19.0_1623073917853_0.3037804060319709","host":"s3://npm-registry-packages"}},"2.19.1-canary.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.19.1-canary.7","_id":"@apollosproject/data-connector-onesignal@2.19.1-canary.7","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b297ec23974c5bab5df6dd6c40b49114e65d5759","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.19.1-canary.7.tgz","fileCount":9,"integrity":"sha512-rBu+VtYRWfu3feYFAcy6lnBpeKdsDGjj8pfN4jJ8uRmMGkDW9mV8C8a0//c92LTNhAaMes7kH6nSMKpMcW9LrA==","signatures":[{"sig":"MEYCIQDjzvJoxTD8xB0rYSybCtZPL+vt+3hIjFYMDtgVl//qCAIhAMTJpMykkS6r8srF1na8jWr7V0wJb+PqhpJSuYIMO2qO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgw3htCRA9TVsSAnZWagAAdmwP/jfXNAI0hXz0u1VlHdAW\nflhDMNXrbEukZHHlwQIYNfZ8sLS6Tj8glTHawxcW2ZY6z18fspRxn4dajvaq\n62lKlowm6Bc0GRxHnFvjNFJJuR0/Fngd9VoqwaweUWOJI8478wcULubzqSUL\nxyI9vPQoCIai6kHa5Eu48znNY3/hVpShNl0tE3dToPD09OfXjXx6pzCTfTHf\nFMZKWRCtHLkiR2TC/AZvu13Qrjm7NeuJ+hnvevBZjnJwv6lRka6qhGMP04wN\nrpFFd73KxY4UsWi4Tt/7nUVqs+MVnoNA5mQh9zBJbwMqzXyglEiTgbiBI/7/\n5gg8Buvf6+DJfYC2h857mDWoCMmvBULrXYNwZp1CtWvU2d0gmPUJEJZpEM4M\nIX4z9wqUrVTW8H58yt1LAhBcc8xaqkxw4pnOZTKwqT0H7RfaoHCGGVdHaeJ4\nUN3Srgf51itGW3rrpFKp7qVcQocjVDXDBwqOaGeGyP0BIMxP6vj4bKavvSGq\n4onNQBj5E7AZUjQdE7DJ0SE+mxwxLnEYRx4+inHsWmo/Yj7PioMhkq9GmQhz\nfvqAhqWMyD3GoRyvJTuJe7BiDbzuTlFc9lJzXcSFoUPnA/7hL7CRfd/nuwJ/\n3SxT03srrp0kC44NqkY3eINynYHy5uty390++nMXzqT/YHahsiaOMJs8VcaS\n6ip7\r\n=94fT\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"bc6ec1db336a86a2ccd530ad3063aeb01b05ba3e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.19.1-canary.7+bc6ec1db"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.19.0","@apollosproject/apollo-server-env-mock":"^2.19.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.19.1-canary.7_1623423085663_0.7014019491370249","host":"s3://npm-registry-packages"}},"2.20.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.20.0","_id":"@apollosproject/data-connector-onesignal@2.20.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2966b87dc17c97f4d785a57e272ddcc3e839b016","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.20.0.tgz","fileCount":9,"integrity":"sha512-urd2CEeFQ1rjN5Hm2bbSv2jk+RCr/0cwJgK291uUEKydZhW+pBun3M/a4qhsFZE97bRp0YF63GVjQNVMI8skog==","signatures":[{"sig":"MEUCIQCq+AjXAuckzycKz/QmGhiIDFxjexiuEUjhgjSFpOLmOgIgc+OFGZIb9RCSTHaw3ulX0L2vjGCCzttIlc7AEs3tp4s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40609,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx09ICRA9TVsSAnZWagAA4BgP/2wyWGtp9ATjofikvEIV\nc5Cbr1TPqc61Ga+jLtolKJzBi83TGwHVK2+zOqtLZUUqz0CCvmxh3M6Jvkq/\ngPuxEyowGTLIy1evfKVWGmcoplp4YoDZeeTDc48wurkaGWOS8GQp321sH3bJ\nk0i7K836MAIljqGVuHUD+FqTeLP7MBDlAAUcs5PERii/67DpRehPVcfVWduN\nUcZu/TuAziStwWB10+xHpRVkSntRKcGkzrf9Wmy7H8tYef6jIbjTdi5E8HcP\nmFg0E61C8PR6KQ82yRuZisnAVmd+pT95Ig3ilDt7bwtRULEC+iNiOUkyCGL3\nkE3vuOpaVhAp1Ly2hskTBgLaCFNIbizY6kAT/v8LGdaQL9/f7IAJDkKtmcun\nW51BZ+UoTiU1sJZdR4gEf/pM1aO2XYE6gUntO8G6jgln/5+AkwlPkDJltIXS\nbo/1SCLzkFEz/WqFPe/4RPW+417rGFQiTSUxUiH0YN/78Tnf+ZWSmZOYcYPB\n3kyc3ptwHGkZfuOdinPARLbPkxCxthqYFO9RzpBplW94gR4boWgqASXXRlQC\nWbXriDYjEFZPxD4IET/4F0EshLPqx6uui+StcXsIXKXldA1GW1WUCbHAmjPI\nYAGUovUcY9XMU2kSWtZkuOL0WVFP0e/GbhsH/OIFzfm5LkosgNI97O1Wn7aK\nHgo6\r\n=Ml0Z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"1495867f88c35e8462842b7f09aad1fb29d896c4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.20.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.20.0","@apollosproject/apollo-server-env-mock":"^2.20.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.20.0_1623674696704_0.30930201036575444","host":"s3://npm-registry-packages"}},"1.8.0":{"name":"@apollosproject/data-connector-onesignal","version":"1.8.0","_id":"@apollosproject/data-connector-onesignal@1.8.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4971f1c2acc295458495cd649eb6f57311c69cbc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-1.8.0.tgz","fileCount":8,"integrity":"sha512-S3zRPqpVean3HFCT7Hec0dogGpp2x3RWtKJxJJKtBK0lORYvMVNae26pGd2CHJrmTAlHY1RlDG2JROeEHX4zZw==","signatures":[{"sig":"MEUCIQDwp2jpUCRrBPMa2Kd34FuOi41cj/57TCPYDOEY5Nj9qQIgX3MuSZv0INtXFQURXQG3bYrWMoQR8svtsM6GWz7EzD0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyfZ7CRA9TVsSAnZWagAAd5gP/A9wxmujkKlI4aoqSlRE\nbmseQVS37Sw5T2Jd1GjOOjVEqaAH/pKPsCKtYDSUXuCCy5xgpZfHJxsDwqfv\nssRrV+w620opg1lPJ526nwKEN7awB6FIiHzhEi9XhgZb4TPbawCrk6+BGEd2\nv70HiB+PaECFq9F2U9hJSd588gCVj0OLMYLx78o6XeOaSZ380pmr6SDCFjiA\ndhwC9SxYA+u19IJ7L1t+vwAVOBaqnYgjJXwgGWZ75hcDOWqCK4eYUHQxsM8j\nioMx5Enc6/0X69CrveiiU7iAt1V6j2B0tZQX4YIA6L5fHX+RcI72HkzWkKfv\nBGkUKpDi8lsY//gez3eDc+iFVAuYoIe5JaJ6ctB37H+xTWaYZPSb4BBZls7Z\nY7YYeZGqaMLTKGXekBiju3/+Qh2fUTrUzRRZkELPkWgG5O2Oww60P9H73ODE\nhU4g8FSpxidpw9inf01v21Z8rtRYOQelzW9HrSxMERmPbR+xqCt+9zD70nyu\nRwvggb/4cE6EnWJDjtU1Bzxm0aYrIIkD0mvIrRmeP83dWwK5xEjspnPtiLjl\nxLFMwY73Z3b0oH0E7B5Lh2gI9FzNAwbNMaz8QTdqdREeqRElhnQYoRqAY5+G\nrrKBm2MOIiAWnOngAKypth6FLxomH8jNX75ZgKzDYhEtc6T1JTGa3ggYYv30\nBrPM\r\n=ZV1I\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"reporters":["<rootDir>/../../scripts/fingers-crossed-reporter.js"],"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  static navigationOptions = {};\n\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","gitHead":"84eac346b4d986a773a06bb8a9cca2c3ddc54245","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/3.14.1/node@v12.20.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.20.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^1.8.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^23.6.0","graphql":"^14.6.0","@apollosproject/babel-preset-apollos":"^1.8.0","@apollosproject/apollo-server-env-mock":"^1.8.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_1.8.0_1623848570964_0.4269493800311899","host":"s3://npm-registry-packages"}},"2.21.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.21.0","_id":"@apollosproject/data-connector-onesignal@2.21.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6d7263f9ac047a9400e54896becc2978eef53998","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.21.0.tgz","fileCount":9,"integrity":"sha512-8MTEAl9+gcSWiD7UaUgnxS9eccX5lQ8VXR+cdENyXC9+oMlpcxRerJ/2wl08+n2V/d5HFPzMGB/3zMpV6FJLRA==","signatures":[{"sig":"MEUCIQCZfdD3qFajdvkP3Lso7SH6zLI+7tuYTXAXay/84JtfjQIgQ3DP5MVq1svbSPcek50VDxOqJsWsqQHWPgD5QoEeigI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40795,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgymRxCRA9TVsSAnZWagAA3ZkP/1by5dIFtqW3sR5MSIUA\nwdjRSu1iKdU64+JnTufGvOKG/XTUaqIyVBE6b95X33+XDOV7cmxRtHK8yDL2\nGJ5/UIaUzpQ1MAYPvcbkuG5BIazzvth1D9aWFALmNCKy/tFS7i02RNHap6DI\n+flIM09W4e0rYSi0p1Yg+zPHTN+eJzLabDPYFBOidpIa9ddfgfdJjFveEYub\nTvCIXy4frBgIYf+I/DJOF9zLnXBD1/l9WpKVN2iIXFtLiWZvUo4Woyd4UJV1\nNanpd6RRzTSAaqJrDpvPvZTwipZSwkSML+qWRmVII5SX7mwwZQ0ebTTHNWEF\n679MrBtKv4Fr20Y3ChB8os04Ezp4kEvxHNV5aemLSwHuaXrh0TQngmAHpT8M\nmW2pxy0sEa0rTNo8PYqcd1G6WT1HJUP6P+eHt3y38txfx7Kvwv61pWKmUVW2\nJPSAZ/uQjatAN5WsVGwuMdMBXbIWE2D+KLJ8bfTN4MntR/EBpKx8N47xsEFa\n6vBhx7d0Y2MV6Q4v7FwABF09ocXAg6sClTqQPuZpZjUgWL7RTdTbz4bklI0s\nd58piCMqq0nzFu4O0Gsj8PGcH83XLHO/As/2qs2lomgxfGoVp5HefmpfVzGq\nhYX3R+jYyeUSz9X4GJPKXRrD02MF+OKoz542nlz7j48ZpgSl4n6s8psv7Eo8\nW/45\r\n=howk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"e005cdc1709f1c91ce3ba308aa65ad2532a08630","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.21.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.21.0","@apollosproject/apollo-server-env-mock":"^2.21.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.21.0_1623876721233_0.7857326887395941","host":"s3://npm-registry-packages"}},"2.21.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.21.1","_id":"@apollosproject/data-connector-onesignal@2.21.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ee94d026b036f7062246fd7128d0687b0ba41423","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.21.1.tgz","fileCount":9,"integrity":"sha512-NE9xdK1uN5dC+CZy15dC0Wsj0fJomfFDcuJcP2l3L7NleUXQk48csxtLiql/2lG5l4pbPN7dtLMqd+W6f+TdAg==","signatures":[{"sig":"MEUCIBHgijbQG8FE5e25SQ97mi65qoV5t9uqVJiHeZ49nc9qAiEA/n2oX7ct62UFk5T1ENdidgBAWQtDLnDe655Vwh5OUyk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":40982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgy26ACRA9TVsSAnZWagAArUIP/13IBTAkBRtlW86iLdON\nMEoPp/gTXfSbNV+YyLtb0C5hQEqZgjlrh3GdLfkfGA894Xja9/wROFXenklq\n87DkXprnZlOM79VY4vithURC0WdgXSz7UvHK1iAFTU81SbGftjDU3EifTPyc\nNix9Lalkq8090RJm7qC5+gzPdZav8Zk0HiiOHZzqMGCjL9Sp33V/Muy9xBo4\nUCCMacUzx0i7mjVm28Exv3G3TBowCCGKxt7SIzdrEv3E3YkEJBjrh3O+1nIL\nRKoDjoTAsjzOBSxwuGKMaefceG632iE75Mk5W/ONYrOjENrk2AT6/fyfh4vG\ncneov1sxX7AXd9M9Q4M8zzIWcIabnAvZntq0MJsMUlCPnaGZfL4Jhxnu0ysf\nE8rVs7gFgY0xYcruxT0mEYme0MTLZqT8CUkqTEYchkVO2Vn19S5D0N61wbb7\n/hPbNAE7mJgA3RKQqC763ga/7cD+WrWmLkPUAHfHBpkyKAOj8f/7Mx6/iUhw\nNdQkeUN8fNAtFeCokmO8xif1X7hI0dsEfjWXFskxvvU5SJokEgUzATO92XHY\nA583HdsfekJ49B3+4sK3GJ+sV4N7INYcRVnyDbb4qnj07iloiUQ6F9o7XvUR\nRW+u9YWivkheDtTXLBHEWeqLO++KUYOER+2/9geugjmftlFZUA+u9u4MbmB+\nydlU\r\n=uxCM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"ea79f438b8c422ae19803d793f96d44a0a4d98af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.21.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.21.1","@apollosproject/apollo-server-env-mock":"^2.21.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.21.1_1623944832090_0.13849715133694462","host":"s3://npm-registry-packages"}},"2.21.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.21.2","_id":"@apollosproject/data-connector-onesignal@2.21.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"65a3ac579cbed27d9795487e12fa57f9089efcb0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.21.2.tgz","fileCount":9,"integrity":"sha512-oy9//t4BbIVMeuqmqZCU4WudtFML+b28KOEJTKpHXe6m2Q9rv6z5HVdMRmZL1EhjLlW5ViNhqr4jdnbjdU/7qg==","signatures":[{"sig":"MEYCIQCLptu+L/jZ2knGULg0vLGKId8/kLB89dVsZJBmeoowZgIhALq5OgUtCKColqwDdsU6AjzA9N6aLJhRWD3afXgBVvnK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzN2lCRA9TVsSAnZWagAAiQUQAIAKOxdQyW5wEuVn4ymK\nKaLus0BWwkEfcoPaGjRIuJZcKAP3pB2ESs9OBHKYWYAidG1ZZdily7cFjech\nLB0mztvi2M3P/WUI+4f9d4wHjJRvbK6Qj5Qt55BZBehgrMq9RigzBYT3Q1G1\n7bGU8oeu7D9ZYxHT2pAtWypo6Qk0yhOp881f3AEAlQY9JRrjAWqzkC1XCwRL\nZS1Xmj7YNb3cUphBv/CX+/uhBWvs4l1/xSN+de60jrxFiQRQS9jlkpVNPRu1\nQie2v1MsTUwVmk2JvqBeKjJDBLDBoKb8YDa4d8rA8Kag50hf1+vzZ/iODYuL\nH2nmttxkji7spuwhWeYaFOTxALD2UnGxVcDYW0HJtQUQkKNxl1oVO0RxQ3Wv\nqBg9L8/6+R96/IujXk6ELthate4p9Qcn2Ilnmhr7wrF0NatarM621Lo9Qlxm\nJAo07q01IxbqOS9SYrhlusgwG3MG1Os5TFTur094vGg+1BHUKgOeBKDMCfEa\nbS0WHX5/BQtCogfW5CSxJYqhKDrJ4ouSv2o5/JpmPGcQwlxPoi2UPSf464rd\nerDjrJ+coFLtjuGz9/3+hmoEmneW1VFth9q5HzXUfkHVNwkkR+dKDmOeGThi\noWUpPKhfluJ/21WKV8qFN7yY54dY4ySERQYAPEgIA3L8X1DZveDePt7l3Huv\nUpWJ\r\n=WXCs\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"92fb733c108694c7deed1f564b3eadbb19c84dd8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.21.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.21.2","@apollosproject/apollo-server-env-mock":"^2.21.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.21.2_1624038820628_0.05626642147374028","host":"s3://npm-registry-packages"}},"2.22.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.22.0","_id":"@apollosproject/data-connector-onesignal@2.22.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"904091fce783ee5f97a5f7c6682b20adcb912cc0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.22.0.tgz","fileCount":9,"integrity":"sha512-I/v9BnOJNuukyuHkEBkghMtFihWXQk82DjJ56wJRHYadoy98a5QdA1arfqznfMgDOS/Vr7ZpubK5YTyyt56N7g==","signatures":[{"sig":"MEQCIFoQyk5aWVJAQMadmAAhP8X6XlDBa66XbRqV5JoCq8/EAiB9jQoQ/RBrDue7itcmj0vZQBlV90CO0elARr+B23Nu+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0313CRA9TVsSAnZWagAAvlMQAIUjFyTZHxa32peQQbYQ\nZuGFsyognFjjCxb+EgZNCI+kRo1AZXi6RkgnAgXfUIpD5fYpqJton4ApQnKE\nXVsML0DkqZw+Plej8pgAwmbq9oX/NzZL8/Xz8WgKYV9mDP74ddxu9zYAZIi1\n/1FnRdasJrb8eN5RItcG+sVYqy3fKya+ycRtMHTwHEzfWvUFOo3vF21rCk/6\nLVsmqNGlRr5HAXw2SRTcpE7g30MebgAH6fD1BKrLxCz+i2oic0ketexv/A+b\nWBU95bXIL5R8jDxKjDEYiTR7fvZTInTstiQkRIzPOOGrCiKh8aOdeFgGa02B\nm8iI/uII0q8XDN1WozU4+rvkk7gLQLJotI6wHX8tp8VamC5PIiPH4JyNsbvJ\nV/nkiIT0aijVB9TH3Tq29EmG74gQMem3kSDlNxt0k/rwg+0g6a/b24tkk6/l\n6pTnwlgoAEZ+fhdN9MiX/TT6R3KfCuiPKqmIKc+TSqmjQBfds8XPtM9En5So\nFs3sTV/Qwi2e3HyeUu/GPfQQ5triKKmufF1mEfd9FKI6odMSpecoOiO/GIGk\ne+AxOsxgKcLP0pIjXVTlMurNdJzN3D/1v9X2ylIbSxMhQ6N8bpCyxfA3sPN1\n0gOEK602/yzJUd/S9lHULMWjJrcj/ncFaME+t0KwSJEnslG2eRmGT2RXCV6Y\nVeGM\r\n=vCmT\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"cb462a535f0424635319d010a8cf51aeebfa2512","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.22.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.22.0","@apollosproject/apollo-server-env-mock":"^2.22.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.22.0_1624472950690_0.4601112056280363","host":"s3://npm-registry-packages"}},"2.23.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.23.0","_id":"@apollosproject/data-connector-onesignal@2.23.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"22ac6b6c46e13a02f60876f15c4b1d89515267cb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.23.0.tgz","fileCount":9,"integrity":"sha512-USTE6wb1MDLwaFzwvMirryz0GLKqabZLJbfiHVhTrv1+dojAo1HeEpXQwxiyiniRQan3X/X4CngXvacKjhVTqw==","signatures":[{"sig":"MEQCIGjBba0LgtkjQU6FvBJ9aVqzGelCXJ4lPDsjW6JlyXQUAiBUqFQJgYHmWoKy9ZJ/xd7u+HTmUGXgdNavSCEqkmyT4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1MkfCRA9TVsSAnZWagAAJscP/AsgLr0madn8gtjv9lKO\n0i2TNS5t6IdqIx0jnPB8gEckXHXLzRfwZEz6yOWUctaLw6L03AVEdggVWrDR\nT1pBXW9v7SW1/TGBQPiDHaAMqOkvase0SKLdnzXfCg0wsQy1JbFvfy29DOQ4\ncjEq3KYxfEcJjQzh4gE7e56VdmoZHMQetNrb46/JgMgdWyCxIHLZdprSXYNW\n9FDL/FdQBxyNmAfOTPMYzlL9aBXdot3xcMMTo7beT41dyLltD6Kwj4RvJrsR\nXiRXrlvlDWgWOPR7IHt5kJOIhEFP7Q4nimp+DfnH70xHA3r6mdVgFyWg53cg\nSA0jSekHV3iSF+kpT6t6Bz3QiWQBw1C4hAZ9U5o7FkurFk1/dRC7FYgvBqOl\ndXOyb7rkcXUEbBRDGxrU5goHX1oQhmshkFIZ1XxTCJm9gl0C0JnkfY6wHF2D\nAg/kSBiozganKwvroA1Rycj2sC8hG376iTRTSCHvqnixcqJJGbNRh5v3Wdw0\nx32HkwBruWB37MF9DiZVHiJwOXEvjFVghtaChBcx2mQtc34OYFt7pv70elqd\nghUHPeIHvQG61OcdklktmXTHr1TG8cqhcaqx57VA7W4XVLAFHaGbdNRkaRP2\nc2bdrqdq/R+tRBZeDS+SyutTozMtLNOxpHLsnX0QIpzdsC9JKWvO/3NSMlkd\n4ngQ\r\n=ekTG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"de9125d2b9149891aca6804689dbadfef767568e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.23.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.23.0","@apollosproject/apollo-server-env-mock":"^2.23.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.23.0_1624557854849_0.2173246169885228","host":"s3://npm-registry-packages"}},"2.23.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.23.1","_id":"@apollosproject/data-connector-onesignal@2.23.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3b92bf8b635a8e9eacd93835f08d6f887193e4ed","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.23.1.tgz","fileCount":9,"integrity":"sha512-bx7SQ+5Y3zIz9dGa/Wnhiey+axJGlJS6qLqmUwVfggpdvY41jloXZgprr/Wx8X/b9a9apDVeo5j4E3F387Jg6Q==","signatures":[{"sig":"MEUCIBdhHwzrDk4+soaepm9Iep2FQmtle9Zx048iHy2ap7rVAiEA/JmKWSOOWBC1LWr5LnXPf1Zbu+CGd9/259AvYAa+vlk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1NTSCRA9TVsSAnZWagAACZ0QAJjDo3dz/mkfKPta9OPo\nAv0r1vdfrdyDuADjF9s11h+AN9mmFUfhPPTnmy3gsAt3J8inmzltUwOOVGom\nejLfYVAK4qUkbYJpWUWwmlc3XlLJpekB8wys8uJ6CTh8cToYjNSgBRCLyMoo\nVQvIXuaF5fyWYaUv7QiQgWihu2yNY6Xbl3IuKV8GV9+Ll4Ub/78NuaKDJyip\nMN7Zhkl640rwoyzkCGzV6gzl3X3l4pCVLHsqKH5nepMVnzEDjD+F1yom040Q\n2r5CB4NkYhPwICmkSpJ/CX/lIbURyvjWXkvzDWBblttr4MBWLQnILbOkKPl2\nmjHonBSayY14CapGUTiyvlyhwHboPV06GWJcVNpaZckWp28eB1yc+hgrCzKz\n6oHe3voJr4G0B/Jl2HNRcc0UZ4lT2/VbD2NMW3CCGgI0r7B0jzejP+vuRYKA\nDa2GYpKacwrjP13W5tBbiJ+T7XnDrFyWzVbY3vRS8Wpz6vIimXOQDMBt9Wnk\nHgGyvtyyPL3ScokIUll1UyInawaz6dAArqrCA3OQrUv4l/fB7DfOo++lG+jr\nBkMVrSA+z0RedMoE6b/KBcmCXvkR9ht6mIiqENr1DiX9W6LfggkDyDmTNUa7\ncrOFIE90IGarrYyVlP5EBeRYQub/yDqiGqofwSCCiVIatO+OgEiwQ3QrEvro\nohXh\r\n=a5RZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"2a603ad82333f4f968585b971e9fa67de2d59726","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.23.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.23.1","@apollosproject/apollo-server-env-mock":"^2.23.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.23.1_1624560850187_0.26052775701888153","host":"s3://npm-registry-packages"}},"2.24.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.24.0","_id":"@apollosproject/data-connector-onesignal@2.24.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"207de794110bd8ebfe7125bd86866e784ff84d17","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.24.0.tgz","fileCount":9,"integrity":"sha512-peL+fKtPO5y8unHt8Tk6RSrREmnJX9HVXp1c4JoAVpWM8E/LJXxi5cljVjdyQRY8aVOIpSVaIvrB0DgDnJVwhg==","signatures":[{"sig":"MEUCIQCNR3bNLUYJq59d1fMk31G/zcdojst/iMQHF8lsBAkV8QIgGhLDSuVxtLKn4lAv/co0gUKSBhUdeAb8FopeKMgr7FM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2dr0CRA9TVsSAnZWagAAWZkP/R8ELcDzn1ANaGCMgvo1\nkozcv3Ubt9LSgSJgEaddZ7BiQjrXCKSJrhTy7W1spu0kl07hVvOnGsGb//EH\nb8f7zOB7NJxSoNYO9BoMPz0WZ1vkWlZixtSFsaXT1ytllgNe17sTPfPbP/HW\nK1y1OfSkNUgIGItHwfBwf5Unz9Tp5iRRrpiJunMLUI1I/1PdNEOSoFdZXZ5c\nxZ2tbvYxu6iVRe85Pa4mj1tpoGJAB2+Goc/neP+3PDf6C+nt4gz+I+kx8cem\nDeiUMecMc2Ldbz3x1WhpFxO4Ea1TYyD/H+ZUHdQa8ZinW7hmoT/2x4A4Burw\nE3TNYTjqj7qKUQL30keeo0vXzrezxa0RJmTp/mX1g1wz/3mCc6nRHdEjai/u\n4++/Yd2e20wgemWKYn6vuW5c4Ajrzk3Jh1+wX+Bd4O5vP1H4ZyuSV0HlrfcK\njoEWVmdNY40nKt/je+JfgFB4l5GpY3fXSBZX8IMd/PNtK1qPuszDwsv6hp7v\nIVuguN/afXjOKe7F5GKmuYsRbSel6I1q7ikkBSZk42dzhYyg5/a7EK0VdaaD\n671Y5izLbMi0qkJBq68PLIDGTvb8P1uWl7y4jSaxq3Pvj3LsD7kjNBWgweok\npp1FHIiqXQLLnRccV/UWomXdQFXUt136VlCVjo0oOOp13woaA+h7kssjVdpN\n3oGe\r\n=t4W8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"750290295526fbfe0a2c6b841233acf7c998c2b6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.24.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.24.0","@apollosproject/apollo-server-env-mock":"^2.24.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.24.0_1624890099998_0.7842336216810011","host":"s3://npm-registry-packages"}},"2.25.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.25.0","_id":"@apollosproject/data-connector-onesignal@2.25.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ffb08ebc1b029dc7a65a481499e864b5c3f082d4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.25.0.tgz","fileCount":9,"integrity":"sha512-lbnp6m+yHVeJjiWCtuB58LnP5zS3RWUouasYUsenY/rP7wDfw5tDXB8VcfdokmtB+UsY3j9YznVJV7odnScAng==","signatures":[{"sig":"MEUCIQCW0x43FU24tQ40O5IkGkt9znJbt3S2sh8QjmD1FJxOZgIgYxvwB3jDfcW2UhmFaoBgTCZvjz5GkV9Rp/Out05d9E4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg3JsaCRA9TVsSAnZWagAAudsP/3gEmUxO1LMHlm0hi4Gg\n4a/KF8iCKqOBQn805wZ7EBlOGQy7EqtEXTr6MwXzXywf35uTqEH6kszulfOf\nQ+ueO01pF/0j0RgpXdl50EmiOlcPWyiFv8u36knJeRtImTTXAbi7iTLbFAZ6\n1P1uAdIsTV2Nmfac4dPnb+Oc/TKIbg2KAuzdmWMLfiEslV4HbgE1JKxf00PZ\nZa9leR5tUxIQtySXqiwToGSFFfGRuvyE8J/C+hZdwrFzHv8aVF2nghvfIHK/\nGBZYubnzGfE6DeLzjlEsLbVRa4ywBpSz3zK6RP2yOFOUy0s1xLkWo86+lxxW\nAuBZhdMYDy2GUm9QXskBBoJP7Al9v/BG6E710PVXyFiZsDzIgcnm3BzJHddp\nMjg+l3yPRG46wPmyHCqsebJM+4+tOC/3VRqUJ7qsmTbHdQtR1xMtz/zJolTL\nse97YjX9nH+f/WlBaDXimU6WCLJgdi96CZNJug07npQpPGgHQQ7eAiKtu6Dl\nDyBq0KycYOCiJY9x0ac7140dwipwC/otx+l+u9O/OkJ12ixGzRmbjG1Kn5yc\nKkl0INxSQrq/fTgc5d5H+kOxSmf74wAqwKbADltA/ON4q/AMatnFvyXetk4h\nZ3jt/5XqW3djoLzsI8ssCMXg7oUe1zw1WTs6NvU77hwThhgNJwuf+nYOLhMB\ngBP7\r\n=3XA0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"ea7f4cc1ed49aa9a58c0a4b5116ee222a9cb4fd7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.25.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.25.0","@apollosproject/apollo-server-env-mock":"^2.25.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.25.0_1625070361913_0.2478129678514167","host":"s3://npm-registry-packages"}},"2.25.1-canary.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.25.1-canary.8","_id":"@apollosproject/data-connector-onesignal@2.25.1-canary.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0bee092bd37509015daa7fda7e7fbd69f2ba8bee","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.25.1-canary.8.tgz","fileCount":9,"integrity":"sha512-KFKdBN2l7sKFL49NLGkN59LNEPxg068fT/rb0P++SNd+zuXgnsL+MRf1f7lXyTiA+8a1dxH16AS1Y4pxecraCg==","signatures":[{"sig":"MEUCICx4eOG6NV438LFqtieuo4YnlBhioJ1J0ktN+ZRo0HasAiEA+O5AujHYUHk/Dep4vtfKjdt2xHwFgrvX1lcmVixPhSM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg32sFCRA9TVsSAnZWagAAHtEQAI8sCHvyML+oIKZ5hmUa\nlR0EZfiwfGl2UWmaYAmBhwobpW/NUKyFqLLeiXKolXvmkPX/OeWp66Pwcjpq\n2AuroX/yVaTZ9t1VMXglDhepxac642yYgO4VQEqcyCTNNmAXOCWNhD6Fm7fR\niIVr41QC/vmR/X7QYowhl+8fsAdtrIN6PpUF4Zpn95hcQInzBpswVqwvKdM5\nSMyXCm8zv50KFP+amJrY82Y+7fUZoMgTrksuFo4IFpAoco8OjYvs/mV9OUOc\n+e1HjMiqHvqNX52S33jUJY6eLSZixx4YFfzEMGWBEsgyhcfIndXyp3wcbeS8\nw4nOBhpmJQCB1KU50jxuCCihrWJLR+mGPN62WVn3mNS9L+swQCNnmFFFgUxZ\nyk7MNwY1q6LE5VqzCwrujvr3cMQoKPnLMn6wPSlAcgAIZODlVDNeidqq9CGy\nYYSSN8l0xtEPFL9SNd8cpI1QAuV0te06VtG5Ci8ax1nRmVTUORURBzxL84Pz\nKAioyYQvr+tQgKnJzbBUS6Kr9+LIqMnnmjHnvtm0MVYYudUnhx5o9MNby+iA\nNdr2mF8ReocRSYqYmmwr0+k/Mgzozw/r10XtvUMKVyWjTawaID4juDv0cWuC\nK4pYbn9cs39P+wGso1OVF8PdootUFHIZgnDe5pH5yNb+ZvQtftUKFS0vWLk4\nqD1+\r\n=fhgI\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"189b822944d146f9e1e97d67fc6421a01f371c0f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.25.1-canary.8+189b8229"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.25.0","@apollosproject/apollo-server-env-mock":"^2.25.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.25.1-canary.8_1625254660773_0.5526280129289438","host":"s3://npm-registry-packages"}},"2.25.1-canary.13":{"name":"@apollosproject/data-connector-onesignal","version":"2.25.1-canary.13","_id":"@apollosproject/data-connector-onesignal@2.25.1-canary.13","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7a5202e64cff4bc7e06aebca0396129346118a30","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.25.1-canary.13.tgz","fileCount":9,"integrity":"sha512-JXxHpmuZpYIVsGE1bcLYNvlmok40zFjpGEK9HLvMHPVG25D2BEOX/eHuWNxj1ot1EgI6jNuq6McekmuH9BMg3Q==","signatures":[{"sig":"MEUCIQCkFoYJhe2ZysO/TkJJ4ICBZE9jdRGrnbXqzMX6yUg9EQIgMo1KPn7vzxaqNL9AvtFRiJyrKDiwP9MwpCf1tASgj8M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg5a9LCRA9TVsSAnZWagAAlscP/2Z4mSKWF+NhdCt5p1/B\nE0pCOsgpU63RgoIyZlxQldz4qA6y1y2dkct4Xaq3PHVhDJBZD729qulurHSS\n/C7kwUT9dupVYmDl9bHY4iaiXMM1OlZPUN3mYvuLKhIzxSgLbqgZCpdlnS1T\nbSAh7LV9VH9Lsz0DWxxRlTBd0q+8i7fLzMgGuV4gqbtycwiskCWbv7VnZTHQ\n48iXhIVeTZ+zrZhcAKs3b/JNP309VGdYc5mw0dEYmm1QAoEv5eI58+6W+8QZ\ngHFNknv/3++pa4+60UBuFuXRz9AACsWo/hOHBbDJPCYbZfDVHnR4Kcl0bSeQ\nygPH9NKcEMAmu6+X0hWordDNzCn5T3lOJis5Aw834lIFShfAd4kGXG6H0v6S\nTLiJsp8cMnVOH38lfkdLFYml0jEOerhpwSdQQPD8db8DV5gDXmKxw2YPiRpA\nas7Fh2pU4sAi8joDfklBrvdENKbuppUIlhmpFCSJQyTDisqwzlgKMp0kpYve\n/1ziltNPxYC4hzw7SznDZuOyZ1U9JI6JiCb0aDS2Tl5Nyvc9ng6ijTvrc/t6\nExJN8wv1BObGueaoiopsz2KghHEoVFlFdRAwgAaLNjD5IaC0GIHqTn+QeIAx\n96CGieDIk2X83hVdfaz2azIs2uGu1odqMF8uuMGskH71qlQFTpVPX0ylRwga\nnAnb\r\n=dA4C\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"feaded63ef2e52557629aa53016d646b26e238e0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.25.1-canary.13+feaded63"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.25.0","@apollosproject/apollo-server-env-mock":"^2.25.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.25.1-canary.13_1625665354948_0.4664688433658404","host":"s3://npm-registry-packages"}},"2.26.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.26.0","_id":"@apollosproject/data-connector-onesignal@2.26.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"954e147ce86868fde8658ebc2fb79a33fa99d949","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.26.0.tgz","fileCount":9,"integrity":"sha512-GcUcFQvbFSXLcqljZt662g//+Tq12UZcbm2yIE/aEB88LF7URHwlUeREDK1+yVFm9lGnlN8YTaT8Kmim4/pjcg==","signatures":[{"sig":"MEUCICkJ4ouWyFsTU4joNJ6LxTwHhVPPkq6aKDuKdp9cglm2AiEAvQkClLth7FPQhMwltaOBx19h/+R1m/REotWCkUDBM04=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42476,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg6JHsCRA9TVsSAnZWagAA0T0P/j3OD2yQfm6dGxGwrzvf\nDmnfg5lwIBGVxVo3Qot1SuIQ8Mao02Vi/vhKkesHhrcEplIzXfxZjK3wn//c\n6S0u88dYXlc014aJXgY7t1JhgnVUG04Y3mlCOyfhSkZi3TYyK9NbNBaP+0Tt\n8gWlCDyU1xGtlq3ubCyjomy6kwgClmiCxDWiJ0BpgWBdUgnPIEtedYHH2hHv\n/UYimlGfHHWThGdK7wTvyPGEe9Z+nVod5tLITdmsP2h5li5kCaO+YL29hswf\nubkhGyme7XuZQijGLsiKvW3u2yt8nSS3PYKGKg1TMshFEzmrQfVczAtoevFK\nV6AVNrCIKM9xM3wPE9ueHNuDMRa3ULb2zk9YwjPZt+BRwXKGAeeSmFaKCpnA\n9DfOvqS34v6CyJ3ytf1pew4arV1bYLeQGcth5mFz/6iVxmXTjdIAuCFp0UrY\n/0SYTyKOT3oRPHbyMP3KqJPrXfdJAreTxoXVprI05Nz9k4eNdjwW9oEO09Y8\nINUn/WqFP0TWq/2ACVoG1qgVxcErUDROBLxDhoNmYO7H45S3p5IBYk3Bo6T0\nAoxI87K9IQ8oAJS3b9TcBuGhkHYYaTElJdGCXOOWo535D7C9XzQ4wwdZUjtv\n/USeLihY85e/mS3KI1qObJXkdHMj/uQ/lY28046J4U/1NGohEtPvFKPGs/so\nwrzA\r\n=ThM8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"d2fda542fd8141b27075ea03cb637270428310c9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.26.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.26.0","@apollosproject/apollo-server-env-mock":"^2.26.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.26.0_1625854443721_0.3834096785458676","host":"s3://npm-registry-packages"}},"2.26.1-canary.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.26.1-canary.6","_id":"@apollosproject/data-connector-onesignal@2.26.1-canary.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"245da8fc71d8be1e304393b7ec89e7f0aa69f76a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.26.1-canary.6.tgz","fileCount":9,"integrity":"sha512-pU5u55fu2hgvSuxjl3pTypbobw6vlVuT2NAxgAjr6Vm2WBl1svrZw5rgBscKozZoQYRP5/GTsvt2QYk+c9RMDQ==","signatures":[{"sig":"MEUCIQC6q2O7FWWX0R7fpa01GFlwQ/x0oZf95/i8X4HczjILdQIgWE+CRrT9JvBxaZGK3lBrZNJJUh3m1HByOIsmfZmWH0Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42512,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9bILCRA9TVsSAnZWagAA2A0P/01PFWueJVUvKjQ/cR2h\n8ZkCTzYSle9J7XrLeqI8UqvZs7Cv8CEepfKclBux/jN5Lag2RfQHmWFgYo5V\nYXW7eg1ytskeZiScHywQKt/9GCtfM5dQBECiXZziQzTd50t10zx7b18qh0pc\n0bjb/iNKZA7AetlZc9H03Hr8Ve3MMHhmZAplFfFMzqyB0GbyoIuAJqGLRxFv\nCIcyONUy/YbP8u7iyRW8UAVQSdMXgG/up2Z0jf+ktXMULwGnDTOiNBWhPk9X\n4u53LnGUZaTo8FFfLpjMgsMG7dDeE62mIjQF1jXTEm4MOr44nyc90VA7KsaV\nYR/g1TNQg4wy6PMryov8anetAw65XFwbVvfHGJhqvvqBNjgvM/IhHc0rY29e\ntUK4k02YFp66aUwTQs+JniXtuxp0UdP7D6aNH9T4rbA9k4SQOgbeYhS6XAsM\nHwHqy4he8FCIZZn3j/1QR+loyazaWAmrAhVgYYukiWQ6lNUPIkUUz/nxpT12\nhc5UBxKYzWi0qlfq0IKiDHx7GrgtF87wtQxmt3h5tOjF1UrC14xj3X218bI/\nzrdnKvr83FmBfxDfPTIkTn7blkL46u7xl/QHzicW+0tzS9VuTvrHjz/iNb5S\nCLujmvHSwBeyN5ZM9kQN65AZSqNcJW6L0EQUOZ2gTzKBLW9mLXXhSfWkxdiA\nk2k6\r\n=kQ+t\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"51c297e60a8fc8aa409d0288ab534111eba208d7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.26.1-canary.6+51c297e6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.26.0","@apollosproject/apollo-server-env-mock":"^2.26.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.26.1-canary.6_1626714635333_0.7546317446815165","host":"s3://npm-registry-packages"}},"2.27.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.27.0","_id":"@apollosproject/data-connector-onesignal@2.27.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"67f7aa4baf81040f703890e6e0df6e51fc10219d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.27.0.tgz","fileCount":9,"integrity":"sha512-wYSmcaZ8J0SDbnppANaOQlxPlkAQixhCB830bDJK9el5XKsqc8cRGGDUfUM2kNq5UyvsJemAaIgHHM4v5BmGnQ==","signatures":[{"sig":"MEUCIQCO4p841RUW1xya6gQ3GItgnx4eQz8I2j72jgTzgbY+hgIgdBZBUtnOtteitc8D4vBzcFq9xFRhLD4Jlq9NdXoI9eY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9bJjCRA9TVsSAnZWagAAqxMP/RXslpVlSc87KHF+WvAj\nU+1ukpW9gsIK3hAHmRTUlGKfywEDt0o1T3UNA4GtKFIe/E42CPo/HOUUWRuq\nGhOxLtYVSZLruk0kuXSIVOfDFvZT+BbztUB/BVGGseWwH4nkMnK6A4TEdfWl\nWvF9km9tZj6+4ZK4piHZKweEUOxHp9KqxBU+0N0QtksdCKZnmr35+Vxuxfh9\nBxHnun18vwPAJEZHNMhWcqDfzF/0+Zwc0Zg74PSJJQmTR1mnn5vCKfbTCJHO\no88DZDhN6FzeRwZ2+mQNlrXRLXVo2jX69G85K6ccpP1XS1FZV4pl8a9dkmNF\n9XIB5Jbp4AG198SPa0sf9BSLXg1zOXzMZFYwKw4LxNfU6X616J41RsO4phvQ\nHglAQZ+njNT9wwGRk7ydaVhZFaZuifCs67w1ibIMdqlaXPIgZHJMVI1qau5R\n55grXix1JwfkF/FZJNdm4FwyWKfwR6lstwRcbXj+mrqzDphXwJUJVN+pyzSa\n70X7a3TWI6VmtHnR5aTu/mUa4jh+ofky89jdk0xcU6V2k6DXhQrMw9MXAgu2\nZuydEz4QKPHIbRjoK5NiCwpb4CuUucZIGbzFVvdIgH1/C6eIfcxLXkHRSOsX\n86frefmdVqDgV0828+ktG8FkdJ7wE4MHcB/my53cxJd8aessZmDwx43sjcDW\nhNRi\r\n=z+Vh\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"616ccefacbf10c5625d559b564880e55776abe0b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.27.0","@apollosproject/apollo-server-env-mock":"^2.27.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.27.0_1626714723151_0.073030423308865","host":"s3://npm-registry-packages"}},"2.27.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.27.1","_id":"@apollosproject/data-connector-onesignal@2.27.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"fae5d8c420f6d164e0c385a5584f6ea5c7c17cd7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.27.1.tgz","fileCount":9,"integrity":"sha512-6OUGY9vbkvXj1QkV0jFm0VVCPQwjhcQwNJkKWEdaFofVBaD/lV2MzG//pxniYGB6BvrzmkdzXmespg3gKRrlIQ==","signatures":[{"sig":"MEYCIQDgn+C3G1WrIpGD/Unvm+lberSynrIMICV+rB3Q6CenbgIhAPCxGg1Wd/V2Ga22PGad3FPv2SIKJ0V+ze9mhhrZcXvM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9s48CRA9TVsSAnZWagAAUhoP/iEX85WL9nw3yKpbxZ7L\nmlAA6vlf85/hAvQMrR0leDwROksKcHFM3idwSZXwNASWh/V1wl3PpuGWM3XE\nAFowgHpmh35kkukb4MxmaebBqh9yKhIZWJFe5xaMxjMtslC46A9eNomRMPyv\nvm062CmPwjKtkBHsst31yTOn/5a86miN3XmwRb6uuCbqGlBBKCvYpiqo+OTI\nJhoGsT7lqgvG+Nt5gRns3MrdBQ+KAz7XpEWLMuWnBFhkgQYAaNrxLPPJ2z/1\n9EJ4BS64ZlH0QGpNmqS8QmdjiIsPJqTMR8r2stOsK4Bqt9gKkADXCGnO1+QW\nMNtLEJUtR4NPhh4wLuQws4MGDqwsQSDQRFeruWRe2KbVe3qjwbZ46jlwQEVQ\nCv+D+WV7AeZTgSPK+gKUfvWfs17bu7DNdAOFQG2k+aBCy1PgxSAqEa0t8X49\n7zlzcLlPnLZ805LyuIZlBwtV6Sq1lmjJ5WSrZfXiGAxS5Gsg+PX43CROCKBw\nvVuWOrgbZApXuu/y8Xju+HlSr3cLG2dI+Mbt8KA/xqwxky/7DLMp6rqgjN8v\n7XLlmouwgx+dlWVrj6nCpRffBYCELriAd0sOgHgcdYZe392EQL64rlKWxyEI\nlu+5B+82PbDOfvrDV8RhT7h0IU8g3T5j1fFNbLRLQSem1lsZV+knk+TQQcRk\n+2rq\r\n=BR7A\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"b0717da516617733c322d19be561ee402c499b06","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.27.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.27.1","@apollosproject/apollo-server-env-mock":"^2.27.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.27.1_1626787388811_0.007066256176013086","host":"s3://npm-registry-packages"}},"2.27.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.27.2","_id":"@apollosproject/data-connector-onesignal@2.27.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ae2acdf27b38e2baa5850fdebb0b3d838d0d76a2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.27.2.tgz","fileCount":9,"integrity":"sha512-W8xplLGZYHM9uSF8Rf+HSzH92BFhHkyXjDUHQpqczkmPYyPKiZ2AQyJLMO+nWqapRfIxnPDiTORuoYftmmr3/A==","signatures":[{"sig":"MEUCIGpuDcs0iRQkC6APKHYYjSWujvqNzFytRIpz57bXS+m7AiEA+JCWGquPU1Yszk8wlIs95Dq8cWLTW0zSDPy+a0h8oGM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg9yb3CRA9TVsSAnZWagAAbXgP/3sqGPOQA8l84y4cK4oL\nK09n74rtr0On6/beZsNQ/Gc0SpxZlylDOWUztLSnuPh+EPiZeVnDN05/T6XT\neyrmTbiQUPdfNA0lWr+ekVuThS0y0k4tokoMKHcX6B87SoOZakm/6Ee72IYk\nkcNvXH0vvVokveSYp4uhkdkdAWLmAnMg6tgV60KR4ZT11hh3RhK7Q20WdcBv\n+6bF1QleXpW5eAidUZauUSLjHzEQ6NFngdj+vvE48Djb4K9DBq6YDKqKkcio\nxB+IbvD4v9DlTP84ouBiLg1BrM6pILHGgLbUs5acZD2x4VPvgp/4IdsviZHB\nIPTyE+vnaecrivuxK/U2w8OuBJ6cH+kc2AafH2zoW/mEkPlqQSTYvV2gmKoI\nFWPCFMEFOPsKmilPs7HB03GcxsKOCE8AVThpvzlXzTa3HNujQcudR1FOTTJo\nH1d+2zgCLCcT+CgaqdR4FedcvlPVeSwXk2r0JypZ11Q5IqwxnPSy7aOueW7t\n13xtAN89zyduMSbFu6PXSQXNrZHrQDaPlexh+Hfz39XMXvD9NM3gZq09KtiD\nEnZsB4qfmNPOmepGuTK3LcrnmUs9QFgCS9U28DcsuNmiVS2iRvlcGKNktWQ+\nOAag2UYOCvKB4vMCnM9gD9XzIw+0a+ugXIVjghGiBiAjjHKwpekq1YNNxFs1\nEaqi\r\n=YWqE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"fd9f79cf8876c862cd6a50abba490916fecebc5a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.27.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.27.2","@apollosproject/apollo-server-env-mock":"^2.27.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.27.2_1626810103119_0.5380372237253916","host":"s3://npm-registry-packages"}},"2.27.3-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.27.3-canary.4","_id":"@apollosproject/data-connector-onesignal@2.27.3-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"840651562cdadc6488848586142ad1f916a63184","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.27.3-canary.4.tgz","fileCount":9,"integrity":"sha512-4X7Z7XRIcbk+BvY6cuFV3I4HgF+rXgoGCoixJOV3f72v5/1K/iwORuXWrq0ci8CNMVBjaLThc/Gu3ytBoQ7Sjw==","signatures":[{"sig":"MEUCIQDQowqwEpq/doIQVjWAGkxJbljyhCkF69QTbIiwx9GPxQIgQLwknJBrSYJcBELxHpLSIljoz/DhwN9BLdqI/M2kobw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+cGoCRA9TVsSAnZWagAAuuQP/32z/4tH9Uis2rVnZn2m\n4/0ERxNkFHfYoGG0hTFAU7qqF+ypjHtkLEfq0Fza7wpUsDLNO+A/aeqreYhB\nyrBQukOJ0vDpRRTQVJCXmMpkFpLYhxMx7ctrQeNdx5q7OIbgQECiFNeck2eS\noaCutH0Y5/PE+iJuxlw+/n4nCKjVMRXQLiFmrCbifKzxkVfviTF1yjOZjuHh\nyh/8wfT79MuSJ4huaB2y1FzNdv6El7DwLScMPmtV+le7TR8lIs5AM2VtKhmC\nzBVAXsSTDtB4NQf0KgvENX4aK58IbGqVxxXvHl9Vw++bTk6o47fLyz+4R/IJ\ni9ZVsU+SsL9fGnGmFdnbrUruBLa7RiOsHNNXsg3q8Ro6g8M8El4VJ+JCq3Bp\nPtIufI7XA7irvlj/SJ+MDCM/jJXe5+ueWRwA9yeHiMTQZXanoMCIeyu4BWhC\ncFRmvaVwnlljRDwzW9s9bK0MHthdCMbqfE2n+y6i/moavd0aa3E7+cghK/Ld\nAsIQwyOfPw2ZF/f6B0KOFt8x+/7Fz6O7ovD380Bgy5WLK4QicrHJk/Y56jhu\nEL31Jd0X51GsmL3UhD9ERnNO6yoxB3ygdqpq7StsGQbU7e7RODGgPS62Qqr4\nHRR4+2MpFTX5veAhUxgeui/TGO4fvYSP+Bymw8kevHJX9tVtvK620PdHUXn3\nMH8+\r\n=zIVr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport gql from 'graphql-tag';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"a4ef9ab75b10a16fe62814e0ba0be032745d6394","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.27.3-canary.4+a4ef9ab7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.27.2","@apollosproject/apollo-server-env-mock":"^2.27.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.27.3-canary.4_1626980776098_0.5484937106126644","host":"s3://npm-registry-packages"}},"2.27.3-canary.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.27.3-canary.7","_id":"@apollosproject/data-connector-onesignal@2.27.3-canary.7","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e96a9149eb52e8b7a071062fb0e7a03f6c9970fe","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.27.3-canary.7.tgz","fileCount":9,"integrity":"sha512-IZP/QAJPiJOa1DTreNWKEdIszHVt/OfPkITl7kiZLcpdL+gGK3q4DizbOOivwYmXA02IHtTDQvgp+xerkXouZg==","signatures":[{"sig":"MEUCIB1uIds8uqUpyVHqvpE3Tbj+tG4+8CFRai6xFfoWL40VAiEA0EknLUMuQyKmeMjqPH5hoRVgEYk2FykDOAfeVrM92cE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAHhBCRA9TVsSAnZWagAAxLMP+QDhYwqG0Ggvw8FgC0rw\noQDzrtSuGIzdcUTE1TpQn4zZNS/sJ14T/iE5/H9qgWy8VNPhQnQwcbEC7xl8\nkJfGorQujKxmf+v+lo+vZ9ZVroUtg6nEwemosLHEI0eU0Kr182xqX8ofRfLQ\naZhyGHqyC7EdzkmIPqoU+3f+eb4SvLdI2DmDwSOOmbnOds/jUSm0WC6UsOWu\n+SH9bqo9G2kuPW0GkjHFvF3rWYBZOFOMmLyEn91584eWZcPsouV5Puxh1re0\nxuyT6S2yCHrOigqGTvS5sOAejs0ZZDouj4WiI06JzRhq+mx525D6ayYgVf2m\nh6M924Gau5f88Siz/J+Iy7RNyamDq4vZ5B6cYWXReP/GlpQ1g9/UAWmcuB9n\ndS1+CuvP0M4ERztNJ3dIqgZZ121xEqeYAhtunrA73q7bFu7cgcVG8/ao1s1r\nUhRl3/5+IuoDXy42z2FnMVWkMjx0fjfRBbtZEjGOf8z+0FbdjhcFZiW3Luzb\n09T7tF/4ZxIe0CMHSRie8cVwx4VWutEp479jVnLUuW2dF9CrxxVZFiFYWk81\n2KN84z5dpIgaWv0HbozfW5UvoC/rHj6qbISCYftf/RVlIoIrmARfyHNaehvU\nu0HiUx3MVFC8uz2/+xQEXcufQQv7dXMNPvtuma6cgKQe3VAVgBu2HZ3ZiK/M\nBnib\r\n=2DGX\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"4946de9242b21919af8538c204943ebd5bac8ec5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.3","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.27.3-canary.7+4946de92"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.27.2","@apollosproject/apollo-server-env-mock":"^2.27.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.27.3-canary.7_1627420737120_0.5643484555274585","host":"s3://npm-registry-packages"}},"2.28.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.28.0","_id":"@apollosproject/data-connector-onesignal@2.28.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"303a0c732cde8461085ec14d70d5828f6a7209ce","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.28.0.tgz","fileCount":9,"integrity":"sha512-P9GNCrWvxJOgvEHa+Y6Rwt6EexBbreDy8Z5qoDL2Dqcnty1M1TcEKNNXvxdAeqiY3knE7OtBqzFkDCmeXL3cQg==","signatures":[{"sig":"MEUCICLZ3o0wnL4dpIZeySvONXTT99VNMQT5JIJhltaTAlmYAiEA1EwUqhfaIVJPYMR7tj3tKnJy8oAykq/PSY8ZZwwOH7U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43388,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCqmqCRA9TVsSAnZWagAAyRsP/R+KVFHDMJQzpa5qiyWp\nkbR0Nj80kEtK891VxMlHADx6trF4qnoklaQovRvpRNpHZviPFGnaz6DrfgRd\nj1iocsFy1Y64xjS7EN+bkLLl4ArEQoPm+RhSI0qODJ5YA7aZrWZnZOrAFSr6\nNZiPQ+rR9zlpso4BKLT0BFY8M7TChm/S/zFpmKshs3fFG9uSbtzACZ55rpkA\n99BcSf8RnQOheS5+y/psq2RxAZLasrAOzYvWKOoVsEnAeOYB0prMpqYZesw/\naM4nuL7Mol038sVgBwdhu9mJC6PHTWCwBCztJsShLWreafhnV2NQWryo4qPS\nkarN9XJTysl1hJKNsRXn8C6beUQ2Rm77Q9z8IwpAe9gZ3bWTqgHlWACr8C+3\nEHVveKLF9C7OO6LTxhmL6xXiLzLimeGSG7CkQtDaYnYl8iO2S0Dvj2cHQ1gj\nNi/x6OAY+76C9hslmfXH2Y7O4ollZVBvS1hmdeJn2hBbEktg3vcMOsMRykV1\n71QLNwdCDP+s+QGQWKKdK1GH7ITobuYiWgqTcR8jqSsqKQEZyHZe6W9/3ceQ\n/DMPbCKhpH8qGAIUYSY0en+CG7iWSVFcaS5wzroRE7JosO3qmGppCYnRR9Wq\nWBZfoSoUYeKp6SdboqmVIReI1qsnidHRcbieox4vOJ8wuORFsTMhq+NabsuM\nVS6T\r\n=fhkl\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=12"},"gitHead":"b4af302d4bb5d8fc2258638ad0d21c7c8bc5da8c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.28.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.28.0","@apollosproject/apollo-server-env-mock":"^2.28.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.28.0_1628088746460_0.6447600718291746","host":"s3://npm-registry-packages"}},"2.28.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.28.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.28.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a647b9f2afc127cb835dc5b5ddb24f2a23767aa1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.28.1-canary.0.tgz","fileCount":9,"integrity":"sha512-kDOxMgkRQboe7uGaNDrVuThW8xbPUvrMV+Lzy3EGS76fpncrDvLpY6Hwm1kNH4oU4u+iY3HlOZePlLFodEXqPg==","signatures":[{"sig":"MEYCIQDYKdEaJdek4PGisfIEAsSwvPUCxB5gRyf/oDxYD+Co/AIhAJaru8WFWLKCM67/UeWkrehlEnUEGviLQLjwM6o971wv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43460,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhCqoTCRA9TVsSAnZWagAA01cP/2v514ktGAwTbDcRQHCT\nzpPxYvumnyvnos869j5kuzCoZgCdvl+Wa/A4KJdDKyF9Am5zm/9Sa41YYGgx\n8Q7qD3w7hM+2javRKlPTPnFDR+p8AU7uyjpcgcQ0UORzpKX5qf+/PmOW3LOJ\nAQvnnW1Kc1ml8JQYXMMf39MRzeyl7R0axLcT30Z7dJr6+V8RySlczZxp3I9F\nzklRTH/7ysBkUg/S4x9Mtlcsem53l5bZw1u8sDtuYXn20ww9+F36DRZ4A4Yp\nQNbHEhZgvXwL9ti8Z8cNrYxR0/2XQRrCMV+tSAONowfj1Tj6JBGLf0VnZvVS\nrGQglFgl+PLEVmQb6PgJHzoCOdrIsMIQbTYXRjbqUOyAUKhotMXkSptdjFRU\nQEBx8/glQnkYfgTovqzcmBG9S10/8lBId8VKlP6iA3zl3IVjbntwoVR2EfoP\nH19ihjT/gowmMWfhKm4WKLp8QcGPh2IDr/wBTVCZWU2P44NuD/I5ApsDEQsG\nu1cwiiFMj68g96H6RiwYtCVnhJRjOTc9Dr5mwy/XCn7HajixYLhfJ11/i5K+\n4wHkNgbBt09CBHSJXoTxJ22ZaZAg+zJKh0v4BmAvXht7Gk1ctIe/ZnKKBYpJ\n7spbj4tZDHIu/vBgaWs1NfNu6eCALR9vb2D6MhogZ5di8CgLbTDidBdhTX19\not6B\r\n=Tv9f\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=12"},"gitHead":"b4af302d4bb5d8fc2258638ad0d21c7c8bc5da8c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v12.22.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"12.22.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.28.1-canary.0+b4af302d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.28.1-canary.0+b4af302d","@apollosproject/apollo-server-env-mock":"^2.28.1-canary.0+b4af302d"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.28.1-canary.0_1628088851400_0.7213732439559981","host":"s3://npm-registry-packages"}},"2.29.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.0","_id":"@apollosproject/data-connector-onesignal@2.29.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"33a547cdc91e811fa79f1ab5b423d204dd163761","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.0.tgz","fileCount":9,"integrity":"sha512-qgTHkWdfhfa4li2U6D/HYQJspAXBNhCNnxAjXIjnWp/PoD7/5xd9zRi9ubmV//M9RyzajXpYqPJUlYQ3+pxF9Q==","signatures":[{"sig":"MEYCIQC7R5xru5717p4ofmq88KSk/csjQszxdPqhLwRI8kqQygIhAKkQy9xp0zJz7Cb4qojT6FbqFtMmjxefVOnszDUhUK6y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDC63CRA9TVsSAnZWagAAajAQAIG0wMfFkwC+7p4nHQ3h\nXbvWbFAJxDP+vg88buD8K7ZS+6WQiwpyUlabsph8trHSDTRoTOUIV+82U3hM\n7/umFsXrpULoiYX4zMljvuHja5YL72KPdvvysEZ5h2RiZ4bA0E4TTGusQdrs\nd+1uBNZ9OPTeXPElrES6ezV+FwBPvjHbLuMOWDBzq0SLHusywuRpbNxZCiz4\nfmMitrwg/0Qeeku8Vp2B+ET0xbzvTu1jW0/mVh46gz4X+CqHTcms2G+9Hoof\nMlq7k9JzOVhQENp/rDM+6HviFRn4/RnvOjquQD4dsN8MMeOW6lT9NDf7aFIZ\n0/LV3y40TgXcYCqBv7YsBXviNqIwXGNDUaZlGLd+4hBle4Dor+0OSOMyk7Yr\nZ1syZW3HJuiUWWLV9QJIQSznQmF9KLwmpSEXsQaqf6SITdagiDDYKsOU2NsU\nMvRnYuNGM7Y8vLPBF5QjjMPF3qLBFBht3aoE9bxQ7AU0tq/ddDVbSvty7en6\nC3f6Zqi+0w1hDGVmzaPUVe1ViYzl8qzzMmNrgoxQNSibo4ggzeEHlzkcUg5G\nEq8B+UjDD8u4cNyBwL+Kqac2eODuN2jVhtPL0oV8XsVYM2heR67xEmBf4Cmn\ngn7E9MPOlhjCoMU8yxUeg5ViZIhG/5KQX1Z+kDCUKKTmS3OS24POieoHPITY\nsfFc\r\n=uS3J\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"ae40e735efe0280a5cb7f334de3c5e6e87ed2c42","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.0","@apollosproject/apollo-server-env-mock":"^2.29.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.0_1628188343072_0.9708756061596839","host":"s3://npm-registry-packages"}},"2.29.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.29.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"29fb4994e6bbd4db634a077e0db235dd94b2c3da","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.1-canary.0.tgz","fileCount":9,"integrity":"sha512-X9ogQGFt507WheRB7CG2SsnY5pNV7lOtBDJ/XTK3l5TZyXgwmKE/RwcI5Z01d/AR+QGz8E1MBq8eFflilDUQcA==","signatures":[{"sig":"MEYCIQCoEGOfElzNPV2xaPPerbEcd7655zhr6Sf0Oj8bBSl8HgIhAKXmZoQF2eFQ/kUDvxVVWBilB8jvQqwSqhM3Jp/Dt78D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDC8gCRA9TVsSAnZWagAAzZ0P/3zb0AAF9TnVRuugr/2U\nYIG2/iwBMH9iCGKmubIzvM+XT313UhszGj1RjqbtlNdmFs2jzj0fvHUfu037\nkAnKUjrkVU1lZ0En6vb8+5G4WsSk+fxY3d4LMuUmwhbpxJlckRw9GbfqFHTK\n1U2D7cEVaqvB8yiOykYhcjcHvuOZAn7bVhQdFOGJPhCQMZpGxaKOW4P1nlyg\naGcg6YY4KqVqIrtcZMRrNzzqsd/JzYPXWtXsFaKA3KoF4XAwl5sCG6uljHOt\nZknxvig85Cu7kBeqbsuoa9qLMBFwuEIU4NPGzumvHlKNPSg4JJZ3P2S8r8AP\nAzbG+PZq1uKF3HlHmx/1aEdHt355b0yIhTJqcsAR7kEDfdZwiYLfQlYioTm1\nux0MTlgynrOxm91pt21fo0W7g1nn3Zi0Ld/xwX5E/zsouv8EepDjVT0xbAE5\nDul9o32fXnYgDvvkp6V7GeA/Gl84eawD++eAOECJpeFnScHTYujr6ep+4Pn3\nd3Kq+8Fmx4pWfS1e+Xp+sPaO8CYRQHwBbhlPqZqNrQxnbiZKifnDfFX8ivY7\nLKgIvmhCbbXGOkVZArkxzWlT17FIM9bInPh0PUhVLrcosHIxM7/Z9wJ4e7G7\nFsrIRhqC+QgH/poCLZLbsxtFlCh9/XRVPQDvLnyJWH8o3vN+G3qeq14h98JP\nXutU\r\n=sgga\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ae40e735efe0280a5cb7f334de3c5e6e87ed2c42","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.1-canary.0+ae40e735"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.1-canary.0+ae40e735","@apollosproject/apollo-server-env-mock":"^2.29.1-canary.0+ae40e735"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.1-canary.0_1628188448016_0.5152895861143918","host":"s3://npm-registry-packages"}},"2.29.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.1","_id":"@apollosproject/data-connector-onesignal@2.29.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"621bd6ad7244825a16554e93ff9335a3a889827e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.1.tgz","fileCount":9,"integrity":"sha512-ud9hM9ah3FNpLwOXGIa8ItbyfxHfJRi5kXh1nhXjScWPjRzWrJo2h018LqbnODl+jdc2x40afHsyTeQPvaHfhQ==","signatures":[{"sig":"MEQCIF2425IL4ZbGYYCLWHvmdRf2FS8YggbsYVtaafr4dU5GAiBcsommhrIFbIon32qeWw084RFqXq82y9TLfiVYSVdlEA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43897,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDUR6CRA9TVsSAnZWagAAgGcP/3yIeIT5M/yWIrSvyqJe\n84WuM/QafHHRk0Kzeyop3E9rJX3Kt/3Os8fH36KSrb4QxtNDs7zaFRQ79yXj\n/Kq7BLWEWQT/7/fk4Nv+kYeDvSZm0Jjr4Rvxh6vHy7/9eaUj0lukvK+1hub+\npUDufjFWVoE2QsLU/9zWMGnVwPN97D5t0McdcqUuvRk3A0vTCHnPR1hGgKbd\nPNEUJFjpm9JjUEAp53o3kQVvlyIxebAKlepLg+XguW/TRLYR3JHjL98fP0sA\nRmPNoo8rmQNKWKUJ2jzULhK6nl+xiLj1gOoDRW+2lg92VW9al7XBqf9t7bCc\nVrVlq6VXOTKqqj0z/Gcd2xnt1cc4eAxiwjcRe272W5aQ68Dl8qX40m9ItzS9\n1Rr+sCiQVMbm8mSJKNIBUYj1x5CjgijJZFMBPRRfzs5cq/5IWdL7XYNW962E\nAfG60PaT2BVFkpHWgfeEbpaZm/2MnFc3QWdSDTvkcztxmk8TPjmok6pFC9Pl\n1w9a9S/zw1167Fc9QrGzFT9zX9NxC/2wtZQUwMSm4vYpCz3wLpzs7IpHZoLo\nxkJFc4T/Elok/uub/bbRo/HqN6G79mI75orjdJqJhIoVhLkWEc+OYkh99Jer\n0MVIpbsiFFe/aNoOpFvC6SLnopmcavUvKV+XQlkaq9uy1VnL0LkX2bcfZpYx\nbOQm\r\n=/duF\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"14660fe240565142e750f775dcfbc98b767f656a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.1","@apollosproject/apollo-server-env-mock":"^2.29.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.1_1628259450456_0.8874104428177585","host":"s3://npm-registry-packages"}},"2.29.2-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.2-canary.0","_id":"@apollosproject/data-connector-onesignal@2.29.2-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c7f924af5bbb433397b28f5439c353ad6137a4b0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.2-canary.0.tgz","fileCount":9,"integrity":"sha512-g1iw3bYjfBdcMH9eV4A6C17k3Z7dR9XfFrLVNhcpioGby72NuR8Q77xIJIM6KevwgzlW9kWUpEhVlfZhcog2CA==","signatures":[{"sig":"MEYCIQDB0LbrXM7/5qWURjiu0cNMEkXyUouNzCrwvD+nUn/SoAIhAOUoRLXqZNU1DDUFN0obbnUyLw+ReZ5qUIirG4PJs7Wz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43969,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDUTmCRA9TVsSAnZWagAAOKAP/1to3fvlNvT3WfeGqjNl\nlNhH6c90VC03GhOex1S4g8aE7A8BV23e9HHqcXwI1EoOlgVyhlLSAmWiAuwN\nQyZHWVHOsb23/1scWxbt/hE6y1SE2yHuy59tzfFYVHGcC+W9N+6mK4K3YB/E\nN7lKhDXOjDjMdyALB0YMgzPvvX0VEvEe7plPS1RJ5cDiZyc0ZA0gwcQ1OPHF\nFcjiDY/ynIyyft2ciC/TxrOwwoN+V8/UQc3Pz7+8zS0Q9GSMDqhfgXXbG4Pq\ne+taK0wS9OXPNQzw5n90Kq0ehB30ub6DSUbVNn+gOaOGuy3Zsf7euDF4PMk8\nEsg++HDIeQnYFwGAGDjht4NxKJ3p0wMLdqPJ4OIAKknLbm1XmmMPu9VIZiAF\nueHVJqQu7IYnzqEf4thpEn6QgDjCfEHdGuXFRBQEteIOy6aJEr21f+TWrob8\nfznyOuZ9Yz6Q7MWQGj7Oyrbum74iTZvcdWnNf0YsjeNqtC8vp/QHtiCitUHM\nFg4I+IKCFDuN77NVtGwVKhC0VaEl9u3WsQiqCn3fdLvbMWC1vgucCnMtpkvf\n1wWzu40uzulCSppeeQAwj+ZTrh+VsSjqVv+N5ULcFuWMdcHFnFLHSKDqR3k+\n3CPAsgMRxKz+cvEe06bCnVW4wmcUCIuU+BWSXDRO5Y7WzSqX9g3OzxG274aW\nZcHX\r\n=6qo8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"14660fe240565142e750f775dcfbc98b767f656a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.2-canary.0+14660fe2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.2-canary.0+14660fe2","@apollosproject/apollo-server-env-mock":"^2.29.2-canary.0+14660fe2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.2-canary.0_1628259558486_0.20599933598660236","host":"s3://npm-registry-packages"}},"2.29.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.2","_id":"@apollosproject/data-connector-onesignal@2.29.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"bee785ad6ef8b8d73bde558ce276b871114545a7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.2.tgz","fileCount":9,"integrity":"sha512-jqHb68dFIqsbjRsLwiUPPELnZgmJcnn50esHyXCBL9T7wz+MtFi6Qr0Zpri0derP+5B6V+gFvwTByQCymqINVg==","signatures":[{"sig":"MEUCIGo4/dPOYx2GlNfOUaT/oA9xbbAMmgWK1suDEKPU5J13AiEAjtyQhk6D4lpEWksu2RfsWBK131NXO6c6SfQob47aM3E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44084,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDVd6CRA9TVsSAnZWagAA8mwQAKJnevMkhkNkzjdrhzRZ\nqiZdo5bPJlOXcdHaMbRDamRgiiXF+qQO4JxYJiYq0u+1g0oyRq3XdGSJ5XDe\nsbvH/cfSvVGxTF93ux3iXBaLYHOBvfSBMdptaxfjoW30dRdVBt6IdVQ3Ikv6\nZfQFcODNkgMs19AZ/TEE+93eoQV0HjdBE2WPSxO0KchOKx3K/B0qJm0mG0Cd\n1L+xvRVK/X9N7zjwAoUuz1hCie0FmFHs2sBZT12Dko2xci5a3UjOmu4TtKIm\nDLiqpl80jO4bJq3srf6HEQWM1aPkESIJUIquv4r/T8NNK+bHY3f0LIQDMbCK\nHGVeDrdLNZHi3dEZ8Rqagk1orOpTmzkhsIqohVt7bgBSKUa84IG5CI8TJBFK\nntB64RAktGVdjW0xxdVsgZDBTk0yc/SIPsGC/enKF4JpASBEq+3pPEUDMud5\nsg0jftq3KqRotM0pkrflYpThZNHh8qjXssrCPYMuvteVxS9T2Gu3aGdNYBle\np468WhHdWACZX8/K2rNL0YhcqVcVYO8RvLdvQ7zkXrP4fRS6yIzstKuSt4a5\nE0Ax6MPoM8Ks2giZadUv5WlKgI1W5YKKZBGdLsv6V9SttA4oycbElYT+HmtS\no0yVIxQsOHhlLkDDqUPBDSflKcOi842uFQcf786dz0tZPuXsOIqB7Trl8HUl\nITEL\r\n=s9Tp\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"aaa3a9fd7ad5254cc06aa87475ea348cc3294da8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.2","@apollosproject/apollo-server-env-mock":"^2.29.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.2_1628264313874_0.9225894846709803","host":"s3://npm-registry-packages"}},"2.29.3-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.3-canary.0","_id":"@apollosproject/data-connector-onesignal@2.29.3-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2610a4fbb7d0f62b109044bde515c4ca35e281c5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.3-canary.0.tgz","fileCount":9,"integrity":"sha512-q/C+68e8SQbYAcTdbIOKHvAXhgzjAcMawMnNT+AKb0DmZr1cPjrER11FNaE+/nqVPAZVVr1IQQ8af8Z76NxZkw==","signatures":[{"sig":"MEQCIETgo5zHVUrfr2MTZzmxFFrGZSKbO2zxl2Y/7z/7xLNAAiAv8DWax5utLT20fROwSUScj8deCnhLNXResx4jFnShYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDVfeCRA9TVsSAnZWagAA+z0QAJkTVfgUg7V4dhqZjtf+\nnr+M0psmkT5dGEDqmrrWtWTLYT1jRqKO8G/2Am0KjtJKNxheM2ASmIINjMFr\nRm9Gb5KgBF2shVrOpcbYJqMkaOwyvO2Et/i6Dgygs4rzMApbA4C9z4B+rwik\n5TdcbTRLJI8sD4zluc2S3wHaq3L4BOlQoyvZG8Dh9KZSRk3Gj9EkJg/l4Nbk\nqESti1GhfHYs/GkkdNYOY17OwcNAKwZMTtl0T1pnMUokx6JEqgU1vxlOvc3Z\nPPkJMBE1VnyWAxzMFLbwSgBlFYw5MnglaYQJpFvTlHwYZ0pwd5hD8WhBl4qk\n0fIBFS4X7IpebsKOAwU/4pKi6a/bpzRFQoDKPHUvDTHT/AZzw7/ls8ckzaxu\n6uphGwjMrIr2H6PS0i9lU+O78zCPPTlbe9w+BvKP0H7TA1xKWjMJmEEXALNt\nM+uZBtJmGfSt9oHDqiYzQ8xqp5rr67S2csk6B/BnZcSit4hQLvGtvuIRxa7S\nuCJL/OZfFUhM/XpI0pOaNdIAROLBajwDFMftGLJhIOD8fOG4hBbFDxpAyF5a\na44vBxjoBkgRuukunj1qTLwhGWGQJJzh90npxIyKZCjhQWRx5Ol9EYX+13Gx\nSjNkJHUXGSkw48DqNKSAyX2yr04Lr0bi7WuVIdZJrLX5xMDy3ndhOTZkVjmA\nR+bH\r\n=CbI7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"aaa3a9fd7ad5254cc06aa87475ea348cc3294da8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.3-canary.0+aaa3a9fd"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.3-canary.0+aaa3a9fd","@apollosproject/apollo-server-env-mock":"^2.29.3-canary.0+aaa3a9fd"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.3-canary.0_1628264414673_0.00700082522863843","host":"s3://npm-registry-packages"}},"2.29.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.3","_id":"@apollosproject/data-connector-onesignal@2.29.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"605c017482983e0ac796318e2149a2dae8ed3005","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.3.tgz","fileCount":9,"integrity":"sha512-EGuxy39SZ9dmqp+PXAApfFr3XjeVHVlJ9P5l7oZDjgN+BD3UXmmvapDlPhwJ8p6VARc690jbPYhUHYVbs2od8A==","signatures":[{"sig":"MEYCIQC9VgwGKbDcx8e195pEl89dLMYMdvYddfHXoxeUwQwwLgIhAN71IESQWiG2dmP00zOA0BKY9bw+jSu+lGvdV45FeQTn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44271,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE+QWCRA9TVsSAnZWagAAe5YP/i3YFYdNFTx62zWUDx3I\nyneY5951gl5XZjizvEDu1yhf6WI9vazQsope/ilGMIH3XaKTyIIypLNHi3/Y\nyMM038viGKE2joLy9plaxMNhCkE0wyjlWGJaMqNAm/tOwY6R1NLuw1MBx8tf\ncMdnxRwbdgmTQtF3Mv1Wl66TuCwHg3bKooAualXr0gCsIA+pwTkQjM885/eY\nXfDfpU3eLXNz7xDD3fb/xpITosoVjWWu/q6V6KSb0uy9l/Njvur5E4XWu+RM\nNO3nx6QpF4QTZ6/qFLDfoacuZHMQiROD8Puh1epcAl52gpSG5FL7tIiC8ige\nvRAxC/X9kolLpLs+SHZkMRKSfYaDn/Yg+ho85eqJYbVAVrv0wrIN8oJfrYOt\nw7/ZAkBQ3GCKlMDzlRsvxV9+OJfWI/uAaBINn01q+4JoJH4f62q/+gCuKuWM\nMaE5Ai+7AtarXYeJP664XMn/8JVL80x8LuTCMwhL1iuT8JkPXY11/aZduF+d\nN7bHsDqvdm0cXSktnxmgyoOVgJAhGmrX66n2U6dINj7qzIa+lUY9+Mf67no9\nzHYvEzdvIJOnKuUasieuXdR/ZkPYti/weHL1pxV7+bytj3UpIq22QTYR5/wK\nExsDA/KJJqNbqYzDhkzistAEO9PBn6i+a+5+tbkfBWPifdUOe5eEa3yZ01fa\ndMHJ\r\n=xv24\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"2cb71a7cead244ac97af58a89e4c82b4ea6f1aec","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.3","@apollosproject/apollo-server-env-mock":"^2.29.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.3_1628693526521_0.751544370503648","host":"s3://npm-registry-packages"}},"2.29.4-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.29.4-canary.0","_id":"@apollosproject/data-connector-onesignal@2.29.4-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"81ae989df436eb6e91ab5e591d56f4f945f132dc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.29.4-canary.0.tgz","fileCount":9,"integrity":"sha512-VIrssR5B4/BANMBagg/NYiPg43EEmBLfZTLwUMLnwkN/732xs+pGkrV4VKcYtC4xOtn4yEw2Omtd73PA4l5kOg==","signatures":[{"sig":"MEUCIQCqP8cildrhAoccnU1qJhd5otKPVFeo8FwAMhyyi46DXgIgQLhERVVqiGyQroDw2F8tiFFpExmJPVAfWBuTYrSb4Pw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE+SLCRA9TVsSAnZWagAAfboP/jFuTQbTn8a1lZBxPuO2\nZW3ae8mwiHJZmAHh/C5zayviNf5zg1pYei6+l+DNL+xFif/DYa2Jaxa5m1fZ\nq1Bf71mWsW+tWnLJZpJhRNTLG1McLIC06Qko5FDKYkqbM8xo7wKezp5YOCpv\nuIxCK5NpnyHgVm65zPuCOmKkkFCD6O8YEjWrQ/cW8p7onA+pk2yR6TyM4gu+\nz7t/LRxVG5n0RwQnjlRkeyKTkwFCiq3oFloPKwxn/CPRZGj4jWvSYuZA2x0t\nzyOUeJzpDxeeKHluTy2x6ckXP9ezonE/GO2ddImvfXNutVGryUEIPhkDziot\nhydZjpvGrfh9zhWuD7JpxWzayKRLu+LcBK0tX6YDYrAftc9vajyv2PjlAbC4\nq2Er0lXIB6D/RDObhu2sH7zeQx+Q6KFwDdPfAO2AWSmf+BSxDnO7UMJAIHb4\nt86uUOMeaEp9QZCzMutWcER4rUvF1Nr73EyNFuyu1IeKlbl55zJ7ieyb1IOa\nvuFNj9+k/ZGH4oofbBWz0KWym1nIasK74za5ElZiOdtNiF4ZZVHmmBopynti\nSIinXTB6CxyPOXpPHOMzFDiJdglkKJEaDIjHT9bZCXObH/9HKQDH0zdmHeoN\nwz9ptOv121bxPOFt8qm8RBjK9bpuLSYKlFkoRnXfbTgNQkqLssixJLnwDDbe\n0zxD\r\n=faLn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2cb71a7cead244ac97af58a89e4c82b4ea6f1aec","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.29.4-canary.0+2cb71a7c"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.29.4-canary.0+2cb71a7c","@apollosproject/apollo-server-env-mock":"^2.29.4-canary.0+2cb71a7c"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.29.4-canary.0_1628693643363_0.8446247135338008","host":"s3://npm-registry-packages"}},"2.30.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.30.0","_id":"@apollosproject/data-connector-onesignal@2.30.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d48fe0af612823b5e8cca938ad0759d3ce8ee3f5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.30.0.tgz","fileCount":9,"integrity":"sha512-CniwYXJxOy9gpGJle60sQi9NiFUVtuR4A3TF+6U3bpX+ig9/+b2u8Q0KnR3eabcN7xvEOj+pL+Avepd/7wpNzQ==","signatures":[{"sig":"MEUCIDnqjpFNG84selLsU9edHW/wBHXF1aj3B1Z8fQgnU3myAiEAx5tt8KnlV4cm6iL4+ZqVoWxdMqIXu1jO7Bk1IEN92/g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhG8M+CRA9TVsSAnZWagAAElEQAIz3pwuvinDfo6rXGdWu\nFHWkZW5Np7DVZz/d/bH2NXXqRE8PN5b8AUwzEgv19MD2idOOXtYCM/nkfyQL\nHf7fN2l7VDXvvl2irsecHOdZzX0bR57xmlmrk33IE3LXLXcTPJ7xP6u+DLEW\nxvSe30f2J8JOej8s83T67xvOQ5dhcBJvbsb3qURA1ouiFpo4Xq/fFRgo2F9y\nUBj9E4bjlk5t5KoR3ABISutCnDZ4hG8hjg7/LvbHu0rt5YoqvZYpVD8zxAMF\nO7OpRMhcZbGtj1QrZ3dRAhl4kFKqvCKddRlgrTVQSOtJieh27bUPswJc2Z47\ndJoH/k6y/nGUuP6o000ej3BpwATDHBzg7Njcdm89itL7Eo8gHmDfSQxq1xFU\ngRK9GaRw25sg4GTDLgVspXScHbKFSW95phVhz+8WeHMI8HDEp8USi3u71Cbg\nsKtu6ONnuy0XPciouB9EJ+Sx2r5v4hy7y61zfW8dTcoso0QAgUO2ZB0l0jrr\n4TA8VhtkQVSvGQlfrtVfBZE6qjN32V5+kXwVxgCLUJcNzaeJY1jgpPKbTuP1\nxAb5ZAjdt4e5S/PKhGPXWQECpmHBTinCbNze/ShIZWq03poFWgFCgRaa/ZEF\nJ4S3t/P/CyfvPcMm4zQwy8bhHIlxE23Oy0qyfNJ4p2fK1mwUjCtyEV76pBwN\n9WCN\r\n=NTY4\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"c5d25f7817b1cfd686beff43a3c31685432a0f03","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.4+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.4","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.30.0","@apollosproject/apollo-server-env-mock":"^2.30.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.30.0_1629209406539_0.7097476046571998","host":"s3://npm-registry-packages"}},"2.30.1-canary.10":{"name":"@apollosproject/data-connector-onesignal","version":"2.30.1-canary.10","_id":"@apollosproject/data-connector-onesignal@2.30.1-canary.10","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a666b6cf055ddf299d91b1a8809e14bdf0292116","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.30.1-canary.10.tgz","fileCount":9,"integrity":"sha512-sNr5eJ3GrrAjJMobzuNLEjliOpnmJMblaX1F5cj6MizEFo52aoXokYIwqilqThtDAHfhPVHOrsF0a2lBQUgHGw==","signatures":[{"sig":"MEUCIFjuL0DzWz67Xnad3oWNxknst8iseIXLV2ZUbYiGZ9VbAiEA4EDBG2vSf4ueowYZv4q7DbsJ/7nHWeVn9bK4SMiLocs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJjyGCRA9TVsSAnZWagAAEbQP/26YvnWTXhDtBEsrOd6O\nGZ4KbS5KqmGs0p0pUEFuhKv9ccE45hLCQvbYvtvS18MJ9rVRWNj6fnXsoQwV\nsb7iKGgU7VXHvs2F9bEYXZMP9n42DBhqc0BptAMgO7HQR175Fo4Lm9ocSlI3\nUtia5wYC35pO5hPPm4Ws24EgBfS2SMBrFcAA/ZcpTZS1L4NpZAOWbe01hE68\nxkMb62hDPHWOgNOmUHtpoVFdyk/rzBDMuo1fIpbxRSl8HvEzeA8h5zsqu0Ch\nX0vKsfaTBXz/JsQzWomF9SDuyYtI1lepkCkECNBY6KVpgXX/GGuIxiGElQuU\nBRjE6U671jSlTpCEpCNeHLmANwB7LZ6XAuLYq8RHX6SGVSkRgbo0ylusUKdI\nOGaKLaVo2xu3UXyHLrEVJyaYrh4kl3js9avlay/JFvn5g9XClEqNFUyj4iRR\nQS5xnicNctxa+e7uR+wKfcSxakdLeiisATEF/Br85W1FJikNOlfQIXagHVht\npniHTWO+ZXEh8Xqs6RTiDAmdg/Lu+E4QyQParFS3SwcmWgcn4elGQ1RCpLcl\nA8JyCepQ6rq+09ZOHZQX4StSjTRjWkyIKDnJTxGeReZwwApqLbfscrjBohne\ngh+zttdeYJvH8msa8u5/DPZtCXm6/hZjlWIZ8mppyLe5/TfhNtvUQkxG5cXX\n5fsk\r\n=Xy0f\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3553e090bc7e9fbc285e53b0f628f97bf9b2b7b7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.30.0","@apollosproject/apollo-server-env-mock":"^2.30.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.30.1-canary.10_1629895814438_0.48931231949106646","host":"s3://npm-registry-packages"}},"2.30.1-canary.12":{"name":"@apollosproject/data-connector-onesignal","version":"2.30.1-canary.12","_id":"@apollosproject/data-connector-onesignal@2.30.1-canary.12","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5b44e515683642b04f7b93835cbf925ba2445e26","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.30.1-canary.12.tgz","fileCount":9,"integrity":"sha512-iUNwbNOch6jk2BzroXF5vZFeJDkZoi/DYzoNKOIrL+AhLrwyJfD6OvUtxbeV51XrwSuPrgWVq2TiXE3QetnAIg==","signatures":[{"sig":"MEYCIQCd8MkeoLD0vcOJSILZdDba3nqovhXdXmlNL8s03FWjqgIhALbfZaahB+kwImGZ4bIs8b6/4Cnk+OMZPk/khhx5hwqQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":44746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJmg2CRA9TVsSAnZWagAApn0P/2TlH4qV7ar+KfUzSzp9\ndkLFIClWQlQvBop1qDPerejoIdp36brhqZ6aNFAZ3JGPHDuBjFrPkawgr2rT\nK/m9LaKNGiXHY8OWPwPLZNn851aEAREEE9YRcRCVcv/+KHnvfc7LAqEJLdKd\nGVH8kKJBtWeR7x2Agj6Lm7JxXnrct6aWFIBeENaAjUTUFlIoHp1/bNkT5Azz\nWTC0RrqzUie9/IJbieerxHR4QIeyjzcWGQLoQiWZbcbe/7wSD0/WADguctoz\nCg+yUVtyNxhgcSIr9KZ5t7j0VbzqrmuHbyz5i3kvPpyW2ViSrgIK0b7TlFHZ\n5ZnF1yYVNZkfDWPT4G7DaQuhhsTiky/p/mMogYktS+llGQHDVb79Yl1vP2VY\nFdfubqxD1c9HcsBiag7nBOGQ4r423cAt/EaqIQUZ18vrF+SNquyRtY6Gs1zr\n8wSMpE3Oaf/lK802txBLeGG2OFjBNYu4GcabqAtBQ+VwvMzrYKgqXGayWDLz\nDAR9BglU0H+mymZ5eqCj9fXk4PcwA5TGHXLltKlVKUvV080UsTD72sXh6oqG\nOS3Z3NrRDBGStKxKAhRbmuTbJZNGGilxUcgk8uHzYsXsmxlL9pR1qH3NZcln\n5tQC8Rh+Ip42wWYDFIRNVKlYxtWwDHXejLQOBfCZxUkX8LyJlQeLHG0PEmYR\nMB4u\r\n=Sf3w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"51ca3cfe128c7af859f0933415e4f66f2633783e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.30.1-canary.12+51ca3cfe"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.30.0","@apollosproject/apollo-server-env-mock":"^2.30.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.30.1-canary.12_1629906998084_0.2363903070563127","host":"s3://npm-registry-packages"}},"2.31.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.31.0","_id":"@apollosproject/data-connector-onesignal@2.31.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9415b394eda53f6c094c60bfe896b0ac07c72ff8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.31.0.tgz","fileCount":9,"integrity":"sha512-ZHk9lUi2mb3/9c0CheA16F4i4Od1G0QCHSI8BoLFlaQYIpTwW/dRr32cxLwKAZ6B27QW0J/1OCobql4GFVbP0g==","signatures":[{"sig":"MEQCIEmFlp/XVYn1pcqaUtlfBlCWceZeMrmBRUUK7hwuoMZGAiBNOMClW8D2BekNt66DKrAk6gs/r/j7EulRomkXVguLWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45059,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJ/TUCRA9TVsSAnZWagAAV4YQAJciqc6aB0tRNk/EsrSF\nAfREw/GTDeIeerIJBypb5MIAWYYptmzbR5XXCw/cMTXommdCFAlX4RO8ZwBE\nAHYs3hcfmSpVQFQWWSO0WW374pWdKUSArPZk6Sw1q2NRrULJQWh0LMWHWMRq\nPvf8W4bpXw0SIQJwT3zljlQYznliBljKxd11qpcrutZcp9cYJKzrf8ZyurZ0\njA0FA/Ew8idUyuAAkIjyWo83PZy8V5f0ve23V0/5zK2Wujf8AfAbvvWdJBSw\njrrDe2kBCRiYCkkvJ62PIK56jeur4wF63r9qmmUKUel7ZIht3PptclWWX6mj\ngqMxA1DIQ8bOrHUHQcqzmkI/3SY4kXVX1OVFnrdQsO79uQ0u/IdqLZGLQXR6\niokaSTz7hpxOUv/Qa0kzYBYBdqFpAcXZeKy/Sn/2NwyxXM678JXMyooOPUjg\n83ZKI/cZImoZbKJcX6hHUPZhWgaMgk0cWeVFmA7Heg0tmxFbtd0ZcVxI5ssp\n8uWQ9HXn5Mubbl/2O6wuy4+a6pRImMaKH3RDOXLGmBbdIcdn4h//U5/bXWgE\nqqYJXgmdLXe0nFp6bhGUOKfGfQGi65/dsNIcUMrwSQDplt8p5elpxib68viU\nl/1ZQdzg+/V3kS1oZoZSyv1u1PClFlMJrAJN1oqvfD8SJclQ4MHU/+ykIpZO\nXjih\r\n=fdXu\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"a61693d41db8b7e2fd4c99b50ce653b2834f78c7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.5+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.5","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.31.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.31.0","@apollosproject/apollo-server-env-mock":"^2.31.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.31.0_1630008532740_0.10927479721082478","host":"s3://npm-registry-packages"}},"2.31.1-canary.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.31.1-canary.7","_id":"@apollosproject/data-connector-onesignal@2.31.1-canary.7","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d0d74cb5ce5337697443506897e26fafbed0a8fc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.31.1-canary.7.tgz","fileCount":9,"integrity":"sha512-EJc1waib4STgXNHP2GChfoPgU53Fr88vmKXRL+lC6dGfs4nhsluL1xbSynWaFK5zq+tO8MjpPb+tr9pp5KgeoQ==","signatures":[{"sig":"MEQCIDHITGjF5RKdw8Lw4lKPDaj88UWmxyqXLszbQ7Hvu0lNAiBJqoG8vqUE7Ayo1zF0nhhdio2Guq22zvqQEopu3P3EZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMO9NCRA9TVsSAnZWagAACR4P/1u2ihV0JaJy6JTh6Dir\n/kPKeNm/LF0Q7rJj7jdS7+dP1TK2V6Lc9guEdFJOtYgqseH5AFZMgB+Uo45M\nWbc69R/fPOCAqdazSvobImcoCbkw/s6QlhC9gHe+Iwwxx7nmUuN9vmfZAxYL\nljRBpbtZuAjnjlOfY3K8S2niYs/KjBGoaXJ62p7dEuBsizmcCZQDaJOGlXE0\nJxAiiwvmZWl6Fcwzw5F3afDExBoLXTvkx18Yhz6d83+GIQREYsd9bGqSAUqT\nAP9gXd9VFhhzoD4tMsa7+DLYUnoYsc9CURSCsx8E2h97r2Z12ewyaNMzFzIN\nfQ0A0y47Yl4HB8oPyyeOtRLZS1CQk7HB42d+5iaTzZwGYCXxuN9AoVRKUbnV\n076WTiBNMuU6ldg/QqSB9dA0jjix1EohtNh01Bp0BGfKFHPo9kTBnL0rSfcb\nXdPa/gbNDUHiOvRRvkUhg8R+6BiECteeLg3GWb8rMq7Q4lqCNQPVZpJpVoGU\nMVvtlYcQQ74WI4/QMXVlNT3JaHsSiTxKx2tjJNkdkM2B5SYSgkwWHAiDZioW\n3Yd30ezTj78HMQQRoVxgIuFVefKkCYZ9IF5COjrk1irsD9UGftbsePs5YfbF\nMisRn6ni/9G5rr2iEyDAHNf4zOe7P/kB4a2E/L2A5Tg+eUqFOFxV5ATAjilN\nTiMi\r\n=nuci\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2398bfb8fb95bb501c25b0351f0d92708b8867d9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.31.1-canary.7+2398bfb8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.31.0","@apollosproject/apollo-server-env-mock":"^2.31.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.31.1-canary.7_1630596941301_0.36455283798779603","host":"s3://npm-registry-packages"}},"2.32.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.32.0","_id":"@apollosproject/data-connector-onesignal@2.32.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"dc731aa21e13c8a1e5e70ca1fd0f29ba57e8035e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.32.0.tgz","fileCount":9,"integrity":"sha512-0E5vNTTJIN+Ssc+pMKSNFuiv0pmsvvSzwQ2ZDDgdCPP/9bY6C82nj7tR1y6r5vZa1okwWu9nVDUQJFb4F/I/sQ==","signatures":[{"sig":"MEYCIQD5OasPQITjUI2zsaOiuqcHXaguY1zwLyvcn10y9ESHpAIhAKE67IBOPATNKrLCBbtM0TxDaJDxk6FRnbMp6X+ZtFtw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMndMCRA9TVsSAnZWagAAHTkP+waKs5/uGOxkC4Y2vIlt\n6TJqQ2VkH31pfoI35vOM3vCCKGtIfDOXh7hh6CW6q0oKRr6MzC+5XYEfGRby\nLee+HUlxbRE4JTHmo4h3+oqH/kpOm4rwgLjF1fMApbrELpdh2NdDF9t3ocuV\nqMAezeg1UHo8BWTDt5KWY5DUVtWysLfn5to2+lI3MG/ulDTzRw933FA6E5tz\n7Hj8YNnfDXExLYOkWTLSHTaeLIdplYzC0MWQBR9hYasocO9450vNA0H8CYrl\nXXv21lJqQZFAKct4Qy7TGXfQ7Nc4tvAM3l5oZeTT1+LFaifiMObtGLCjdrvU\n9L5BdW52+kYOku2yJ+dWwaolx/db+SuY5arHCFiUxc9Bn6UL05mPBV9DzlQm\nK/Y8YNTCGf/gbvfot1Y2mMv1Dq7TbmEa2p/aJ172IiuUU5PZp7/Ka5KFHH6G\nFLDAqDhEAjVFUojlZQdijw4+dC2DTpEXdcL0zQcK1AQeHxwM8+x3eqHxAZBh\n+cmZ0pE2ZMG9EwgwGEznyyOax93p9QfEeeL6u/GZ1WeYSU/BjFAogJUnK4YE\nhZ2j/9OPikTUQ2vdjSP7eKVxtNk3eJ7aCT3BX97BRDCDPSQHGTts9OtgWIgL\nZdMCR5RuqSlfgcRGYAhK+9jYA5jNWZNzDD2KDR3zGL76wlzjZX5cA9WiBpuK\nI6BG\r\n=GWsd\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"5efaf22d5397c87381383a6f1fb784ad7bab72ae","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.32.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.32.0","@apollosproject/apollo-server-env-mock":"^2.32.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.32.0_1630697292641_0.5387019771950334","host":"s3://npm-registry-packages"}},"2.32.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.32.1","_id":"@apollosproject/data-connector-onesignal@2.32.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c703877ff3e5fc7349216c127f1bc72028d06d47","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.32.1.tgz","fileCount":9,"integrity":"sha512-LYgYsW7VrE+iBna7S2jjlL+BezPsoKw24HGTfTq/E/2xN3R6uYi/mqlkU3wT83shO9SEbAajtez4OYwkS274lg==","signatures":[{"sig":"MEQCIHWS6++NtTjrKaJ5WhRMkO74QjTenx+92OuBWOw1DXSpAiB45WBX/rrF+TZeFAInX5cvi0lHl1R65L9NBDe3/JElaw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45432,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhN4oMCRA9TVsSAnZWagAALLYP/R+zPS0uE81nttONuOmJ\n2XhhiqhOVJ4Vlb0pUa7RlMWWADkMArm7aCMBI1RWLysh+1/mH7RPNQrgDq1V\n/j7Puj9YsmGd0rr3nO2r2LdEQynGoY9p6sGlgIWkfirc9VoBSsd5/YbrF9/O\n9KxJGBJQtFjV1pRRJkMitrQ4qeysEYvIUgtKTW78XDCiVSFdhFtNf04211a+\nknNcZEqSRovZBwIQ/AyA//MT4o4i85J2PGc9sa2wGbB1iqFYP89nKwxhb15V\njcLUsH41Mo+oCwb8meZYCdRubVE+mxD3A3RTaxBch3g/v+FSHbIwZWUSZpoZ\nNCGwwjtHrPMHWFmfjb20sSMTY1jBP7V1BEHdlfpOSQINDhLWWYCAbGfwwRAv\nP/jBta5l/LMLGWxc9YP/A5vpliAWga+CGQiiiX4JE+HtnqlbKXtvvoMsMynF\n9niMaYG8dhCMc7aj6LwsQqXYGe+3NrlFN6QcQw3ihNKsrHp32aHEhOuR+0yw\nmGsGF/OvwCHSsDjtVS6NNqXb7GHZowvyZrZuTjCP7AIbr8A1qBImua779WJk\n+7hPcz6ADoWa4cvSgxNU/ruxXEtAimmS6yDashKrE6XQ6sB7U1rDy7el7x1e\nVRPjrEJLpLZnP67yWMrWH/3685v7V7Xf/J1ycH1NP1INkzrihk72BKKi4VAk\nHgak\r\n=1MAk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"e857f74c46ca80b0f89960c7f1eb2e7d5bae10ce","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.32.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.32.1","@apollosproject/apollo-server-env-mock":"^2.32.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.32.1_1631029772668_0.6971177996281037","host":"s3://npm-registry-packages"}},"2.32.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.32.2","_id":"@apollosproject/data-connector-onesignal@2.32.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"39c573b651e4c715deb5172b1e6d4cb31879cb67","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.32.2.tgz","fileCount":9,"integrity":"sha512-UKzvYihceCtpq3YsasGJU07JuHKdBRgL6nsDRMoGzud7RVU0GMyWBFcb/S1pCUqu0//lu/+wMfKCVproGlyYNQ==","signatures":[{"sig":"MEQCIB4r1168HO5I/cY9ovwOkMK59b6jKzDYpU0UlUq/YzZlAiAf5QkpSpeEX7ZZlra8MN4wndy7Rs6hrj24McxtHlBHjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOkeUCRA9TVsSAnZWagAAu34P/3PH/rvTEHl4IFuBsqaB\nDSAqkvvJ5Pgd+fsbhIK0CdOSHh8BZ91VxLGHTr5pOx3fPn7OS32j6Mlz670S\nxBdLd7FmvIoLxCOVlkKLt9C93EQ6+hQwnFhkF3ZQmfzfBZnxb6sM2nTheM+Z\nrS8DpjmEdphOruZuvNdIbbEt90jHmQyinCtlmeetB8r0PGF1gM8zDg0CrHRg\nv888I47ibuRQ081a/nNB69nndGU1gSopQcJnLrgVQNZtifS2TXQlNRHz/Gl4\nqv0GsofHohFMETG5pe02Ggc5kT+DAncoxw5cQY9bxqjW7q0706+Sx7nZVo6t\n+f3LBbNeM+xxxhkkILH5Tpm/rLti015eW1ZdX1Er+9+/Mw4q6Ecbm0+INOfE\nW+k2f9t3vPLevp8R4Fwo+gX7EdB6Qk047889hCyUGyQtrDhwZnzIJMV+HH6P\n2NC/cZPxy1ozr9f02PUOj0gHTDrpYhd2wFjpsHVKO23cp+U97fLcixKLiKd2\nqJJIEYaA5M4+iqNmo3of0nam17VabuJJAGXlmu51vaKsA9qEWtClqbfeBC2P\nW3DmyqctO/cACtrXzqVWUtKucNbcyM6cLUWUEWBKYWDod2KpqE8ZC8psdGj0\neptK85Y685Sb8BA1VUBQCEiW9Tvrrp5grVgjILDBKi9PrM3tufN6M9H9XrZM\nIpXO\r\n=Rr72\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"d4d982e8c7eb6214ff272af679eaa96e6752ba3c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.32.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.32.2","@apollosproject/apollo-server-env-mock":"^2.32.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.32.2_1631209364123_0.09066238374503643","host":"s3://npm-registry-packages"}},"2.32.3-canary.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.32.3-canary.1","_id":"@apollosproject/data-connector-onesignal@2.32.3-canary.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"031c0fb676f403359268fdfd9dc63f942485174e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.32.3-canary.1.tgz","fileCount":9,"integrity":"sha512-xiMSAQlT5mWwWp74hXmw+DUnlZYE8GOX3RynYGQUFsyvpK7hRnLtwFw8UxGlJip2UZfrTJMC35Jb+gF17FSevg==","signatures":[{"sig":"MEUCIQDfy1EOtTkTQ+bnWRAZ/Iq4gvR8zb+L/3GlWDVbGWc4eQIgXALgrLzLOPs6ZluvdneYXW7QwMtcZTOs/eUFWzcNp2A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhPBaJCRA9TVsSAnZWagAAdcYP/1V+j26hxW0ndY9RmsTf\nalMQspR8SnWshbhWQA1IFQxPyGudHufntp0G4nrYDKX29fIfRzZfA3OVcOPY\na2AgjiZa3zXkukvEJH+UJdx+4d+DuScNBk7vvNNXozqS30vI2GXALrdIpsNL\nOn2RmaTecPHKegOB87i8ODps+p0b953QqZxWiVV5MHExAPUlXFhnExbyciw8\nKUuTeSwMasE6sqp+DwcA+chyMKAp6/qdsKAeVxsYC7OVu9Uk4QdmsBtC6Yuw\n52sgFsBNIwqWiFqY2eTsnsBuWlPTe9R9ghCV25wYept5bnr/8Y682t8tAT7N\ni+CG17dGZ6QkyyO5MVFSG9dm7zWA37rQOmJNk7IDb8CqDaDmyQisl4UCPDCx\nXsjtHEcxWP7Nyegq7Y+HlEj63evuq+Vz8szf9TAIABeuQ0gDqqSwQ6AneC2x\n8CAbRhr3xyEjRDKoI9q1IXeto8EHdEsaV3idjJBx1Uvm/QX90Zj1l+d12EEp\nT1yb7FAxHmUn+eeSyiwOr9WrCIxqkwloXZAQG+o2UVHW7vsMh9YbkoP8Ur1q\nD1TdUmD3JiZiopKlswyR3ka+/aZZ1fqxfKaddIuxa/f5LJcazlcuhS+yEq5k\n1FRJCMKh+bvg01loCnTpWemiOneK7BYCd1LzEFRVI7kSagwbx/S43fPT/y5f\nXkBq\r\n=IMZp\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3af8be70df0931a66378982a766da18de31c8176","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.32.3-canary.1+3af8be70"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.32.2","@apollosproject/apollo-server-env-mock":"^2.32.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.32.3-canary.1_1631327881393_0.1643952288864048","host":"s3://npm-registry-packages"}},"2.32.3-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.32.3-canary.4","_id":"@apollosproject/data-connector-onesignal@2.32.3-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7e6357367218adb9e3042831171cd7135091becc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.32.3-canary.4.tgz","fileCount":9,"integrity":"sha512-E6ZX1SkOn3tO/fjh190gj8GkDdI1a3IyLNLuqTDmvMVhnx0X13/vy18Nt/XoNcpZCIHv3xfhBjB6TnTN9npusg==","signatures":[{"sig":"MEQCIQDJJJN8UfkrxwIGW8Rf29X0xoQSznSQIaoOLuNhxevTeQIfHoANpyQC/CtejINTVQvWfHPet7v4i6Hlp12Fty2QcA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQezyCRA9TVsSAnZWagAAKNwP/2yyR57azBrnzfL+lHr4\nFoQL4Ig0VRfp1l/5JNFuJDyasm9Sux3f7LiFOZ7CIOQdXUjnoki+Bj1XUYDn\n1U7ylPQRjbOa/XpJS6ICNSaVCNl8vE4r5bIcWowVMQC0STfZ5Bil0SwSIZ7C\n4jbr24nU+f5GFFR8OcjlWnLSzuvNbcaK1GVE28pUsOMQAqtBcKTz6DWrPSNp\nz0EbiMsDHzEC3tynBRh+ijX7pjJoukJLbvk+P9C5AehPcweFvRGQQB6B4C95\nc32bFzqc1os5fnw6+2Ynf0Z0ioX0K69KuwktACpCV8gG3mBpQVJN6JKIH2k7\nDsOLEGaC7KsbDpwLVVFn0v6rdO+c/WZkjohD+/CWdYcgHrDh95AG2CAw48lm\n36QMUEVQ4JbOLrUA+jfY/moROq4w3POrdq5hh5tDix4TVY5IZbxqgBXC0+9l\nEwvd7adJrhNTLHWxgKZS/Sb/f5WxmNVqdLn8nJL1Shfdgt6bI9KNaQRxwFqs\ne+yWq3eAS+QJZc2A6h42MLXAwmgIujSYg0pj9uqAgXoHFnXDmVJZ31vB0Iww\nD8oSq7e3NQJxnxhK1Yj2dm2IrYnkd0/c2LYRhW5uQfD2vcoDKcKceAhTm03/\nSQl01+2jdDmqtFjqNkWzz7VAVwkXAhJMRF1Ih8gW4rigPtylSrGFbl73qP1A\na5F0\r\n=AMDa\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6228bc2b739d2fc2219dfe066436c9b4500cdef3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.32.3-canary.4+6228bc2b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.32.2","@apollosproject/apollo-server-env-mock":"^2.32.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.32.3-canary.4_1631710450601_0.4427630094831614","host":"s3://npm-registry-packages"}},"2.33.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.33.0","_id":"@apollosproject/data-connector-onesignal@2.33.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1a2edaedc6eed721c547a27ae1c544fee0af33cb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.33.0.tgz","fileCount":9,"integrity":"sha512-M8w6ft58+iAfTRTrrHnPrQBHAtCSp7F+KhlA/LlGUiEYCI6dFKmOGv+TFVwgsqQchdjhRNj1yF0f7MgikuVJDg==","signatures":[{"sig":"MEQCIEjSU6zFkYZ8MJyd291zqOAnzP2J30aRACnBUbBth8RIAiB1rwAWZqDewhkpBxVJtR7RdGoqJELcKK0VaB0mr9KROg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQhIBCRA9TVsSAnZWagAAggMP/RuhVxXcriTH8S5p15aF\niaCqv0a2InEwkQvVjyOwjNWXx1eprcO+0cyK3Rt0tnMIS0uDc+bRPX50qA3k\nzpHcjBMV4pJuLuAKMXd612Yd9Qqf5ANL2PKUatuJHEt3N9eUbjYrfbVF3Blc\nZpWMIJ/OH1Nh5HGBB9BWpSElG0mlKwuX5CL5CMvZ+oH95UDCPCKsmYn8z5UH\nHYIzc2Mqnp6bcgcgB72ao+7y10dxOupn6fHv/yhzdEBTooBLG36BBcSjx9Wj\nA71/SiReR54KcrLVMptxMyO2OpZ2wK6xIFlatOz5wOtz2B3r084+IjK7x7aU\nbHDtjpHHVu2M4jhlpkZhPBZUS+jDgnRZJxm28HJNPx826adG87Um6c64RIfd\nHysRODAE+bkxH3oeC/s/3nJ7p1LmWGf7szz4oSHmgwW80iBw0wogeph15cB6\nwSTNq3S0YGSv9b/p8n0tTgFu1qEK2PQ7slr66uvJZ5T7pHv1Z3SIatyAF9DF\nFD8LY5WJ+hO8GSy9rY4ONniMQPoHrp0rfZW9fZJrEfSJjb2tcXvJHULxpL6T\nm/qI3yKK4ObqydboJk88cMuB0H+r5lLcOum1GJ8QR/7eQhVhgSoZtb6h6u3W\n/s6+tEvFffurKtR/59MWMmzpmpX+Fjii17PRP+62yzWIDrJ1GOcFGXPe5Nib\nvkhM\r\n=AgIv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"629a36db75775233509a93734fef8f85ed23701c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.33.0","@apollosproject/apollo-server-env-mock":"^2.33.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.33.0_1631719937675_0.2948223703848145","host":"s3://npm-registry-packages"}},"2.33.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.33.1","_id":"@apollosproject/data-connector-onesignal@2.33.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"dbb4a5c0870783ac443d35babcea6898c2450782","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.33.1.tgz","fileCount":9,"integrity":"sha512-oHwJq6i7qmzx6q7nuT6VGVTpS79+FMPz4P/Y6u41L2zI68Fx7iS9aumk50E04i3IpAfe6opz2IWPDNWigxJMgg==","signatures":[{"sig":"MEUCIQCsXIQMVmVfQ/0Kjf9WgS+OMWh+gIHABJ7fvoRTJ5Io3QIgHUcMjk30CMbM14RMmB0xSGnobG5j44tdUyXqwsIDeiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQmTSCRA9TVsSAnZWagAA3c4P/j0ikp3skFbUyATE8vmX\nkgjvT2vxBfle2ky42z+pxTY3ayEKD8ScP0MpuztgCIJ5bt2V1slX4u1mCvCy\ntiBGfA2f1W19EjsQsBpRTPf4F6hnqWjvcD7kCqHtq9JYLu487c5EUi4aCeCc\n5W8Zem7wERRd1fijK70sv67TccVVKwiaTGoMeLYgfQnjHS49fjYkMc6WnezN\nmqP48JDe0q0Sp/RwpZhSXHJCicfaDCylYgm58icQ/xdOKRTmEu4sOXUg70hh\n0lxe3ugo17+W/8IV5dL0hIRJ7p5EbCNOQv6wILpRfShfEI/Clo6N4jzdLpwR\npdB0SXj7EnoDG5OOWfg3wyQ966WVgVy6s0kUNKWs4fYCW8rkGeC/lBQGhJMQ\nAGkVkhmvXz+iee1yglOODsa2BriVkJzfZBafvxlLGTWiJQABV50MAjOHbWwY\n1yPiP0mmNAdYlCWWjDQXKOMenuC5tEd4ENw/QOpkZDp1F1UmtEcdewn5Kkil\nSv7tKKMcu87RqwlFPHs66G0yYkb4OFvNod5X/mpYo6I8FmaXHuZY7tGPFawj\nsgjRvmlN1y/2Ga/7ozw2ykk2Zt8FRB7pjj03sOLww5Ck7mqdKR0PSux8zU15\na2cO+5omCEI6JQ9mk/QX6oQSVUfYEwfZrI1QyQ5rrd8mvH+85b/qIqYe5ISv\nySAQ\r\n=XZmA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"3ec8a8cabefdc7e2b1bcea784bad9c7161699b08","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.33.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.33.1","@apollosproject/apollo-server-env-mock":"^2.33.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.33.1_1631741138101_0.4256289012976906","host":"s3://npm-registry-packages"}},"2.33.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.33.2","_id":"@apollosproject/data-connector-onesignal@2.33.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e1792372e0bc0f091a68d506cf305a82bc129418","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.33.2.tgz","fileCount":9,"integrity":"sha512-z00bqkBBT2XGhlFRubrsdlXBtEfYwNneFcAH5g3oPBKE6u6a2wzvuRp/bYENLDYmmgX+NyYAE3Qv8woYu3V8eQ==","signatures":[{"sig":"MEQCIGSiDno0JHwjSPInXSBRep6QYYUwlcUojJn1wBZDnqU0AiB8Sxhmg16qLRtLqpWgf4DiuRnKLfH53JLxeVAX5IWmAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46179},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"20f3dfd8c65dda50c1e1901fc7df9011a5193845","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.33.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.33.2","@apollosproject/apollo-server-env-mock":"^2.33.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.33.2_1631900571765_0.23200605330152757","host":"s3://npm-registry-packages"}},"2.33.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.33.3","_id":"@apollosproject/data-connector-onesignal@2.33.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2b92fc02bc886b1dd49ea9f29753536c046b9e45","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.33.3.tgz","fileCount":9,"integrity":"sha512-A5ro5UiapG6Y+45lfuND+hzahbnkdFtuYQ2bbYPPt3t1zsMZg1CCprRMV9bcOUrnGhEtsHHb9Z7ziDVn5K8zcw==","signatures":[{"sig":"MEUCID4N+9yFhUwoIN1vDZvj7U/PWwYSTDtgYo1xQFwhCghmAiEAi3wxmC7RN9bH4yX+GI/lj4ww1ch4J7WCXCb5kuGMEUA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46366},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"335fe272894f011dfa695e6c3d233b7c8f0139e9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.33.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.33.3","@apollosproject/apollo-server-env-mock":"^2.33.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.33.3_1632321111537_0.3932965167528524","host":"s3://npm-registry-packages"}},"2.33.4-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.33.4-canary.4","_id":"@apollosproject/data-connector-onesignal@2.33.4-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6f34c223e659fb9a4514e993023e9f995d0f96fd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.33.4-canary.4.tgz","fileCount":9,"integrity":"sha512-JGnVUFbNAbvgZ5FY+/SeknUbTpQhJaNUVgPzh2+Qv7a5y8n4tjvALARvkKzh7RTXwDophOlKwtNj7Bl9pI/2yQ==","signatures":[{"sig":"MEYCIQD2ivAaUZ/mCen681q3KmOeS4ywiQ1jlbu/Pn7A3XE2HQIhAPQy4P3tsP5gjkDU++ChAV6/6UPKFPjgDe+9ugtSwce5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46402},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"9dcf5f5fbd1596d9d9ae93154f6b52ec4d012cf5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.33.4-canary.4+9dcf5f5f"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.33.3","@apollosproject/apollo-server-env-mock":"^2.33.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.33.4-canary.4_1632423953997_0.42245012353985234","host":"s3://npm-registry-packages"}},"2.33.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.33.4","_id":"@apollosproject/data-connector-onesignal@2.33.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a05a92612d6f99a7d3ff891ce9ac0a026e0b9602","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.33.4.tgz","fileCount":9,"integrity":"sha512-viv6x/HSWD9CS9wq4PRb9VYlknXaDKI2cXgxJ6O2z0DkIc9NjDHYNyWiL653zjfkxEx38aKff2eSCLA60Ky+2A==","signatures":[{"sig":"MEQCIComWSNlur6nEZ9bg0AWLberZAZLKYytSpu/bAgCn0bHAiBw/qMxG5my6WuncIVR4aUF7meRAh+v22QLE6+wb8bRwg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46553},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"4834d95a80bc78986593c593c707ad45213e6c1a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.17.6","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.33.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.33.4","@apollosproject/apollo-server-env-mock":"^2.33.4"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.33.4_1632749883886_0.3136959143251543","host":"s3://npm-registry-packages"}},"2.34.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.34.0","_id":"@apollosproject/data-connector-onesignal@2.34.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c05e9b61ca2dbafee57fb514d7ae34cda46d70c8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.34.0.tgz","fileCount":9,"integrity":"sha512-sAQD2q1v4Vl4ENu5Z2v/NPfC76P72wu23xOcyyz52ev0Hkb55n8zspGnLEMrdg4HS3IWdrjagDozNFVUwB4Yyg==","signatures":[{"sig":"MEYCIQCja3sMVGijhevk9qWUAVTblZI1guYB2GkE55rvfJ/YjgIhAPIWpDqXnrw7FeoEimvsduqguhi233LqkfmaPCk8bKSb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46739},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"d9cb459ca58e1443bd1a609cc9900cec1ed738fb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.34.0","@apollosproject/apollo-server-env-mock":"^2.34.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.34.0_1633113394923_0.6400540712267782","host":"s3://npm-registry-packages"}},"2.34.1-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.34.1-canary.0","_id":"@apollosproject/data-connector-onesignal@2.34.1-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"709dfa954a22a138f66eea97b951fb39d31ccdb6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.34.1-canary.0.tgz","fileCount":9,"integrity":"sha512-ck/NJ8KR23MJJIpYgCg9cL/ZneFo94puWTEc9PidohPph1QR193jyBq5+sFRyLKYI0sTFJH5otJCqLPBP1TSFQ==","signatures":[{"sig":"MEUCIBSbIbH+z2WksWLoBoXWo8BEyVb5jxSb0dTotWYZW7ehAiEAnD6hzF+9BCaqUHoNPZeCwwkiOoFcJGO6kGdkhsfw5nE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46775},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7d1d5f4eebb8cdf5a1c14d28181ea5fa06839ab6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.34.1-canary.0+7d1d5f4e"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.34.0","@apollosproject/apollo-server-env-mock":"^2.34.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.34.1-canary.0_1633372255776_0.4360458084237848","host":"s3://npm-registry-packages"}},"2.35.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.35.0","_id":"@apollosproject/data-connector-onesignal@2.35.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"bca93d368bbc0e8e199cea1f475a01af086da7f4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.35.0.tgz","fileCount":9,"integrity":"sha512-Q6/8/gbzMJ5iXTPq73p42zWpimmb/ZCJc0R7p3+g2NnXlZhnDDMsYw4sDteKl7/urVWmOhrFbrwM/Afjp3bV2w==","signatures":[{"sig":"MEYCIQDUWBdjx8aDemQ/NnNFv0wztsR/CwUCSSbY4Trpj4dn2wIhALPwpjYLHpu6ZzPWC7Z7r1LLdsq/TPjXyUpGUJr/u90D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46925},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"83a56a48dd28ff2a518947d293d3b763616cb4ad","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.0","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.35.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.35.0","@apollosproject/apollo-server-env-mock":"^2.35.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.35.0_1634046054978_0.7420756498225831","host":"s3://npm-registry-packages"}},"2.36.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.0","_id":"@apollosproject/data-connector-onesignal@2.36.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d6579064f49a1c3b78f71848dbb20a39ceec6b90","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.0.tgz","fileCount":9,"integrity":"sha512-qdrCI6tXv2Bb+CmOAEsvpmUj5fjkejCyy65Obkym3lqqBYgvuYDyyAPX2zhLfO6t+5/TGP3Wzt3006J1HZzLKA==","signatures":[{"sig":"MEQCIHaigI2RnN0Kqkjt/MkdiO6vhc0n4DOUk24x+yjh4f9pAiA6eTjmfkVR8n/mDeEBsZA6WNzdM6NA4gZ7UmUNhoWzBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47111},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"df9ec6d30485eb3849f63a52cbb3a378722257e7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.0","@apollosproject/apollo-server-env-mock":"^2.36.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.0_1634848319346_0.34057847667863284","host":"s3://npm-registry-packages"}},"2.36.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.1","_id":"@apollosproject/data-connector-onesignal@2.36.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a8d324660db7556e9affd661eadcea04e78c2500","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.1.tgz","fileCount":9,"integrity":"sha512-tdyZy28LL/p8mwogJRZvbazO0EzUCSQdqg2EH2PVaPfBULgGHUrHD0UDOhZ0/CwZGLEohzwu/u/YdgMm7PhCbw==","signatures":[{"sig":"MEYCIQDJgBDJ3Thq/RnxzU9DAw8jXzugSjKuJVV3id5n7+Qv+gIhAOnT05h/4I3mXfg3X2+26D0lQTes34lPSYu3BOlsElV9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47298},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"b7658365c67e3ad42f4aa53497bbe3e4b5fc07f5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.1","@apollosproject/apollo-server-env-mock":"^2.36.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.1_1634936576853_0.7863068886540636","host":"s3://npm-registry-packages"}},"2.36.2-canary.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.2-canary.2","_id":"@apollosproject/data-connector-onesignal@2.36.2-canary.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e5250f30557b882d6398bbdaa77dac4e16185cea","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.2-canary.2.tgz","fileCount":9,"integrity":"sha512-8Q2O29qGov+AxndOB5gwLN8acd36c7ttGlHZf2QwY3mb6KiinN/AIXIe5vN2gwqsO0wyJWQZCw3vekUA2eX6VQ==","signatures":[{"sig":"MEYCIQD+Vg95b1H84wguHzrKMFYLtLxFllpwA4SxWUXzM3mfjAIhAJdu4m7vqSYSemPObV99JXVazxD12W2MI5y3R95yJRNb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47334},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b87b764bd5dec616cc77b6469b72a2c0846795d0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.2-canary.2+b87b764b"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.1","@apollosproject/apollo-server-env-mock":"^2.36.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.2-canary.2_1635261448837_0.47563651557679765","host":"s3://npm-registry-packages"}},"2.36.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.2","_id":"@apollosproject/data-connector-onesignal@2.36.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1e893b835353888fe2f85dd4b4eddb4b8440e4c6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.2.tgz","fileCount":9,"integrity":"sha512-JQeSJy0iUI2ahymPrbOEJcXvHF8TS5aEob/QTl3l//wg/5FMtpR+Lu/tRvvXx7czFSs3UDU5jYxhJr5ZZRyQnA==","signatures":[{"sig":"MEUCIGLoVkNVza3GlpOXbbeHBAGgueUiIoPyy1x/kj0kURNaAiEAiTfJuHyIuUC5SkfVUFVjGb1WoezcAaIL3nrXtlobdKc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47485},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"a35329246cfb0b03a5704d5cb0f743048e23cecc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.2","@apollosproject/apollo-server-env-mock":"^2.36.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.2_1635382156482_0.29439348301394297","host":"s3://npm-registry-packages"}},"2.36.3-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.3-canary.0","_id":"@apollosproject/data-connector-onesignal@2.36.3-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"74392fa5982c66d31e00ecddaf20e0da8afe6a63","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.3-canary.0.tgz","fileCount":9,"integrity":"sha512-A235wzVEXPH0PZ8AfOD/NsunWcEyTPxKk1A1UUhgSnZJNAJs26nrCPglUbs4E0DaEDhiDbAH+3+y2k+BdWO3KA==","signatures":[{"sig":"MEUCIQDJZF1xoYuUBgQk40P5fwM04cGXG4ZyNUnePyFGIFQawQIgMq/6XyUXLp7Z8OWxyitjdTQRzxC9SVZ04lD4auxDNgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47521},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"abc51a988e988053d8757a0808ca9a51d6d22724","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.3-canary.0+abc51a98"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.2","@apollosproject/apollo-server-env-mock":"^2.36.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.3-canary.0_1635514517083_0.5501366384034547","host":"s3://npm-registry-packages"}},"2.36.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.3","_id":"@apollosproject/data-connector-onesignal@2.36.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"13d2ada7fb066c6d0e0aefc6ed9e33c3347b6073","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.3.tgz","fileCount":9,"integrity":"sha512-iNCcIk7/kidEgGLHAFTcmWkh9gdKKniaJN0fw3H/ISOvIUutzgUQG3w3tSN6ejxU5Dqcs/12U+oaoGLj/liJ6g==","signatures":[{"sig":"MEYCIQCpMfW+sjXNkODiz8UEIJXgyl57FXV+7NwCuXyV115BYwIhANVZnq/lgrq+p/sO95wrmNWgJPasrEHCs0pka/5pSJ0S","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47672},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"a8e2c47c65cd1aec8ce859720fa29c1e31cf4d5f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.3","@apollosproject/apollo-server-env-mock":"^2.36.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.3_1635514594167_0.8399679640355806","host":"s3://npm-registry-packages"}},"2.36.4-canary.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.36.4-canary.0","_id":"@apollosproject/data-connector-onesignal@2.36.4-canary.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1e70a6bde1d1cef2cf5b4e3890c35ba16169ac53","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.36.4-canary.0.tgz","fileCount":9,"integrity":"sha512-mS5PCMYBXG3M8K0lEqXUQjIo3ERyswGKcSn3ySYNuOaa7e+cgM8A1RE2eLZqsZEVHIWbFODKJC6K76OLv/LRxQ==","signatures":[{"sig":"MEQCIA0ne8KOwTJ8CPQPcf9TGbScXMKnuAxgCM9/gWSW30+aAiA5Y4CtfzY2kk0xSQeqlp4s62ki5IyDH5ePQAP6McdK3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47708},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cb9d94f8c89a46eda023d6ec3fe6d48ba695a618","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.36.4-canary.0+cb9d94f8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.36.3","@apollosproject/apollo-server-env-mock":"^2.36.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.36.4-canary.0_1636149398301_0.9274439065116622","host":"s3://npm-registry-packages"}},"2.37.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.37.0","_id":"@apollosproject/data-connector-onesignal@2.37.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2358887cd9fc319537f994d352024155553b4663","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.37.0.tgz","fileCount":9,"integrity":"sha512-Kf1UU/6wQZRoHIkq1LMVhzPaI3/Ab5B8aGjHbmyStkN5BF1C14Hrmq54ZijrVTZfu5uWYUwC1eH23QabAWXozA==","signatures":[{"sig":"MEYCIQD8T8ZbMhMcMtN+2BTduAduUbjhoVnSx2dj4+zT2ygsFwIhAKYaquZnQoOzX8R/tdatqArNXi84GP77DFLXBkH4qm8h","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47858},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"19824a4935ded21c9623390e91ca308f2ce4c18a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.37.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.37.0","@apollosproject/apollo-server-env-mock":"^2.37.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.37.0_1636737640195_0.03425072268353646","host":"s3://npm-registry-packages"}},"2.38.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.38.0","_id":"@apollosproject/data-connector-onesignal@2.38.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0992c41783169fe84628b888d1e2b155f500d606","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.38.0.tgz","fileCount":9,"integrity":"sha512-MYA23qPJYdZDKATcbaIyRxuMVrsPoONMWdlJJ22U3Y11okulPerBaVI0mm0ui46tbo3S8c+8vLVqoMoEkRhIUA==","signatures":[{"sig":"MEUCIHVdzIo4gZ0i2sZdohfbmmO00n8AKwf4256hF12/5BmyAiEAjRYdCDyRsJ02atnw65L9C00a9WlIINlXPAMeauS8Dr4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48044,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhkpBoCRA9TVsSAnZWagAA/r8P/1r51kJB55zqg0+l8hMI\nkb9H6jZSk0sLnLKvU/S5vYZhBiNPAszibgQKmskVLqwdy+opwK0qzkQZdiDl\n9mgzqcj87cYj9Nda+TQEDZs9lnJAZStbgjkSyZiMXe6+qEeCCYeuE9EKDuTl\nj4xPA0mkV8S+5PQrJFr4nPly1avEvUtSyxCD3WCT9a7Pgd26fCHhDC9IHz1J\nDi4KSk6LgMiOusiiqsnDHE4VfAhu+0HMQPYTrc1e2PbADIvLW/zDo8CcMLRU\nGIqRvBSV9kleV2dr+ExupNlNSo9lJWUEivU4Y1EXvl/aML20Cyk4xVPlxz0z\n6/xurJXthMpp5B2dSoQNxRZDMmdg/6Y27CQ6MFfsMTRqJDeJzftH8fEjyTa7\neBkB1SEgjlvTWxbkZ0H+5gTirGlR7EIfw7dy/yp+Rw3ANagynCZyZ1/yxbcz\nfMjXhW9o6Oy6jnrEcU1QxymMwDjTYSvZhv06+nNcXGQZ3C9IEiznaz4Fh9SO\n6XSOK5vH9Q3vJEMpP5GuthrZpdCJ1cNkwAATqfHUfF1NFLKBTEefeOe3zyL1\n9SGQk2M/5Rufs/BwkVJNimdJ+ecuAKZ1nog2jSk3owiO5cpqH8GUXVh2+4D+\n1fhOZUl2Nr6wctgQfa0xp/qMww5kRqwoeCRPQ9pft+Ym0ip789ZZXVAAVrVU\nnySl\r\n=vk7A\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"e7821501be31b2501bafcc66f9910a43afb6f941","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.38.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.38.0","@apollosproject/apollo-server-env-mock":"^2.38.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.38.0_1636995176398_0.5286481220690902","host":"s3://npm-registry-packages"}},"2.38.1-canary.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.38.1-canary.4","_id":"@apollosproject/data-connector-onesignal@2.38.1-canary.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b12de76608c1d00cc280d5af757c78d9b1606aca","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.38.1-canary.4.tgz","fileCount":9,"integrity":"sha512-wjho3GxbDIENR+iE0qmt20Dqay6o23b8tcLUAqSqrur3pnx9z2omBLzVwLZ4+BpKDEY1oMAQeUu1MmpqBxYXJA==","signatures":[{"sig":"MEYCIQDLEVeoWQJzvOy+v/ws1PcSJxqcRESVGv0I7IgfW37u/AIhALXjSpRdfqkwqRSU+zIqicuBKb1nkHNhFiRAvKfc55jH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlB4hCRA9TVsSAnZWagAAhD8QAIELNA3mt7kEnS0jBxbe\nFNjD8JOaLkaFFVHaNg3qsenh7l154BmlF7wbpFtrzn6hdRKpp8o3RJ+7XqMt\nTn4UTLJFa0ia0aBaqzdZKG+Lce5va3lop+DuPdxxkxoL7wZN/TSPUiolJhXn\neCs+AJlA2Rlc1b3iPomPVfluEP+/WnAuW58oi23lVpSH5YzKGcmKZmzvhtSj\nOa+DZRX27SUeurFBzGW/MYQ/YErTOu6rydugmo6rk7oS96YE9MJZq0jH53it\nc/X5Po++muQaDY1acymJanUwAjxSXNyXGrbNPfctZhCiGzsGKVtpwvayrbxj\naa0lVAaKTxdsN6V3XO2UEVP5/M5GmdShJ7BWynLDYH3Qs6I21YmJl+AfxrPc\ncY+AbkYb24VvGEkc61yeRFWQhxRYp9VJ0ksuHKtd4m7XEiXl5ZqPGyiF+eSa\nFv8XcaNXDnWAeSMbxFw4CmUnJA5yTBAso7ZP6QxRBnmNaVs1GZCvrcWNBGMP\ngGSV6P44k+6RGcRtXlmSwbxba5rqCJTmEeRPG58KHrg0uC1eAffGh455JzHd\n5KUtVL7x0eQBdaU2y48ehe2q1VnWq+7ajVrXOz1Ew7yP8K6BfL6247Zu1Reb\nt5wF46ivjG8rEiKWrNRm+RDYPk7oKtLAyLSD6zkmVUs0RqKhwlSfPsSsNXG6\nGsZ+\r\n=/bIY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3c6a875d745105af027901623bed2e483e565da1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.38.1-canary.4+3c6a875d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.38.0","@apollosproject/apollo-server-env-mock":"^2.38.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.38.1-canary.4_1637096993280_0.6708998566389752","host":"s3://npm-registry-packages"}},"2.38.1-canary.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.38.1-canary.5","_id":"@apollosproject/data-connector-onesignal@2.38.1-canary.5","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4714a9331343c86226dce2559a8627a766a6eb1b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.38.1-canary.5.tgz","fileCount":9,"integrity":"sha512-uywKSj5m5WwpMDWpnuEXGaQN8sxXqAc+ClUYOZLvZekXZPtbv35vNgfP3+9YK4AbQjFQ18z0GKI9M5hpWbwdVQ==","signatures":[{"sig":"MEQCIFOw+Kom16f0OUIonJjTSoebOeGLM79wt38FQbxJwR4RAiAX5IQKjr2ukMIDZ1uSbFIJti6SLOHjh7RgUHNofPgC8g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhlF6cCRA9TVsSAnZWagAAnzEP/Rfu6bWX1djgmChdsGu7\nJD+X1GeI9FYHLWtrK4QacVGrzVKQVKoOELP11a3JTnPPoH3ks1zIVLqw5vg1\n6Ljf5UTjJ3rarSiEULOi9ENwx62QTddq/HY4PqWNbW1RSTrULgPLQIU2fk2F\n1NL+nt52WSBt/7TAdcZAsbF5lBod1ZUAeTaP4WyZCbmNN5ZY6DTwngK+jflV\n4/1f7r69l7VTD1qN4V5V41mLC8h74t1cU0pFZ4988+jiR+5aCPrsdhzvQNY0\nNs+227XrkKGa2/NC6umE5EjxZswSH4tYjFnBHvyPrPRrQ4wsMNhEvPjqc8DV\nAeGhzW1fdgkjT9S/yLJbsPh1Tcqs8fS6AoGNOs+6eI9SPWqx1dqrNvUpdB3H\n0htyoVeN+UFzoPh+LGQFPk3M6NyoasszRKS6ZH+dLeC5gB6OvUILC7/PkaMH\nqUKoNBnPF3ho+WkkFmT6+tw0+LM6LhiljsovfEizN5A3RorIULCi1qmk9wuR\n365dzHrip1VBDBXTNl2b14U0BPCRXTaNxGQObp/62JcD0qCFT0boDw5+5GeK\n7U7vFrlj4aqf4C0qqntt89y4BysPr4goXxpHaciiVK5ajRfSGtDdCD2tLPRW\nNymTo8QFGSDy92NSxqeUZxUuAgjSz7wH6ZvUA7FiPA6UO76+ZRooMsp5DLjP\nRfIT\r\n=rknG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"61dc1aed4eb986a76b4e1ab5282ab9953f6ec2ed","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.38.1-canary.5+61dc1aed"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.38.0","@apollosproject/apollo-server-env-mock":"^2.38.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.38.1-canary.5_1637113499906_0.5942941552127203","host":"s3://npm-registry-packages"}},"2.39.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.39.0","_id":"@apollosproject/data-connector-onesignal@2.39.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1654f4206c28da5ee09e06f59e8f633acadc9e9c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.39.0.tgz","fileCount":9,"integrity":"sha512-e/ftG+O5buMBRFnDnoIM974OAkLoL8cKh37N4Zg/NAGb/8LV8+fOEyRZxhd1dho0emu9q1kOXxpwWmTaJ7u/+g==","signatures":[{"sig":"MEQCIDs08rjoIag/mhcKtDxVRqZn9tR0qCTcA6E9YA6t990bAiBg5CocvCo6y5b5cPU3tFdc2QYqRE34gg6BTz5zIplJDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhm/J4CRA9TVsSAnZWagAALyoP/AsHaTVj7/ND+ILBNz+7\nNX+N1B/63z4Xy5EDfScz0gU03QVPaVRwHr7cSSBJt2do0oUUuaE5mrPMM4nO\n7WBgMaKgUJqoKNHQyy7CCQQ3R2sqYj3FNvtMay82m+GM2O7BMB0MRbIVBCG1\nU8mBROdErFcabXxs9/oxVJTJHh8zFdP97JB0YYgp5YHkQbr5HO3SVy2jm82C\nO9tjwZW+54HAFxMsLDThZEQJNfu+2833SJ/H6FRm/RgeFOUL/oVxzVHFGioZ\neVJpC1BIcbiDd+knMmkRc+Xv4kNTKA9THY3gi/sGFAAwA2H9utNAaVSck/R3\nHEcSbsCIBrhtVD7R43PhSa9FdsNnW9v5LKt+JBdhmOaoDQxaobpWyOdKWD8g\nvTmEyaFCUULHRl6x1w7OAu5jcIUuS4lZm9QQD8510cEZoRkZX+70asbdE9fS\ntUuCyCE3TbTglq+/z/SdemBQ7bEbsdjb7h4YRHpgcG0HJhU2SA8R9eXPG84t\nlFMmn4vQb7eyEMVR9fHibGOWeMn5NeYcEMdAgwYdzLFbV1WociI4oWj/XQoQ\n3bOgUn/h9zFYK1Rf52hyh1AazvuqpAEt1ZrjR2v41xfTgx/T/pitIynu/vnG\nX9ryWsY5sT78mlTHHpEdYB9ZYiay4Wrb9isvjZusRpI/3eroTYaIt8pFDGbW\n9uQb\r\n=MW1t\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"7ddc8796e4e8b0161ef7eb44762021b57d01c592","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.39.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.39.0","@apollosproject/apollo-server-env-mock":"^2.39.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.39.0_1637610104223_0.4561912622395228","host":"s3://npm-registry-packages"}},"2.39.1-canary.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.39.1-canary.1","_id":"@apollosproject/data-connector-onesignal@2.39.1-canary.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"352b64e685ff5bbfb8f9f98d7f435228bbec5ad1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.39.1-canary.1.tgz","fileCount":9,"integrity":"sha512-MUnQ6g+C66PBuUWwFyxb4InMq+BpJLCtHQEBWY+kKWK4R0cnBkinNP4+vJR25Cvm73c3JElUle+xFAuwkuOpjA==","signatures":[{"sig":"MEUCIQCHZuNC2QlRjZSQ9nc68f6u6ebCzrfmwNn5koX6CJpXKgIgLJGby0uCKNSg+/BtsmOO/LaQ4+xLLOFxC13b9uN9Y6U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48266,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpUhRCRA9TVsSAnZWagAApF0P/3RYlUb0EE5xOJXntExL\ne4Kq2r3xdNyisqHktjspz6Irf2TZKlVvbdgSftoAIa+VVs5y0uB+8LOV/c0o\np3BoNaHusD/XHEoYt4YicnR3ZtWdJ6fn4Akh1mfrF/x8hu9grnF/C2B8t0cm\ntk8v0sEIpWKF91KsvZLJ+zIzezqd2m1fpuPLyAKN4KfwODD7QahIGrQNFMNi\nSQOhHn0SFtmG5yEF8SR6VvABoJkBOVm+D7c87l0SoyUY3HTOyYyQjeps8sXH\nIPerHlmne0SPnrTJnBy8Y7miK7k5IIb/Vh23UaFHMwMU/jh3kXuEjVTqLmLE\nTK6aiXUw/9BFNF5YdlC2hF74YAT2r2JV8dr5D42urcTsNF66bB+8dttvq/no\nLQ2OsSZtka0GGPnXwatWpDlLLvMgis9knjoAT+ErqSwUkLIud4O2NdJ38Q+K\nZxjVs/uyz65kXTI69K3PAef7eFPUQnn6ALxkx6HlYBjDOU58LYpRTOhLc5Ep\nJHAvOYeoz8MhvjEheOIgRZpAIRxKcmIFV71dDGau+nJnroZK18mA29Lvujad\nEZ7VWs6FBEEHMD1fuFS7472aEoTtG9c4qr3U4yZC3RITpA0Tf2cG8VC4VNqK\nuMbbvtIM2u9xkHjFp8b+D3nVp25BmxI+scAZYSClXAjep5/Fsr9wM+KNvzx7\npbnX\r\n=sZLB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d36d29a92b717eb4c6502604be9c44f60cbbbda6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.39.1-canary.1+d36d29a9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.39.0","@apollosproject/apollo-server-env-mock":"^2.39.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.39.1-canary.1_1638221905307_0.39711946602765735","host":"s3://npm-registry-packages"}},"2.40.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.40.0","_id":"@apollosproject/data-connector-onesignal@2.40.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2638f2eb3c8f18b02cf5e18f0c804ff3c8a608f1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.40.0.tgz","fileCount":9,"integrity":"sha512-Qom3ZrZWTkOjYXsp0e103FkqRYnTpkcReFZt1d72NuqCqzLUiVPRvaQigNMXlF1oqnUTxa4Kp05NDWEAehf6Mw==","signatures":[{"sig":"MEUCIFklK9F4uF5sPMp1HyX4e9XUo1L4YYDSPgmAD98J0pt1AiEA0cFD07YErZGO+hUOyn4WO4V6ffwJPbURgwuD1gFP3x8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48416,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhrr8sCRA9TVsSAnZWagAArWEP/iSENu4+Hvm+3Ft1bvyo\nGsWfl4qx/2l2Qo8npy1/ZbsTM9wAoKzCa4OMw6WDmFpvWhqBOF+gid3hZMla\n9I8U0HvVaPKWOwu7AqiMz65EAl8tGXMpmPVmZyrmkdPa9e3zCrBtHz2DVrq9\nR4G/CKgO5A2W+8k1NGyOa4FSeL5NFOcUHzlCt9T/QMSA6jmVE8SkG/YO/26s\ndqBJGY81rls9s+R+efMjXWyl755Jax2dcEVL7EytU8Ki2nVIlfLfttOQHvWj\nlrQURaTytR9dJYKdNNi/DE8fNUZ7sYL8n6R2Ktsvmlov444OygRlGNe6vzwe\nWnuFMHLVe4doDLfEk4H1ULRU9D5SCR9UYISetFetKb1sUm9wv4lPgiV4gZuA\n3BcvK0/XyTkxIEHMSudXf0UUs42f8nldUOnsipXVW3RORglVw3kc6mCy9rkW\nPDTVffPDFIdbLF4KtdUuLm/jJQ/gQ4aNgd+ycHXo0jawmrGyJyEms0fkdGtE\nSUxMhPHx/wGK4UMV1Koz1XNN4Q8a2jKS4UYMiOdpBzvwum25CGPojhSkqth9\nM3Ld9rJVEFTEXW+mutHqY2q6BgNpAfDjF5sO7B5hOctSa+eGlpOEZAa3wcFD\nn7TLu9BS3B4B9CicuBPKIqMMNZMNI5X9BYNhhFZFc/sVe4tn2gqeYwg3pDYy\nQ6p5\r\n=Suz7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"68762ec2d0da91490b88b0ab8d11a6d97ef7f81c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.40.0","@apollosproject/apollo-server-env-mock":"^2.40.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.40.0_1638842156032_0.1298256240518465","host":"s3://npm-registry-packages"}},"2.41.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.0","_id":"@apollosproject/data-connector-onesignal@2.41.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d8056e845086b7a0bad374e7a7356eaffa69d31c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.0.tgz","fileCount":9,"integrity":"sha512-9kQOXsMQPuPjXnLe+ksNoUg23e7MY9Cwq9dpf3KR3VCD9sf3E0iwAdkQaNvDOyqnj7WLimSCWVsuhySZtpHnKg==","signatures":[{"sig":"MEUCICJvS1MlhMUja1RgqgFTPkl0WL2cZHxfu7EcD+MsHfLlAiEAi1f4lu/vKXm3JBXW2tS03JN7jCPY5LyVlxk8S8lME8w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhs4htCRA9TVsSAnZWagAA/YQQAKFy4klq4Lkiy+g7EY5l\n/n7E+ujoMCmIburq2HryJv1usXtL9SmWg13bEbMlRRh4Elhx6GstsmWcWtk3\nbOW9/cDdH7yGhHMp8ihnStcVpSSAhqinqJxoi769yu3izeDxXavxaadDPzhs\nrH1KOBj5WdmwuIrbCBwq12NDDhE+pAgP+p+wy2cRWfxn8Q2tRr6mfAbevEdD\nEXEoETEA5neNBm1w9AMeWmD+VnDpf1Ir+XqQJO4Q0Rujjgfgi4P8ju27jkjW\nZIu359FcY5enU/egKvai5S6LIIjgasmGKh+icHzgTZs36gepx2LyiLh6C1r0\nFI5s22xEulQgKqksY2S+aCAASS5XkRywTBwEOUtJmcmjMTYuVTQuizp/pqmv\nP0CzLasU3VtaYmIKTHE9H7k9Uw+cH8qWl7JOZACLIAVnOEVxy/Ax8sWgiSj3\nrT91C8kXF8166CY1+Z/tlY0tIkwxTMhP7yScvVC1gy8HO/KlTT1QUZCSX7kL\nrYfm5ADRx8n77wxnAvP/mhmoCUtBs+s72NxesYvJnGcsvquWPTTmYRCeJOz+\ncvNqfHeaL4/BOCzTz9VpeYn0YMo9y3ICV58JLz9H1NBct21W1b8gOfFKC1Yq\nDc6nU2H84mmxBPlzOAWABQWi4kEZoz9DsvRQDGGWK3M9XB4vOijBgZY6ykKg\n+jkE\r\n=oD1w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"9392677975a0aaa8f8af6d391a52ed0198c892af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.1","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.0_1639155820955_0.9457877091715792","host":"s3://npm-registry-packages"}},"2.41.1-canary.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.3","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"873d853f9f12d1374f1510f69cf76055de4bf532","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.3.tgz","fileCount":9,"integrity":"sha512-5p9pPH/Sxih13Tba3nnUXtzznfkPD7HkA8aJt/Bt5LCNxLCTGHs+q84LM/1T4C9q55J4Jrkc2P6awGKYbQ/LiA==","signatures":[{"sig":"MEYCIQDd+w0FoY9pVyIH5XptwVG4+LAJPD8JfoRW7LV5mqWjjQIhAO9a4tZCyArZHkV4W0S4tYn0tyougHtILDndK0+MhYwU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwLCZCRA9TVsSAnZWagAATQQP/2kgyMy2OuTGgnQ7iKig\nn7mcCvayDgiop1v+7uajXPZxacH4TW8+tpIbhsGPyxxy5mvCc2IW4MXuiZC2\ngkcETVqW9EV5aMBbCCtc0D7+Lrx3HaLJJWgrZpMVn3Ljya6cDpaHLFMlmCdI\nQDIfOm/8B25zEZglwpziDduW8nNVc/g0e0v/8zAf66nFtPlsLYDbg7jIInQu\nf4Ga5GhQsyhT9INFjumixYuvA/bputtFpgwXA5pZp/zLh+S3hI7GQy3/NllJ\n9n1bZT+MWUNpZNGbLYHAgrAV0WnUKGxU5bQ4M0D6cuF1rlMhBKzYhKCqjMd/\nu/0KcdkJKYFly0XCVlb+lS1Gnh/m4J3+ELAp2d7/KAXWhpEMI/4O13MbAd7s\nox9bezqG/RIDOl3W2C/K2nWQX1On8KhMnCtj7h5ewqEq5TNGSq4ifrqWa/9t\nDYqU3wBa06qDg7mApIUkX87aW83jVf5wgqVUgZy6Q8gM+g8erjkex8c8rsrH\nVc3B16HXWe2w7MEMl5xtnnaB2kPtj2bb4EE0nGqMRYX8qXRlj3BmvsNSjh6M\nYZIp99MUsxUXjKYlgUEF5m0iKAY07pRl+KxuSen/yZCbejcBF9123ksdlD+8\nhfgZCxauVNcrV+O8hwNJdRUo+QaY/CGRxMA+F0yv+MptjMWubCncA0yweAgV\nIlTT\r\n=rYwW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f225756d4359df00abac5e724708199e9caf7540","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.1-canary.3+f225756d"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.3_1640018072899_0.0424428931436287","host":"s3://npm-registry-packages"}},"2.41.1-canary.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.5","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.5","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6b613ccd39544368fd9b5637fde86668ff2f59f1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.5.tgz","fileCount":9,"integrity":"sha512-LNqhYVKasVgu/1gmrhyLGqNXG2ZFxQFkwKfESzVvDc+m7UJZCrjUNoVrTlZomDsmVOF7/Uo8odSCSe1qZPKSrw==","signatures":[{"sig":"MEYCIQDuX3CxhSox1YUv/lJxcYdKI6HPtb9jI4qmBI9M++YFIAIhAPL61FMRRyWyKlvvD3LpDbJYnAQHIoTGmRmRO9Yl4Auj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw3mVCRA9TVsSAnZWagAAtmkQAI9IPJhkr8RGt5REPtB8\nn91TxcPZOTcTuTpj/xPzEbnYY9JQ+lTSraecVtMvrnkGzKFqxLbpkUhLKyzD\nnugzNcdYL2wqINXoy1Dp9Gz7z0e6WO3sDS6YnSZV7b2UKlEbl9qLlgyYEoYO\n5poyhmM6mf/mp32hs/CwIn8gQekOevq3DDgU9z6qR3r7Z5Oz7Krzklxv27MQ\n3GX9WmgCH24KDSngOyqICHydYFJ7+eLjx5l0BYmFVX6RfIZVAkDPxIMLfRhM\n46v5iYvVXa+IOtVpm6oco88FoOmX1JGy4Vm4pQvYoF86eIApek2kHJlnmKiE\nhMdZXcdeuxw2Y+2Gr9hibrC9JpMTSUVT+bHDIk6BuG1rW2tj8JmAAwamsPy8\nkZnTAH3tXUONH5oT7QumeftYpVGk0Q9yWeyWgOUQiSieX6IPGN8ONFuJesZZ\nzv/fIB2kjEg2q8P1gPtMLHyft3RqZ3qs6i4dVgzx1Hmb55xMhC/ctjgmtG1m\nzjdtYTSVJ5QHfHiFxt5vD8BMklcMSmyDymrDxggnqjBCCCk2UsWCTvqxEuYC\nTXyNCPw5mOMb02DdCvOYZ+7dNi/BFL6+dGaKgTGVZm/MX1X0GNLI3QS6OoVa\nwV48anbowq4LqMQO/M7fjKXb0l3a0/TemiICHHcWnNwcPVJX6Lv4fZpHsA8c\nS+RZ\r\n=vXZQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e090c9261b3cfc4430f8068836b4648812acef91","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.1-canary.5+e090c926"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.5_1640200597530_0.4364220270867665","host":"s3://npm-registry-packages"}},"2.41.1-canary.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.8","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"fb8c16ea5870c6302e405bc33128400928163e30","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.8.tgz","fileCount":9,"integrity":"sha512-RajbEhBzx8ZOYCrznpvkbIZ+ok5YHvob5POrb8qmqRbvENIKNB1h3sh9BilVgdbwlfSHVBQM+vjyIHCdrMqkXA==","signatures":[{"sig":"MEUCIQDQA02NxZv3DMOP7ZR0MF7/qqY9OT16Vk9v9+j7E0W3aAIgEV5TM48oxRvgmKCG4qIsPVtEafjcxc7YIV8zwinNh7A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh00FICRA9TVsSAnZWagAABBEQAJJPEs/zBb4mPmXBTq9Z\n+ClpqsXJCk7D94CC8PxyX/WJ8tDGQtPIJsscbueMWMwbEv9HTox40GKV8Hcw\naVcJYgCjVgxIN7iRIOGAt1PRqjxHueJ1BpuBGUzSYTkyDnZsoBDdrgN26g8k\ncPEimDtyYwIBIl2q2LJfrD1o76PrABtZcBHEycN4KRNtiw5qCE95Zayf92ea\n+cQIHp/w673Q0RvqBBLN3yS+kcYwXNpUseoO3yZZgm7LUL2z6ugfeiBAvqX5\ndJI5xveB2KR++b+1Cw5JA1VCTML2M/9kgjBq3aFzrE4K05b2KxKXyrRlYI74\nYNv6fShK36pbul3iHR/NICaoa1d+hh8hMhy9v1zHmxh4hiIBGtXVP8YCh1iK\nhu9gWj4pHR6c69Ckq/EF1JGdMddCoWnaMgLeGdWQRYmDh9gYXUP7AsGhLLd5\nDWNAzs0JvowNOUVPO1ym2pL5UBkZRkWDBlJThor8iX0Y2ItubgYX8DBXHQ8f\n/G7rZzEiZ10lT172C+4+8Tkg+ZWZRe/grbyvvfGWnqgsy23gJ0OoyRPfwsAE\n6QNQSlRUpqHl5kzjxQitBA/Mi6K4enM+sH3W8UAwQwpVxDlDTAQNF7dM701z\nLDvcHTHjmfoyU0PR8snverNu4An44JMelC3a+KOmUgRUu1F/gdFCdMBt08vw\noJnl\r\n=+Y5d\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c0260a3f306948787d311d0e67c0fce12a3f30a1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.1-canary.8+c0260a3f"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.8_1641234760661_0.8807763943371889","host":"s3://npm-registry-packages"}},"2.41.1-canary.9":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.9","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.9","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"23a8dc62810bbe76c7e4a111cca5b85e58ca5899","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.9.tgz","fileCount":9,"integrity":"sha512-6pZyaRf9Mgu3NxJ00uyBlbnwYgzz0V7y56U/DcZ5+nHaBm/yySQnZe4mB6juobWzLtiPluWl9uffE7BrrXKYTw==","signatures":[{"sig":"MEYCIQCq9JiWF+x/Ga2NvxeI90RxpHCAoU0Hv9wgBa62IDWwDwIhAJ0YgNiLlegO6uxq8OCkUx69G67DDZWlXFsaj3fvdcEf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh01cfCRA9TVsSAnZWagAAnhUP/1Lb0APcQY3F01R7BtN4\nsI58gOugnC4+m6VKr/3P09sNHwyLv1rSE0z2HPHDXHYH9n/ZWHPzRZ6YUFLA\nqpr370WoXaj+WSuurKRlIvKPtOCsem/RJdVSUkz94rqjQhcT32gqozjoJ+uB\nxCEfphyaEgfnMyW+bPen2aQAklmqdW/0PHYr2iQhQsgzxKGt3LvBawQjP809\n3DaOnMpJHQBxv1IxI0fTeOmx8gUeCFoumqYeR1RhrTaPj5MWFfdMz7oMZQo5\nSH8yKtlhHPAMuIgTE5kT8b3OTTNQkFc3d6iF2LwQYlARdFLQEuQuz2Sj3SIn\nuLA432WaOFLxKUUFNWU6yq5Nd14RKEq6qGSiN7Dj69dnfuF8ZF853UZaVQ58\nc8G7Fljil971HOnV1Fy1AQCRwsX1beXcai/tIFMlxLRjpks7WKPrxsoCdk4O\npNN+DjwBhB4GnwO4xzWGKTdztxdgUf8tMQckWOq8/9gy2EGYHExYgQSUTyjt\nYA17az8kEbtIeoJVl6fJvVr3r+Mg6KNjwBZX10R/rGQreLO4KRbjpg7lLVxL\nj1/qfNSD3q6EihuSz4mlYlH5WLNOtkwdtAPFbU+yi117yQqgFzZIenlLLXT6\nmlDCOzswaWpq/uRMsIyFjZxA7g8JUgpXwTbnlo5uNHJLXB4Qtorp/ycloi+V\n+5rD\r\n=QEUc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2539cf76a241351dc8a87de8b643c5cb3649ad6d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.1-canary.9+2539cf76"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.9_1641240351073_0.6035989410464466","host":"s3://npm-registry-packages"}},"2.41.1-canary.10":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.10","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.10","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1a86ea08a8ef59a483e645af50229f05576d20ac","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.10.tgz","fileCount":9,"integrity":"sha512-nh3R4Nm1NpWenPopCkGf8ymNXKM4/ee09+pUgfTvjDIQMluvb0yYbZATm9bsWXBGLgR05JQ7xleBpzKqJOMyOw==","signatures":[{"sig":"MEYCIQDr5NhCdturUngw4ysUz76pOsQKeIe0vvqOagOFCvEjLAIhAIoGnCg40o0SLSl69vCLcFoJbfOqC4PWmxvsa+OOeIZW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh02orCRA9TVsSAnZWagAAakYQAJOxvs7zK5My7BHVkIlM\nh8xMy17JVujJ/bt9B+51RsPU6rrwjs6IrkQfleT5pqz5JYTIVfXDzuSc/XUe\nZXngTWu1tcUiFTOxBxWeP4y2w2OyNPTmhg3E3ZwSM5TYKvL2n2V36SKCdSAc\n408co1YwTBG7FY735rHq36tebw43FNHOYboy31WeRU3yQADSeR9uK6mt81K7\nZEvMO7k4VcmaI8NvoSVQ6TELGt++T7FO7i0su1CXt7teXqRbU/HgzlqL4gKZ\n4Gy70PxAcclvSMQIZaUiCQtC9kb4wmc+9CxqEikQCGLfFsp9X7oUloiK+8W5\nsKx306OEADMkb12M6nohJKXQiPu+sGf/Pl0Sq02P9IMRlQaLPnFRXoKROZqm\nMOkDbOsEfdm2Y9zk1W9ByFsev7ipySODNu8dt9uCySbuVekU7NwFqLEzu8W/\nT0Zue3Z58dXd1apwjEv814BmzJfvD40bPTfLnw9yOcWXSgbcM/M2YG4FiWdj\n8l0rYFHR2iqzXIG1IbG4nYB1ikRmvjYqrKDypaSPqcWRYPN5nGnVXYz9SuIy\nKmWs3y4StDz3S6NbWBpxzPQcZHOl100CV8HoFSxPSFkmgZH4BFqiMcopLuHp\no7+uM2DOWiKYOIBVmR6ob47Pok+2MF6FAtzfPeXKNuqTbgQHoEWptVZ14czP\nYW6Z\r\n=umnC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"73228c81de825a9c93af9860a815e762005087cd","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.1-canary.10+73228c81"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.10_1641245227445_0.80564444736352","host":"s3://npm-registry-packages"}},"2.41.1-canary.11":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.11","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.11","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"23425f9edfa93073e30d33cded3a5a971f99336d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.11.tgz","fileCount":9,"integrity":"sha512-MlY+yvR4ZQRCHn5emzleAmviBM5FuXqlyNc7Vk4VxRgOPZeaDOtH2KDUV2JE8bC7B9Oqpg4281SICVop99Nmew==","signatures":[{"sig":"MEYCIQDkfMLuVXKU0F1zJH83+L9M/I0aO7yg3RIquMUyG51yXwIhAN9vlkJ1JWfPb3IgWsptjktxtW+jjkJHTUG9iJygVkLV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48640,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh03IpCRA9TVsSAnZWagAASmIP/3smh3QN/fnWGbORzihl\nPncZn8meVwWb2wPwqjufsLHpVJ35fxHDL+bHUFVOzrvnwMZsa1yGtpCd8u6/\n6o3s9Cia463eoeI/1ti5q0eWK45Z2jhR0pOSAQh60lhCy0AlNSyFs8SFrV+L\nz+Xmw981qKPFYu98BV1jJGuOu0r/l+/rltCYApY6JnJEexZPbR4TP7/NXuMg\nTCUKAXZWHFmP+owQDUx1IOtgni2QuQaogKerrle2T+a44jQtZm9vLihKxIGP\n6U2N825yZXfSu7napfWLjiInzNoCmilwLqdAT3QMrXqku6ttXmG4y8o1lO+N\nmiNsFoofLtuY7C4XeZm2JaalsoEPaUKIFkfHeh8PJAY7+Mz1ogEuUuBw1e29\n4OaHNI/RjnY++QFNooMBI+AQ16lu1uvPfe2QciyZNHU8k4VNMEGUxuzwpmrb\nbJp+qAzQgbkgRJvXjlBuI1Fm/koztE8jv6ns5mA2Ctq9w1e9torL/qbivxlo\n733owUrD8AWF6esSI1cV1IHvdWHwC3cxH/JylLcEI5RbR/oKpPHyiIcz3q82\nZ2Byttn8UmqfI0OX04PpHqZy/poZ6g6u3UUVoaOrw6dVmbL0W42FHIF09+gj\nYS6YKYTU6HGcuCUWGdFZYbTqXbQOmDm2/6O2LyL+6MyoUz2XGRKTjxlDfDf4\nXLms\r\n=dJA7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cf122326da59f017cb4055571b1a2fc333bc8f60","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4","@apollosproject/server-core":"^2.41.1-canary.11+cf122326"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.11_1641247272853_0.862519950779244","host":"s3://npm-registry-packages"}},"2.41.1-canary.14":{"name":"@apollosproject/data-connector-onesignal","version":"2.41.1-canary.14","_id":"@apollosproject/data-connector-onesignal@2.41.1-canary.14","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"86dda7b38bf2baeddeb5bce17f7ac67aa66c4a70","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.41.1-canary.14.tgz","fileCount":9,"integrity":"sha512-RpXILmexVZpQw9BZXoS7oONKuJ/1r3JR7t8t2EzRBhttKfAmzxJvL/VzLoMijfqiTa0dA8iCZ0DNO+P6x53FOA==","signatures":[{"sig":"MEUCIDlSpmYKBGstU4/LP+MPXLcTEHL0RtuhoDmQaQpA5k+mAiEAzhEZliPFVKt0zW6CkPin4wwYliOA+V9yiNMF9Kc9lTU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48615,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1yYUCRA9TVsSAnZWagAAOEAP/ihV9AmBMmHCDDYwxYuc\nyEjiD8Y/m7Xn3MArsvGPG6A9Xr0LOvc2ixdqi7fNejKJwsXYatPvrf5HbwIa\nK7tyd/tXnaePQD3Gko1EREB4TxKZHUgxfOpx2P7LcYyx1zOuBKpBJ2rvwLoT\nBCdeP5I4FQOGqiB5gk5wR/hpoN6jqueAsHaONaWYuIZQz60+kG2YuLpDNsgq\nkWN6MuuWMJWv7pyhSgfS8tgfC0RvTLi1hRK6G4GJKykhzQZr48tf03FO75Py\nYdPe5kQi4otFFu/cQ2VVdQl8Z+RaCrnAuELjjZY12m52Y5p1dA9YhyruObvi\nHYMeFo+EzFE6gZmNiSBq4dBMjSxov56j7ysYht7Fva5dkEfJzqGnvTpH8n9V\nJK4P3iHRVdVVBMDjQz0kN8k1GuZBPTBBOJm6z5GsJJRUQNMllEvcbIQxeocQ\nd7N6kLF9b0TiBaOU96MOnIynEjzVBt77hqv7Q66ZMTAtY35DE0pMhVl92BO4\nKO8CgGLZDU8MybGcujIFGE2egCrRuR7oPb9+iyCgLYXvSnxigZ8MLnhNpE9t\n+7xH+X9Hu8V4y9bdsj7hpW0S7SRpvT082zAUG+wk4iCXPkyt1s+XtLj8zZz9\ndXuBXH6d03W4zpbIVFK0ciozphQzrEjV4rPCTEs+oANEBEcuGmWmSZfrpvrG\nJSoz\r\n=OROq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"4d107f0e072cf29b7d2c7a78e4f40fb97713ccce","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.41.0","@apollosproject/apollo-server-env-mock":"^2.41.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.41.1-canary.14_1641489940375_0.30173551511956287","host":"s3://npm-registry-packages"}},"2.42.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.42.0","_id":"@apollosproject/data-connector-onesignal@2.42.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"874d54de52d3315ce7d8441bfecd2c072d2ceb81","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.42.0.tgz","fileCount":9,"integrity":"sha512-psjo3LLOUirbU2IpAYCh+QSZ2A5Gr8jrnWPabw9KVIHhAmCe6DIH0/YI0r02GIthJd50FggtIAAcfewrDj/vBQ==","signatures":[{"sig":"MEUCIC8GhBV7m4RLHxo4PXp12IOkrmxV01SWXu+Uh/IWd280AiEArSiNJdUAbql/ZSOEhO5P7yBNfQ3iaqdLzWKZlMgCVQ0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh3bEmCRA9TVsSAnZWagAAWR0P/jhkDjKfOTIB8ILzvJMb\ngqrzmVew28oMkqT/TMnix+a1+g38+UbZFTqtvdyvCauTo+8QYL6oOyd577pg\nWiAxDMyrqlCA/C5Mpk2EtFLZwvJRRSAyypjXMZcokce6h3opFlA8C+hGpId9\nf9lSCEurq9yofopN5XvsfbRabKVV2b3vTx3n2xR07D5WUO/7pFeNBgeR2OTc\n5UIclJpIMY4c3lCmxBYzwBZRFJgO3jQ9VVDrMIvX385uy+bpJdEZIYg8kqSg\nZuoN5X327RPEjuFKNSgu8EUZ9UkQGZqL48wVVGYabnPQ7k7uzj+jpVa/2ywU\nl4JQ7e8xxXtUKj4J/tUglxRbqD+gEgMWUcsSgB8ssOd5HfdaVfEnVkng2Mz1\nSs6xQhH/e6JGc5zttA0Sce2bvzeBgwfFTH3tbWVFD+dspYdY8zI7ISmRf0a/\nmRJW65pkI7tp09+pylikFfDd81km0TeHoyYjkpgYgVvMF+eehk2a+oUs3LHn\n6ajyx4FWJtxPsz+ENNHskMm9quZrJyjoSxLkoL3TKsKcAijTLInCRfNPhJnf\n3HOyjYfZUR8A21S72PIgG7q8/ajVUlU8gRcUVneNbEPV51ndyimQJPFcBSe+\nG475YF7UoNP78EdhBvL7OkoX1fRXUX4IG7x+v+tipdxKDcXPWVohfD3X+2at\nJKvH\r\n=We3f\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"f5af5e7e8ac4a517ca6be7ca6793a82433cbcbf1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.2","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.42.0","@apollosproject/apollo-server-env-mock":"^2.42.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.42.0_1641918758757_0.7958412867528477","host":"s3://npm-registry-packages"}},"2.43.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.43.0","_id":"@apollosproject/data-connector-onesignal@2.43.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"055df34502cec145ddea15575960a47a28ea8d95","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.43.0.tgz","fileCount":9,"integrity":"sha512-8kGs31KguYXQdnME/cCy4nZjWwKnjjKdOny9YKnXvoEuXvn34gai//z/4P1NBLqnFauqZd7JhGOvfq0Z2i+PVA==","signatures":[{"sig":"MEUCICsMdqQ0II49lKJnQPYbvsg16JWxDXuZWCnFZInuRcz1AiEAtBlt8XADqRaRsMR9qYldMFFTAlncCmFY/FWfDlzLVEs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh8yVyCRA9TVsSAnZWagAAZD0P/jvK7jRNnu0cvtKadHb3\n8Rhf1YM4FTIVWdf27qNuT/lILlhUqMBSzHWzWMXPnvGGX02mqp9q0EtHGjiS\nPr2puSJBzNIdDYh9QMrpimY9o5MBNdWY+UjDJ3BJ1zajAjduSX3uDS32iRss\nUHNLuu/v8UDBxDAWSjnJ+egezOzuo8spXjMDC+uhPRZTMFDGICcS7w1UVDzh\nXdm9QnwkhZPXvXTrJSNj8IHcKuO0TnbSY/bpY6htpteDVD0DxhDFNsCRfGcg\nvoU7lTF36rXNKj4zVvNZ05TvBY3HcNMjYo8DAo6frr6phXdIRn6FuwtKBnm5\n3KoM78GFBj+JYbIzQ3IgQIe3xH5s10aJifIuIFH8wei891lRggSNCwew9e+W\n2p3EzCSTmMMvBCPsZg/xEHfZArjeYBO5hXmr40gC9gbo72wjF73PV+ywnlOj\n2ZH2iuTvHkQ7NCVglG07gLKvhdMNmen5M8ZoJypdoqVXD3R0F9bWEu4OV8+b\nUeUHC8tj9Q9S3nYcQeA0c+vOtWH7lSvosmjOa5c37ysefYGJ2/ZbVjrM8LTx\nFYcOh7vIlo58fg/HvQTkZwNhRiNcoZrChTbCYik8y6hDhZEh+eP7iqAZT5/3\n6KoWfmnDAT4bsgzOZDmuwnLkUd9ywrzfTy4p9kUNr2Q1Cv0vab2wSOr7BHGR\nd9oL\r\n=yDm/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"d6765b891d1813cae128ae764c7bfde6aee3c7c5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.3","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.43.0","@apollosproject/apollo-server-env-mock":"^2.43.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.43.0_1643324786039_0.2958016193408357","host":"s3://npm-registry-packages"}},"2.43.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.43.1","_id":"@apollosproject/data-connector-onesignal@2.43.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2551d93c9ac86592b95c09ee9533cd7a52d03299","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.43.1.tgz","fileCount":9,"integrity":"sha512-yo4j0r/nTfgCcrNYyZeub/NIrjiNn4F77Dc3e6mny4M3GLo9eMahRu15e97F+F5dn15TVOZIC3LSvB+X/7H6cg==","signatures":[{"sig":"MEUCIFHWocTvHYMWcN7O6Tpx/nksek08pd4K0vMrJ97CVQBXAiEAgQfdsK9A+Dt8sJC7GOEW5ZNbelQ9H1SNnk+0/5/fAK4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+beSCRA9TVsSAnZWagAAYzQP/3aHfiFwJmS3IsgfyLHP\nlrlsiNKmXdUOsrrSmYDZxVazFQOHzca7aFcruVhO/HnOOkYNuztjHrWwnYxz\ndzQ0/R+NGjQMmy1d8pk/ENafHvs1duoYIASojgGeE3YjW9Cwajtx31eRWdd8\nVsRghUSN4BgJlmHYE3rL7W1QoacOEbEY8TmvSC2ssWktMK9aiahO7rVwBvvw\nmbsPB941JEFV5bFcLXdikY43xxaFTs7oxuEz3+b6kMKTf6nylvE/EoucoQch\nTsnaJ1ORd05+BVfwSQ/H/cVKRupCav0nY1Ol1/VWMzQAxOeSYeq+DqH9z/kc\nPjubs7VRHGA3d4FwLuxc/gkwzEB47ROVtz8o46qMilMP17iNVTnvkhyal0v6\ncXn4pxxY6tObR6m6v0m1jMJ5O8x/a7nR3gy+hd6yytDuL6ejQT+/clPVgSfs\n5NyxCJDhjjkk6vIB9karjsfJRCJM3YnTyOx4l8Z7NFsVMF86ZqQvLimH7HyY\n0GpfCLa3nbPXamscCKadlIp2HztOzXSrndzbJ0H7oof1JTiFUAZR1sqtCqyP\nbERD3hPXGxwGqALbsbyOvZabEvUta8KzhLioCy4Rzpd10O8Y+N26nMA9qCxF\nFs7EfxasWcH8wIFeHeOOvUDh1XU/lAMaaPKtzQ7Z9ZGM6AdeZWbc4AjXZknT\nUPrl\r\n=chch\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","engines":{"node":">=14"},"gitHead":"7cbe3d1415d201010e932e19519fb20ee661308d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.18.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.18.3","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.43.1","@apollosproject/apollo-server-env-mock":"^2.43.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.43.1_1643755410525_0.538261686165014","host":"s3://npm-registry-packages"}},"3.0.0-canary.36":{"name":"@apollosproject/data-connector-onesignal","version":"3.0.0-canary.36","_id":"@apollosproject/data-connector-onesignal@3.0.0-canary.36","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6ffc1e5db3aa25e0014b835096f9009fd52416b1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-3.0.0-canary.36.tgz","fileCount":9,"integrity":"sha512-rDcMxY7/Pd+v98azOplgN4fMuGtoNLmfxZUD8TYHuCkmUoCU462HlEG1tnREkHmVNSzujxs0BgOL1H409+eXgQ==","signatures":[{"sig":"MEUCIBA5w0bs0dC++6sjJ9l+QmhPNNgCML5/WU400tawHl3NAiEAv3F1CyqwtTM4m+4/FSZTUIHci9Xu1LzUdWu7Gx4AftM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh+qA4CRA9TVsSAnZWagAAWRgQAIWx0bEptGcEO6+TsBnb\nRvM8O69vAlVBHQz2H/bwVQXm++KSZCBzsuQDv9YqeaQrPEIUT3IuwRQzzTua\n3dMF3znumN6q0edYOut9MZ0IdyDAdbfLii1Z7hXT70GYOyE2g0NdS7QE9xP1\nMUAXY/mE9b4yHoQLzBllAqxK9hz+qnMT7qid4QMFpFyJrjMzO0xOPWxaNNSw\nW+yO8R4RVA4uOlw3UEui2Ig5V6s459I/4yGay021en1i6vSyrJKyr0yQ7pRx\nS82UBRU9na6dY02aqFVjcgqJ8zkrxilup6TKa5JZrZBStHpxklW9r6nq4FcE\nEQ2uu+Z5g9CWttFEpZyZTc+f4vwMi+83sKhJKk0VcZNtgW0n0/zmTJY/dLU6\njjSNoVpQNHgoG/Eb/yV+CPf3g27bK/VPAsSfDtj7/ojfmsl9Zhxq2hScenH4\nYlDl1UzMh4OAqp77xh9id1RBf88kx7hIeMbEfCgu1jPB7vWjlgTtty5ApO6D\njjFhwhw3vNhWCzsl8TzmQx/0Eu2dU+UmpIbwShAwCaRqxQHrXLJKh+oIjmI3\nFjC3qHbV7Cz+rLKSBup3IhFdyWDtWqg98IAei9xNmYJgqyqS6HuQJ03Uc5kA\nhNcciJ0WeiTnYFw+W/LtbXpTu99qyvoHOClnK7aqGh4e28IrW4SYPywRcSOy\nnYBu\r\n=oPxV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1db55d6b0134bef10b649811d5ad9950d02ccfc3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.2+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.2","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^3.0.0-canary.36+1db55d6b","@apollosproject/apollo-server-env-mock":"^3.0.0-canary.36+1db55d6b"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_3.0.0-canary.36_1643814968393_0.24192159097585875","host":"s3://npm-registry-packages"}},"2.44.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.44.0","_id":"@apollosproject/data-connector-onesignal@2.44.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c5456a213689a5dfbe09a468009d4d9184ee10f3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.44.0.tgz","fileCount":9,"integrity":"sha512-Z0w7BV26rrDF4IgfRzJmM4tcreK+3gFu0ghHVoYLtAeWCpPAe9dO4y74MeIkHmA/yPo9/809kqtwu1RyM/M8OA==","signatures":[{"sig":"MEQCIDYieV4n0wEs/7QVzEf8WI+qv0rFPA7nBDSEzy3DypKiAiABs9f7E+yaV4RgUq35EzESxgZCA7rBQPn2JwwtbFPNKA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIPxhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLTA//WyPhWVxrBXWF3juXGC9xLNsWQi9d8RgSLmKbo0Cl+oBfMON2\r\nUXX8+rgLWh4gcEI7kzvD65emH6Gx7kr27dwtvIMera9LSQER3zBiuxxlzARX\r\nMGXuJkGegaPVNp40pcc0WgbMj6mQg76pC3L406/SXG3mc3uUvF/Eh7hj4HGO\r\nNsfMz13pxGZZdYcRgbkyKXzRTXIYk9S9th6oW93xS2thU9Vc0S4e/FYTRK1f\r\n8kuPDwOK4LiSR9t6j2mAqNvmuFHNlAvo++zhxO+hshj3rz7HKa8Nfs7aZa3i\r\nYh3BrnQTohUqJSXiHOI2FT/vCMhXiFrKsfbJNnBbo9VnVCTP5WYtWkp4YIn1\r\nICI5Jb4QSPi2q+R1bCR9vpsLZCcyoV64yYlTvOPR78RRxk2+Jvsn/SGgrMk5\r\nzcfpekrupAYpJavZKSLkhLa86oBfRfpz7nEE/YcghIcHKk6smcCy9s180U35\r\ngsuKUOalrE/3sqIfNahmdtKvQ+FBAHleNWqTFdKU+ysk40JZ8CRWyEXsGznT\r\nPSN6T3R6Ij9SKGkaCSo3inXsxh8ZTs4xVceukNSs2xBY1h0ztpDbA/lf/DvP\r\nN0g1YMBcwWx9DzyVJddA048lbqCnXn3otV8O3rPlrjI/YCz5g82flG/oqZ8c\r\nqfiRw9iB5UQ55n2recpG7ilf8OLjTyfxidE=\r\n=2ybr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"88311514d4c0b398c02a1ef97ba71cc7007b1ade","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.44.0","@apollosproject/apollo-server-env-mock":"^2.44.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.44.0_1646328928803_0.9148304186066192","host":"s3://npm-registry-packages"}},"2.44.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.44.1","_id":"@apollosproject/data-connector-onesignal@2.44.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b74c488eabbf2716dabffe5ac30c996b432a2be6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.44.1.tgz","fileCount":9,"integrity":"sha512-0RYvBy4tV3+0dLoR6aCcBVRa9vSxSqekYujwen9OK65SOAnYJ6eA6tpUqj1XSIH/s0b0VZVDF+odgHEdFmKPWw==","signatures":[{"sig":"MEUCIQDPkhIU82cEfpdbsc5cH0bUwGgTf6ZjwfIKUKxjQUZP9AIgbuKFmTFm4CVq11Hc1EuqEOeqI3je0iAV7RZTPFTrefY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiITtCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsKA/+JH0kS8qYDsc5n4AikyKQu54y5J2LlpCzkdVLNz4uM7jlRkTj\r\nQvz9mVHdQTVPqIqD0Guvq8qDF7qTVjWTlllzJFrVk5YMVWRX1muacJEnrSxy\r\nwdpdzgLfFTVxbXdbIggQ6a0HlHI2A+CBSK0wdQTpWAYeMQKXbG6Jn+QpIpeC\r\nkBG1VSaZY0OqP6Y19WXDnfkbLYMXufZcLiNcrcRuBYLkVBs2beMEmFovn37+\r\neic5BfK4JL5hS91aHV64iZ5Tl3DKTEmWZmmuCUKGEO3RayS+O+6exiBzRJmx\r\n2G7BXTrKp+4rdk5LJcJRmFI2xlUWn+F3RUWnxvoxUIsPg78eRO+YztBTVVcN\r\nd5n42NDm7WCqaFG7L9FD4vbyDmXLpCuCBJlMgjKTkJcpg+Fqezs2Wr3Ujp6t\r\nlYLSzpNUsFkh7bgxUps9MVscR4KSxuP/Xfv7H/KqxeYdGrpIONgPRasSbC/J\r\no7HpQPI9L/i9lFotw7g4LuP7g14uV4QIdi/qx8KZJbv5xHVmrw5UgO2mRM18\r\n50ToyHiarBO9otNGNzKC2kxskntd/2hFGlJ8cFECf8vobhAssLLEk0riNxu0\r\nTWSvoX56qrv6yJnjNskFr/wREaKddH89i+RDq3Ypq5N2KWKv7UYU4U03+4ID\r\nTrUtmTXclENEtTx7Kec1XcutGob0PS/3kUc=\r\n=y0O/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"76ea66f2bd57d573af16e7464300c61be616ced9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.44.1","@apollosproject/apollo-server-env-mock":"^2.44.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.44.1_1646345026066_0.6963136776129659","host":"s3://npm-registry-packages"}},"2.44.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.44.2","_id":"@apollosproject/data-connector-onesignal@2.44.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4f41b501e9dc7a3e51690cf6aecb622459587f18","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.44.2.tgz","fileCount":9,"integrity":"sha512-782M8wU1LK8IH6iUHkzdbZxA1g5T+k1Zai9xun3O25a/sLPMbgAZxKRYAxFAyhJnx9cdjIGqNpanXq+zUnKbrg==","signatures":[{"sig":"MEQCIA3HhdCkO4vxZ93Ucdoa3vgQyV1ywdFT3eKwQnU87IvfAiBIyaVr8J5eQdrIvkPYP0HVI4PSleXXGNkxp95cmjFo+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIkJYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRQw//SM1nEIflo33GygnpUExWeBnE0lF3eoVlJpuHRl2T09Ls7mjY\r\nYDNPDwGDlQ6Zcz8qF2Q9/Br1Z41GIkj4cFYNxk235j+rdQNCdx4H+iFxf4zu\r\nySg9nU1erpqlOpkwzdl2CDRmXOn8TGDZR7NiHxmOh0DAH/Tr5XV7rzqtbH1C\r\nGc7rL/Yp+LyK9YI0kzimsIJ8hTjKG+joEpuIk2HX5lNLTpWLqbvE+4KoeYhi\r\nVrx2MUx3gRN2x0WDC6eHMO+UfsGZllXocp9TjNoQF2gpqE3ZsNyUCrnSMa+S\r\nxJFT1opYNpmzATt0Tq4q6iumwmLHM/4YmSkubFtKY87MN3zYYpQCTQWg+PTC\r\nM/yxB1TNmDHKGlGLui6maErYJaJavO4b392dlbKEhDwLhO2rbzTH1RvfjJfC\r\nMYSChGrIuXtMHL5/Zz13b/AH+KI8C9r9NekQHaOS/53XRQqS0FCt4HBOqsW/\r\nCZhZyvw4lUcAceXibTTU1amyCId2gOGZzHj4h4uCwMZO1fM2rJTOKQunV4wf\r\n5gUs2eR4UtxPQfrnFhdL6RgNW29Nt4a/AlC9Xf2rf05TQcM/cUHeqIGhJBHP\r\n1Vi7OcG01eN/WesQQsyxr1b/XMawAn2CsJjk+Ouunz5Bitq0/tFkvJX3wtsE\r\nl9EAcQd+twLKJZsjRovUZJQ+eGvYb8pY7x8=\r\n=SHmu\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c0579c69f7889a4455351f8509b1b4cc674123eb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.44.2","@apollosproject/apollo-server-env-mock":"^2.44.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.44.2_1646412376570_0.20884010840853895","host":"s3://npm-registry-packages"}},"2.44.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.44.3","_id":"@apollosproject/data-connector-onesignal@2.44.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ade5551565507002f332c7da2338ab5e2c44e2b0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.44.3.tgz","fileCount":9,"integrity":"sha512-NbzDzeiNuL+5p4JxfKJM+chqqTZBmIE0v13838wVBdwEFcoWzUE87EttUajzJFvs2kqt28uKTn/Y9MqgcBbDWg==","signatures":[{"sig":"MEUCIQDM1734cmr87wrCcPtZ406TAZjXGmz7IQWx2KFe4NmxlAIgBNE1JHwP3DWSdAItW21H6bV30tG8v11EG1qSYyr1/2Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiL1LGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpekhAAlLns0DksNsj/jmFTkcM6N8QPdXr3lgkLp0EfJYIy5iOeWWrM\r\ncH52XFyz1OPsHC5H7Lj1mtXi7+zXWltPrO4jSicQEoO2bn74tk7ihmWlpUNC\r\nixzw3VUf4ifN/Snl7ak0ZZu5g5eIMDGr3MpaFXFJOn7ZN8qnoE7TqIeCUOr7\r\n8AP0lN30jqPAcXUG8Ypbsb1+50cbvuT8w6VESXVEEwP2sYdR2A16TVBJ3nRz\r\nlstVcLYXfCcKL7U3hQO2SfOM19c+7U7P9uEmuFP2paPZHf4DwIAbOEUHtnxh\r\nYPk5N/js38Ryn+GWzWGV2QKHcOHb0Dsp5a7BuR1gJB9PiuUiUgB0oeSs1QEZ\r\nmiAgnvft4tER4sP9zTAf91PfafBwEK7NWrbOUB+uJK1Zn0iDRmSRKr7gCXSR\r\neHPSoUZRBnZYMVg3jf22UE8vvOG7YjjnVRWMw7vSFdLJJs1oqzDz4abocRkH\r\nkDdXxR8GzbCLe7B+onmcmTZBpV0faNn4YQHA7FToxGWCe+dXwH/lkzmllCsZ\r\n+mhaJXvEv8FBjc04ulKtT8GxnMv+H/iaqWwtzNwgtd09oCIJOFv53QnV2Zgn\r\nqCHB0Mj57qssEBV4oxWMNwAwGH+WdfbZeVikEqa5yKha75ZmolHgUTscWlU2\r\n6OimbMPT8TCS+oUTgaPaHR1mFnD0DMPSEqg=\r\n=Rn1B\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"415a1f61343795d129f7cdec8d48cf5221a6a2c6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.44.3","@apollosproject/apollo-server-env-mock":"^2.44.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.44.3_1647268549954_0.1939800273214951","host":"s3://npm-registry-packages"}},"2.44.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.44.4","_id":"@apollosproject/data-connector-onesignal@2.44.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4a18df70cd515751d641e4296bc58d2c3a222272","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.44.4.tgz","fileCount":9,"integrity":"sha512-/05BKaLMjah/eZUXg+HJuti8pmXB8gRSpczpVVFXi8mM0ES+p/sNmF8eD6OXa9KFdyTYJ+LCaAvWOLUCsWavcA==","signatures":[{"sig":"MEUCIQCe3SkUiMahBOFZ/DooW04CXFd1X14dPc23SsSaI6VTyAIgcjTUguBxYtWDH6IJEq520bRp/QBYEfJIdzOd0yTFsG4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMRzwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCow/+JD3wsIXHQbE2TUoDlcQegHahh6t8D48hQ4cM9Qgmwyk54imB\r\nDnErGDc1vmy0AfkHhTo56cF19jyZjMTKgnnJEOunLB5fnpYg5Ayjjs3hO7/z\r\n5JlKTKrSI8qGrfuM/DrCXQZpbkEV9rbM7xcS9IcpK+PjYtTfyJYRVJuV4Ftb\r\nHaLxbvDUYN41EZwl/YJDN2g/HecUL09ALZUUHmaDRV1sv1pVu7A5FAzShMMP\r\nc05Dz001HB7ARodsGbANarom+rfOsoZEdOpyIkW0DduVdScn6WoyCeJPW566\r\nap7ptdOHG5a+gqYmDRB5Nb+EANHHOeGqAnnzt5v6sSsfqjhvlyE56IHq8cYP\r\n/XZEJ/BYevEBbb3+zKsIBkYEl5lZ47AaPlN99IcW8rpRJWuCjdm49WRWjw3I\r\nfp3dp6b3PPmrOgZLiz2XsuCCjA4FHuz1UlBUZ86brTPF1SWJ33KpnZNLwjuv\r\nwrIwKbfnGR+K5LD1msoEcOPhZtGw7R5lNS+XgzhXnlCUCy5/GQgyxHzKd7ef\r\nNswqjtKVYipUCis688NZOcoqtFhEVQhhUStJRb0ULlr5Hmm61l4mZy4JvkQW\r\n9R5AgJ6aFFiQoTp/r827GmSUjxSMetRzKWVpojl3iM71zCFSoCCu6jiKlzut\r\n6r/BdYnNV8elkbRCafHOj66Xvbgd0wrITbw=\r\n=P0K5\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"19a714fed2a52898b4eeadb46c2059bfbf136870","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.44.4","@apollosproject/apollo-server-env-mock":"^2.44.4"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.44.4_1647385840608_0.19092643077223648","host":"s3://npm-registry-packages"}},"2.45.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.45.0","_id":"@apollosproject/data-connector-onesignal@2.45.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"52b9b551a6fe0e3bf34f0cf0719fd63db624985b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.45.0.tgz","fileCount":9,"integrity":"sha512-HRQa6AdXKztJTTCzcojrF8b9+l5J3GgyNEp28aQ7mFPKrA29Iqef06s6SD8kCSZG4EUSoy57rGmy4antoMeb9Q==","signatures":[{"sig":"MEQCIEGdRq3X1tkx0tw9c4ovAIR3W8DYmoWkqY8abXMBNaRUAiAwcmfFxYmYulGorCiOibTqvSxnytTRq2yPFgBZI5m06w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiOikZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNbg/9GSvy4XiExrJ3pRQe6alFtcyYVWTNpe++IZVExcp6kSHJvQud\r\nSFCoxiw/Ms3qkMuUgTS7YlchzYmERO68MZ2qul+/h97kU8EpJOZApoiUAlh9\r\nNeIXpCeOIl1L/cSPyHPJsvdVt+hMayBYe2aQyzCzWq0/8VM50y27DS9plpED\r\nyxI0LZALSR9tV1QPCDdOIeAAdBPSIk0EQHMsUTiFdRNZW76/vaYB1TdQ+JIZ\r\nZ4Hit0lyAFmM+uQxHGdTawI7iRxTKkT5p8u9zd8DQtXk/nTogDXxUzbXKk02\r\nA/w/vJIQh3sYjW4+j7ETKOfamlLBWKuPwivIBs1+K7bjC/SwquuI/P/r2Ji5\r\nF4eg1RlxUaJ9FbWQrxVhFGMrwnFCSJE2H4O2FnpGxbQupPKEJeohL7gJrua6\r\n/Ft04dRH0eLdCRL8d8HJe6yZxNjd14zY25nuUVvzvBlu23Lk75UHIKPIqPmB\r\nLAtQbrVQCfBKZ32VPnuvd7RoACEV7tl13Jb22ggDY+DDr5nZQ1lJNfhz5zp2\r\n8lJb408i4Ht5q85lui7MNc2NBj/ItzLncgSeyD/fAwKgYp/Gutx9gXmam1N7\r\nlcfEyqPkCkFaudtraaxLY7WC+wPUvuU/1mH/6Riu+FP0Yz03hemzLj2MaTOI\r\nc7pD6w+jiAnqD58mDRySG7SnO+CiLH6uwKw=\r\n=h6J0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f6d4c72358578c7447743f5d979be1600675c25e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.45.0","@apollosproject/apollo-server-env-mock":"^2.45.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.45.0_1647978777696_0.4576279409877304","host":"s3://npm-registry-packages"}},"2.45.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.45.1","_id":"@apollosproject/data-connector-onesignal@2.45.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6482a7e7f813c39cf6d66bd6328fb44a65dc3d22","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.45.1.tgz","fileCount":9,"integrity":"sha512-PmXjR464OMN2TDW+MzWDj63n/rZbTOeIU7omuKOKEIJ6/qXhB3EPfajPqW23+fJ7EVYEg8QtBE93Mrqsco25sw==","signatures":[{"sig":"MEUCIQCe/JaqWAoP/fA+tRCYYNjQmt1nl9YWM/Ho+1cKoRWa7wIgZAR4ip4I2Hnd3wOfy/44szSRKzuG33uJf0nsh6SPBwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQwpwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJVQ//dix91e3xjthbCVOK+G7G8Sn33tDBEvC9662jNsVgpSohbaw4\r\nax3+gRidRsDqN3oMDARHBHl2rvPs6rpXy0rSZT+2emTkXmkovCCPQU3AF9XD\r\n76tKU0OnfVxvCLTYimRFXGS9gK6WCTQN67c1BTyvIosK9oJY0eRP/6wgLSCc\r\nO1CQktNw7O73t7cTKT3tHZfr+Pg3oE4+ZZQRBQ86EgPVJ18vDe8J0aOgls3R\r\nACVKZHJ0rOkIjSiiRVgoG/ZpTC8nSTHyOtAg14JVwgjKKvm2w6kMeAhbuUZ0\r\nXSQxwkfsSCGUXs80Fn/MfO0NS7eVEkR9iMAVMB8/YEhJcpkP93C7jukxsdTv\r\nB95sYZ/0TQV3IZjP9Bc03Z97k9HpTH4dHYOI0Pjw9yfK3S63dTdxy2GfozxF\r\nGgRagLEbghjNWDSl49vcLwiy9x2qdmzhVkwC19QGcIJOe7+PUL4kKtH/Yxkb\r\nbDqZc0xayl/lWLZfldi4rcjHS5kTMP/TxK77/XpaK6obJNtdqeUWaacKoCO5\r\nFQti9fELif8UWsp5EXy2C3oDK2O1qajdCJrUT38Nb55UNstMVu/Vvhk5MuKf\r\nuUMSe9P6aONg6N+sDJSoBHAp+0INKcrXit7jXjpKNCB3KPMik/XLamuG5P4q\r\nmuoBKXzrtZOeZZhktc/U2X9QLB9po1sT9T8=\r\n=YwND\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"61e7730ca9f630dfa0e8fe95731cd911628c7f9d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.45.1","@apollosproject/apollo-server-env-mock":"^2.45.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.45.1_1648560751845_0.9506672307159645","host":"s3://npm-registry-packages"}},"2.46.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.0","_id":"@apollosproject/data-connector-onesignal@2.46.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3841cffef650c6479ecbb55ea01329a437b23086","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.0.tgz","fileCount":9,"integrity":"sha512-ft6OszuGmb2F/ytfwPI/aOLBKC/IzbhuctdNOsreod2k6rtbSOkbc8DZGTUvt7PMnToDvb/kFAKobjdZ6S5RZQ==","signatures":[{"sig":"MEUCIQDisS+6y3ih3JId8tei26MmBlfoekps+NAVsxB6pl67AQIgUdEFFVYiQd3CfYIuQ7vo2W/JOIc33AYQmcgsHvN7HCE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50648,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQ1AAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvuw//TuzljHtObONxi7M03ztfaS2PhlhuC1LJ410ROSn5HjNAx9N/\r\n/3vbUe4wkkum1AE8GLseraXzD8e1upfOC4nn7V5kbDwR2aTMsVtYjaQgZq67\r\n+0KtN3JwPkPvj56GdhKpo5E1l7u6vDxpF22TAB2laPPxfT8E0nQwjN6oGYK0\r\nrolaSoyU22D9xnzmcap3fyRiq6t1Lrilk17TL3gNc7y3bjVeAkQEYJnSV3bn\r\n69X27gQG8LsgIvxHO0jUxNyvq7o2TacqErne+iOCxQdYnhmA6AU6vHT09CBk\r\nz1f9bnCk2LtoCkAJskDsmwrmh0q1SmMNj+13JLSs/2bGpU1niz/v+f2AVd7O\r\nyxZG/AXT31gsxMPyYo7jcCmggxdmkQoTi5Ax0mzgkmNvN9KSYH8VUFRlKs1V\r\ngahzQvD32YR1ttsnkr9pR5B7IoYx/Q/prDvkBMTBgnHvnt02HzP3LAxxTDCc\r\ndCrBqCnu4xxtYjIuUpRoooEFJ6uXUyhVeZ/Sm0BtzzAB7LikDqgUpw3QW2ex\r\nuu6g0zHoEP7wJe7ZwWRfaFQsdcnRpHchLRJbXFeYQIGDH2Ffp9986P/ROsox\r\njG32+EPsE9nIZ8Kg/GVmwnSM1n5LL7zbN3mcPSFw0XXmAwfVKOr3TygTyFJf\r\nYQmT5RqDEQZd29z0QS5A/gLlE95HPwtbnkM=\r\n=eq+p\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1b53b711f6723b9ce61d638b0600731ca40b3a27","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.0","@apollosproject/apollo-server-env-mock":"^2.46.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.0_1648578560629_0.8875194226156224","host":"s3://npm-registry-packages"}},"2.46.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.1","_id":"@apollosproject/data-connector-onesignal@2.46.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e29770d39de2d44541d1f047ca1007b78e7581a7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.1.tgz","fileCount":9,"integrity":"sha512-GvmhCWQi7srzPrYZQ/tKrjxBuIM6Mu38O/b3KZFWwrVExu94A/qyoS986yXDit+A3D+U1Jpi4T2/YnlzMVZllA==","signatures":[{"sig":"MEYCIQDxlbY1C+VE9I2z1kz7fHswt0k9UUtaCJz639YD56wssAIhAOKCUdZt0a+lGBTwIzzRESXH3rw+Jq6CnV2BYKFC5iKK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50835,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRHL1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSBw//cGHmjqjgy/AMWW/7SWARfp43wn9z1RZwukMN4gGh6OKM2Rfu\r\nDsXTktMZHtlOjMSmmncg1o28i9AUj4dsM13yCQe69sgF8dn5+IeguRpzIIj4\r\nXIniZdxE8P0l+I8e4dpYSAgt87ffoTjgmM12hQ6M+y9VZ0QSWSCkTeyEk/YR\r\ntG/GDzUNYGZUkAaYqUKAHKOQ1FE6AqwTm5FXYosYujDSyY5B6sC+hfPdlik6\r\nRGjSotazl3YmpLgzd95ECuP6Y35Gxxk5KX5Uq8YKgQS4dLv0XMJb2CVc+wmg\r\nkoSw+Iyvnuv6YLMt5FPyBVvo7scocsK/vN2IH0vtaEGWGJUEWFf032mrjlct\r\n18JJlIYcizAqcYTrJ3xbmlSsEh/73bEbDTURHUFWR3q8w3U6lTS1KReOKvLy\r\nXU6ht8VnMeEMf11wZ27IMj+0wbM5PxCkpaaJ7nTbXblFwz0LbuAV0LtBt+I6\r\ny61Y/bSStjWBUQX0sf6dXy/w3YaARuSMNDeHDGlusa8xNuuuWzV5JwhRliiF\r\nFjgjfM89EjRWdGnkMsfGJYl3CZAs/xwt0n3YrPNAH4pjs1AlJbQGEKGDLOS9\r\n2dJaaWPFi84yG3EXNdVexKkASs1n+bZLrxnHoByoSrB75VKFjTX+Kf5/OzJ8\r\n+70wl+yGpeIKnPJe7z2DtfpoUdzwbL4GAtw=\r\n=we/p\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"55e1f2dacbc58e6d9d7edab4eab19987912fdf83","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.1","@apollosproject/apollo-server-env-mock":"^2.46.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.1_1648653045329_0.6135659406266976","host":"s3://npm-registry-packages"}},"2.46.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.2","_id":"@apollosproject/data-connector-onesignal@2.46.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"33a0cfea6300895e6bd74bf9c0c8a637862ad44a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.2.tgz","fileCount":9,"integrity":"sha512-c4eyAkXb10V4svXPvrTYg1AHodzO5xqK9n++MrGzK9LCOdevlTfRB4+JjbRAlHk6PNZ3bZzZWRgVvmRt8bI+Hg==","signatures":[{"sig":"MEUCICgROe9hojA1bYusfxhVvwYIvWOrN5l2uhg3RO9v1yGcAiEA8izQ9Zs6QO0g90dzHOznpkuvXpqhVbt2dmFJ+oyRVD0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLFbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyihAAivN1xagpERXf16qYD/EjixDYhdX4DnotUajOC8RbnDSdbWgw\r\nY9FLv065qkUvL2gjSkwQraAqRXlXGMrB4QEn3quNleIuMuinSFjU505ljQOb\r\ne8Xl0NAcjzP+jwHcpypuInovw+tzBNpIbXWUo519QEHXrZ89zc6UW+7Fi+3Y\r\nTFbCuk+PCRcA2ElReI3mHg1MeSQBS0DY41kBHjFHdthyq78eWx1c2+CUSDvO\r\nwTaXZ4fBcoIB3R97gOsC3hy7oORb1eJKQfXs4nEQbFhY/S/bLuIQHMNylJrM\r\nzD26rJfuUrmxf18kv69GxWCYKwX2R6UQd7kcGopy1i4Hf00uQocsUw+S1i/M\r\nvdHt+e7fkI/iFTAC7DsfKSoymI5t09lonZa6p0lIUzlsM3rihdJqobzAWTFK\r\n1M0wRV0hfOhyyxdYmA6VuCFjh3GJbh5TDx/R/UiQ2Dc0u+7FpIUZkGbniBAE\r\n2SZ5zP+6enKI5TxS5S8gKqoW5MIP1AvLBKrYwDGhxeMRFok01eSSdlWvz4kC\r\nEOn//uBuRfWufYEpl0BBWZeoWz5gmo7W95tEpALZ8CcDyT2bZNSMTj6ogA38\r\n1A9PLhLHygsBA6j1QZ0YXQEDn+eHpthglR4drIc5RTyEewSt03h5BN07LL/8\r\n6Id4+SkxPAi6iXQMsICB4Z76J8/Xfo7frgw=\r\n=iIHM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2055046e5cbbf1fdbeb484fa1c6210d4252a9021","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.2","@apollosproject/apollo-server-env-mock":"^2.46.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.2_1648669019400_0.34091289742283526","host":"s3://npm-registry-packages"}},"2.46.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.3","_id":"@apollosproject/data-connector-onesignal@2.46.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b39c5b2ae2c3fa29bc6d5f444c3ad6cac29e4dae","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.3.tgz","fileCount":9,"integrity":"sha512-9eoJIHnKEGrqy/aog/sAHmSTfCmJcYrTkgSEJb+uIqchod5k7jFOqPoe/Js30AhqUVj38wEJKMRkQjN0+7MjqQ==","signatures":[{"sig":"MEYCIQDeqWNr/j0mgB9vfGccuEncwzyfs3jHMaXfMtJ9O0ILRQIhALTaXiN1GNBgvnlHEEOPS6px7hj+2Oi131utc5no/aEp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51209,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLIUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDmg//Y9/y/wq/zdTJ+7AY/isCgr+N3xO64Yza6LYQKyOPLpPIxHWA\r\nBOOckGWSu+EM6OkbSDXY//flvEoENSrB8/i5to7mIELIxHFy+bmtmKVBPHdC\r\nz0C4O+o1NrFL8rGgjYSMvOzuzjYt5TumWcdvQrbHF2I+gNWoJUy4RZQSitGC\r\nY5yd00q6TbQNiKFYFfAQ98aNo2lTceKL6i0HEhxK5oXETxkqNgctgF/3S8DH\r\nCJoB9f03Ohrz/FgfkcOGTwws8VNHcpmcCLslYD+MXonRQuQKiI0Ory9o0Pb2\r\nSriDTR0phWZ9Dg3j4VXWiuCnFT1+fUK27iNuLDQydb5AIk4Na2SCk5vEju6g\r\n7bEWaTi6Iz/k35QWaZ5yYdz4PsKBitDUjKoRKHPkJiySr81fTS5ibqyG5NgJ\r\nJn7WfPvqoCoihN0hVkeTeznFQ89ME7YHsQ1HYBcn8akFe5KGKlfLF71BpStJ\r\n8NnjGrHtmc6Ztdqt76Wh9NHsIjv6lJrohvJZDOhFI5nM7TCiu+ms/lsIWOY4\r\nOpGvIfO7HTEXM4Ut6Une4cMreqdXP2h4y244QOVdyGOUVd7LyZtFoDMy80tu\r\nhYtWPrNRgZMC4X4EbluixJ+WHxVcDUi75T6ZceK4GEBm5Oj/Vgb0LiSYhq29\r\nwUvKOirFe5/UiAOSYH0I0PzQ98H2Kf/2jyk=\r\n=0ScN\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8ea7936670611cd8fb9c4269585f37db3c66cc6b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.3","@apollosproject/apollo-server-env-mock":"^2.46.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.3_1648669204334_0.34295864746506877","host":"s3://npm-registry-packages"}},"2.46.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.4","_id":"@apollosproject/data-connector-onesignal@2.46.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"72411fd938dc2375810724f2b6f66efb0ab37e33","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.4.tgz","fileCount":9,"integrity":"sha512-Tk0gswcEYF0PKFu7abjaXRHFwDnywaxrcuA3MwXoSwiO/pFBjq3+IJ2FovRU6cJBMLM2Q1iNG1JxpuJCU2DtFQ==","signatures":[{"sig":"MEUCIQCdfqQeIr1POXHF9LaBHwE/SnWfgReBfzLfN1cTHHFbXgIgLYrVufVDnuVwzhQtDsmGjoS2itBVURcWL9JxBvR9pp0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51396,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLLvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqm1Q/+OBDglfZAAXoh6A7Y2xv2frzdBQM8l20qkk6Z+ziQ7M8RjAyG\r\nIAD1cRttFvD85WLqOb3aM9woteG1dktQkiOpLg2kl8BHIl3Fp5EDamt5RkXw\r\nL2dVMt7f3w2srIFJb23xU4N2Gg4FTWlckE3wXXh4ZJI+QbgQfDPEdAC0R3uR\r\nmLMnV228XClLCspUSYsWwzHSOAcb37C3E4300XlOC1PbIGado1RlNHO0Nl8f\r\nGv0szAGawYoX5ZRDEjbNDJ6gkRu7vg0H9u8+GuPayE8ABnANNbr4Bx/G+pl1\r\nB0qMwOkM+R0OjOnJzfMR7FxmQvJ813LMDbGo0W/qeD6G4AYngCNYTxlnWBHQ\r\nYzYcDoJOEiIv33iXNPElV1T2BT4TRH3BZ4VUhmgqcn4u+lJdhO+cYnG0qcsL\r\nSUJXJpfyzDx9J09MUWTAJs454j6+39RMSFHcWo1MkQJPQjSlEvV3hFLRbyuB\r\nyNR/6+5P4mOMOb6jGLmbOI2SlmEkJQbNYLXvsHYDU7zYRko5eMg5IH8wkzIO\r\n798dAwVW3e277VXKjLAM9DISAbGn46bZv6Gc0G8xevjnlFnV2EUjQ+BgrCpj\r\nkPLwBiw8qNySqWhyEBojTjs5EyFHrTEXnoO82BUb9Vc98sHfNSSzLJ5b5UKC\r\ncj5t2XzxXj1whI77frjSm0oW8FopIKCoA5I=\r\n=MHlj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c48583d94569acbfaf3c8565b45df0ba7dc19830","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.4","@apollosproject/apollo-server-env-mock":"^2.46.4"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.4_1648669423009_0.9249176166301647","host":"s3://npm-registry-packages"}},"2.46.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.5","_id":"@apollosproject/data-connector-onesignal@2.46.5","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f38c3ca1b3ca959ff998b5adcfa81263d2b8ab18","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.5.tgz","fileCount":9,"integrity":"sha512-4XHddzfvoL6gwUN6s1CpXJzreUyrMkr500uvJ9NMIuTtZwHDoj2E6pZb0xTZ7Fjpnh7Hu3KVRh9rXWKJPyrgcg==","signatures":[{"sig":"MEYCIQDoMeIO+h/DgYhcuyRYtt/AcZbwxkWWFrUvf59/89+0tgIhAMHWJ5Arc6CI0butAEYyh6L+5XvcRSX3I5g77HvnCxqc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLOrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXOQ//XMbhXwYGksN1pKpjN5ZZr5iPd0B52x+aKEzXWV5mWMFUreeC\r\nGp6AceWofCZ0mnV+zzMqz843Dhgf/qnK4h3UZOpGDRlj4ojvuEfVYmU9EkcK\r\n8ocyaL0JlwCuE1Fh602vhvEsTKrK/NvjnbPLriRcsC/Gap2/vSokWXCVnWj2\r\nJT3e0/71JMp3gCc+nzT90uscgGwSWvOOQpvsFe0qihWiHW4a2y3RugGmk8ob\r\nXilb07QpQGPANIwglY8k3DEbXLcm145wZjSOqdTT08Fde3TXbc3j0LR6aHDM\r\nHbV6gLAqXwPdtZDJuszjjkWnprRPlueWt/aVZIG1BvEVNIf57reWp6rV0ee7\r\nDQ3cmBwgnYMcIpeDibgg3WTtXdynb68ndCNQO9EYYpwKs6c2nmsfV9XFezPP\r\njv03+aZsH9kpf+d8qQ9Ty0B9LvLx5ZWojjXQAFCNdlg6quA/5XdHxxHzzugJ\r\nulvsz+gpxFO0lBnjYFWFSJalL+PGfBrq7kgNvvKLQDr9uyeD7uMPvF4KgTi0\r\ndofTetGNx14PLuc4lIG6xB2cTxp1MCuJait70VM3PJOyQQw+UyRbHsQzpH0g\r\nALp/FkbzRCK7h1qcPujwEfmkQvhax5HAoWGYHu3SceqB5ipZzLW5ZCT+wLCf\r\nWgFtZuLITdm/ts0WFP23X/US1QadhLNrB2w=\r\n=eUXn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b08250b53767f9a1bf580dc74cb59b2ab3c68f96","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.5","@apollosproject/apollo-server-env-mock":"^2.46.5"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.5_1648669611043_0.9166629653433847","host":"s3://npm-registry-packages"}},"2.46.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.6","_id":"@apollosproject/data-connector-onesignal@2.46.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b9ffbfb5b59caabea43784202da1b1fdf9772778","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.6.tgz","fileCount":9,"integrity":"sha512-kWkHtg4Sqh53qqYvXkLZwa0/rW2yUY84Ud4tEBUaiwugh3CL8IZqgszDPH20GUUsJD+WGvUhYEGKJYaSDBMV1w==","signatures":[{"sig":"MEYCIQCi1NzV4ZVBAxJPOCQJwsakB8dzuGVnwF69wCf3Rbgw9QIhANZ8RO7WgHTsXBBqWPbAC1CB3vKxVIXWE3DORkGu5o1y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLR8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvSQ/+JYUqrzrNQcwwb77OiNlkP928z4lE55UrhWA84Ly24ztRw7LB\r\n4U/X45jHrdt+RfIXKnuFmqHyaLsCrfd0Uv6qO0SZByym4WbAfJSw9tFFAfY3\r\n6d9LfxqN0pFJz+KCAxortRzujEunrFaxH0lS/40Yov/kQsKVhhbldZJdRb8w\r\n3gF4DU6nVLlLYvfBAz1GdeOA88PrC2cCSDa8NLUyiklS2Hue6/1kE2OfHzMe\r\nNI311hBe6uCPdmyq7qrKRqTYN5oCHUvYFaAn+xtcEwAl9HqjDa0/AxR+fApU\r\n+29kXPWdPEKoJRX6dPyL8TtpwDR02haZilhFP8Mm3nwkEuA+7O+4MNgLcVsu\r\n3gHrtC5CYRdNs/cxErtoXQhZ7XsvHcU0HYkr2FOSKD/zNTqbnz1kGKdNAUai\r\n3aY0PbkpDT0a5RzkXJ3XyGgLKijezUd0cbP9w3r+w09kuSZzI33Pg5L3zGkW\r\nFR+wGYWpVS3XBPlCiZAqbtiENRMzQ1CIo3iN8mrZonp2YQz/lDzZMV3w9riP\r\npbSwFWKGDCccXVIwBlHIoVe41oobp/6aXG3lgmwDEz8LsQ130HjjtvhAb7NK\r\n+TxUu+Spp0ifWSQbyNAZeQcJFEB3QC6beTL8IseNVUtqZoARvxA7x4k3GcHs\r\n9G04wFvkfuxcpSPK5YC7moNqoHDbuNUCH6A=\r\n=spY1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"769c125f3919a1c240f8cef52d37e204996f7167","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.6","@apollosproject/apollo-server-env-mock":"^2.46.6"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.6_1648669820572_0.5751146190000662","host":"s3://npm-registry-packages"}},"2.46.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.7","_id":"@apollosproject/data-connector-onesignal@2.46.7","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"aabf9794d51fe1efdcf133463271751274acbca4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.7.tgz","fileCount":9,"integrity":"sha512-hK/KrPaCkytcDxBoKfWKdfqGWhvfvOi4hqWqZXJtopm9rHyraO7fm5PaY4sludsorlI5SM+Yxs9BjJEsTn0f7g==","signatures":[{"sig":"MEYCIQDOY2w9KghmndtgCk1ZsudT1myVjbzPe79ohUZdkmGSzQIhAK33yvolK38rRU/PjSSeUbm5//aOgnBlFdkq8xdRGjoB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLUiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqRRAAhhxeXR+29g3+482V/ZFsEPzxMoy3/DcG40EpGwa546LnsK3t\r\ny3viwBZXWFx2LKIYLNnEg1GB4aXoTO+KfpMI/MsZApuSBX96ErEEiUMHXGp0\r\nNVq4EBGE+IiOEK9vHSMG9hYEjMZHikXJQjZTUvKUdO9brqFGJvlPxxiaku41\r\nbC4zhrutr5pfCjwzBgytdbYJ5DeZbG6FoT8i2p+A4JMI52QEguZCoAqQh+o9\r\nkvhhCJJYdXtA6sXkioAckA213ieMIRjbH1YQyy+ZPOAxE2YDsa2vWJupW9uv\r\nKuG4w8pARd+QCXhRIPaUWlpXtDgsZ3rPxmFufI1/3YmoElkBbvCxLyVrdwfw\r\nlLqrhpSpiJp4VTIr2xV/Q1g9Xfyo3PuLEFLQrLwvElz6Qh2yWUm8zEHgJwYx\r\n7Fe1Yx34d9SChjYEUOvBwTZMmGCbRW07Ls3IvVvRvdS4RmfWFyla8Aw0xslI\r\nsY80Av/8nX6GxaLSLoafB3rNrPd9KGgP+AnwBEVgePLnR3GI69Y+VauYYQGr\r\npPZFlBJIsBC8R29ynIBGjClANXK93RKLCc5pC3Nnpnxh+/2/fs2sZo5SmXtt\r\n5aral4hBv10TtG4GODl9ltMLPZf2/sHrbkzbDSzY3dT7UoNGSIuD7Aw1jaWV\r\nXnVuX+XPnE2gG4HPAz6G64A+QL7RJqpCnK0=\r\n=0xwd\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d5718a003f67a961c5b03a967c68a9e0fd77f840","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.7","@apollosproject/apollo-server-env-mock":"^2.46.7"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.7_1648669986031_0.19853211099118617","host":"s3://npm-registry-packages"}},"2.46.8":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.8","_id":"@apollosproject/data-connector-onesignal@2.46.8","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"64fe9f45bf0a349d8e4d9769f6d607691de3fc1b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.8.tgz","fileCount":9,"integrity":"sha512-UO0HL1gcuLPWdw4XeQeY072L1s5q9LSdUL78oABiPlIQZ5FznW56hQdDD4fo1HATiXSfe2dWVkqju7qUQVwAIA==","signatures":[{"sig":"MEQCIG58ROGiyYj0OPzGxgPcwbjIntXSXzPuTwSBzEmNT3siAiApZclVlbpJq9bRZ0ngxXH22e9dCQ7uoH/7e6UxbzfzLw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52144,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLXCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpPA/+PD5z2RoIeZ3jVN0vnI2a6g0Jeh6oadRnDmlEjHV/Cpkpx2mT\r\nAb7VE1zTwUZIXs/fnKwLruZAqufqSPaP2STR9d9taYN/+O7aFHzB+Ec6Nfgg\r\n+QZXQUQ2nz0oz8KAKywJA031ZpQWCA6aT72R4HvSEyicop9k1AamAB/d5HIM\r\nJQU0F1Ob7GkaJzkI1/UMoTSqnijZZ0TZdB77L4Ugc4ngiCbPZ0hhoXnAIgyC\r\nu4OAJiGuD/F56I6UA0v5/KJPpol2px6BXBdO7wHbHz2SXvJpTVa5Gv8zfxSJ\r\nPeQx6YrKcP8WN0vskep1/aZqJo22Q2RLbne32+AOenN2swAKd0TBiEU8t4Pw\r\nox8jtGGAPsVckVhBxUmFW2Bxgcyf2i0TsavF4U5sjMlPCIRYqscYEL1vfIDg\r\nAA4rwS8uzU4daqcFB6yuLcWIsKSrrEokNL7/I4foN7kkgreRkdzhWijEsY3u\r\nL2TaGknsjDV2A8fbjC4s5rnoy4mMRCZ31zgWZR6a9Dy8uYGKGji4CeFDs3YT\r\nIV6AMuBw/V36tr7qz7NdLyuoHp3l0Z2+ycRder4Ge9c4juJrVD5wyScRv/l2\r\nCcSvwXVT8z8lYBhtrtDVzj6wGkPsdc4t2aMw2ETzUN5qg4pdnDA98ptmioIE\r\n+YemP9HfL3RUq+lZTlzWlMRLPOEp4zRWGyo=\r\n=r2sE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"060359d8d901806bf09acb6302fbf35241b10241","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.8","@apollosproject/apollo-server-env-mock":"^2.46.8"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.8_1648670146651_0.14045240245386004","host":"s3://npm-registry-packages"}},"2.46.9":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.9","_id":"@apollosproject/data-connector-onesignal@2.46.9","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"248c8f7608485ca026c5f273e2d84377a6439c40","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.9.tgz","fileCount":9,"integrity":"sha512-qPBvSNV+AWtx6xGFud3J2GCs3TOwqb+Bwr7oiOTUkgpbzQsIdWXxjBg6naoSsHtFGY2s6L8wdwGbObZ+aXOn/Q==","signatures":[{"sig":"MEUCIGA7lBvPbMwhjdxtBqt+IE6YCFVpDe4rYHJmvuZ523+WAiEA4SjeUTFotUA/E9EwpksWC2xy76niZcSofHhc4/6cmm0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLZvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzuBAAmgJvGTE8bH1S3BwCax3bSNEguSoDZgS7GG5XXdc8tRta537z\r\ncT7PneZ4+zIfPF/p+xSySRMhHFdCjabG5sUglqiXzA0Gkkh50llBWjNMswto\r\niifC425TBuZWUlv8XaBIFkWMMriBKG/vAJ9d1Qkh4OU3ufQvKzqL/dyFZMHY\r\n70tjEwYfcPOy1S+VAB5KT7b5mgtESHbjfNmvrhQ0ge4AZwdzCz5xvIXiS/E/\r\nNOM03cMs2qw6cwZ7OgipmJtPIA9bP2lzliX883ckJknvRpDwG4OAC1ZUbDY+\r\n89JAvkPi3aMsxcm3eEBO3pJC6tA3wQij76XqjMZ1bn9Lbz3yzZifqFvfd7WQ\r\no/4I0cACJnPEnNRrW9w+QoI4Ejm3fCHMfRzVHOKIYdhLJ4OS8bHs6N8MS7dN\r\nWsxcqFf3c97cnh3I0waoxEl73nG9rraO19uwEfwWSYciZWG7zJ+nYGOpXNPH\r\n4Noo4Pcu/KIh9Ld+M0Ycql+OZER8LDlzFbBKhdM3Nc1+3g0WIC1NfjDownIy\r\nv8oN0N8rnRmYrZ8kNmq0kXbD38yG9WQsVnIgeaJgn5qdyqWcM76y+vQJFGQl\r\nWa4f0meENbcs93G+lc9X2kYU4ZdI+Cbzc3DlZ4B+nW432/KQ/TvEvVW8bF25\r\nrGMPyfDdriJiQa7A7BgmPQovrg1ipBpkIOY=\r\n=ff7N\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ec5b83a84465b89beaed94ded0c4b2d6cfc399a3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.9","@apollosproject/apollo-server-env-mock":"^2.46.9"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.9_1648670318819_0.6051010776799941","host":"s3://npm-registry-packages"}},"2.46.10":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.10","_id":"@apollosproject/data-connector-onesignal@2.46.10","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"cf011cfb2f62e9b62c58a9727f9b0e14dbe40dcc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.10.tgz","fileCount":9,"integrity":"sha512-67TmzHNM2qKO4MRGYVGClw5En4/8j15mntOcQZwye1IBWPjfu+KXDcx0iqmur7jXUaAG0U/ckxxpvsf3Lqddqg==","signatures":[{"sig":"MEQCIFRDZ7ieVo0kukGDa2WNXpzwAGg3EBF6/zKzrle/+4UPAiAsABy57YroCukLUN6nLj5R+zXSIJpLcj9q5k58JVXPaQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLcaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqoqA//aAk6rHsthnbPnOy4967EftSaP0MMjqK0zqtbW/lX6B0fRgo8\r\nkqgu64k+dEVPUUq5FoElx9bB/jo6iI+D0yjLkPlEZvrbL679lvK3od0WeLBy\r\n2lFm06fDhb9taQoAxH+pRB/7lBinZ3mKXk5iFOsOmYGOLXOFxBzo+Py4eqtG\r\n/I5eKqupL7Kctf0pIVaOfPAN+vD6yzscrSApjPiCyhqcrwlvXiIOd5DIVuSu\r\nsovD8S4A3bJPfxEc5P/YjMq8iJqPr+6NXJn58tiCX4a04JhD8V7sBcFHb0Pg\r\nKxZNjX584abOSuZZC/EpJkO4Y5vsTP6KuErMmC3zFwOhYTZaXFCz7UTTuUx0\r\nzFiR9b5tLHtb5VU+iMgKRCdvaJYJHUZSip7vs29hJ3Y9CQfiO2b/j6pXe5E2\r\nRHFWrLJtsbq3PfnAR2eCEY441h6pK2T2IJcjipWwrEzk33xJInJ3f4q+syLQ\r\nWBdOlANVvDlXSBPbbzZX1zrWudNC3MBdBMjXpXz41/DpolsQGMxEEFRhq9WB\r\n81ynaNYxnIUrZOSjiH+d+Am/uJJKTdz079+zh7c7yWuPuGet3UwkWKaFa171\r\nYNbtgmtKWaTKq192mlPP69mYEKw91akHQc5bL+mCHvIYm4HJeXC0VCCeF5e8\r\neD+q2NayAgiBHm31arWYxGKjZ407jF51PyM=\r\n=01uq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f3a24f5bf298afd9d054863248cfe5af1ba154c3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.10","@apollosproject/apollo-server-env-mock":"^2.46.10"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.10_1648670490795_0.7674373543226714","host":"s3://npm-registry-packages"}},"2.46.11":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.11","_id":"@apollosproject/data-connector-onesignal@2.46.11","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2b9c73666fed409ed6a65046a77085f0e3388313","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.11.tgz","fileCount":9,"integrity":"sha512-J9WPC6VWtOhlcvOQrvvTxVqc4haa7jB8Q7QHEdD0WLzgXkO5Ugc32TXlj9dLhSOqK5squ9Y8uBBANELuwF/mAA==","signatures":[{"sig":"MEQCIFf7uoM3pU2+xYO0IFKltpMal9A/yA/hmLFF3zeJzyYwAiAfHCKeQ5rCIyrcse2S3a99KPrZWkOlLXN3nntu6X5kCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52713,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLe4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreoQ//YwYHQD/ctnXhxI61OhKmobvZng4ECqtBWpDd+vBoZFX4vgtV\r\niuvBjEIZ9+yr78qHytwcx9J6sihWI9WoGSENYA/eKkKo1k0WSDO4D3EPKFof\r\nED5VguM3oraJl+FffUSXXz+n5dFg3HaCMzdXizUpKRZ6D2N3H+v0V0eIvKbM\r\n1+ALnJMfJNnNu6A49snm3KMUVux1fDTahzRtlNbhePH0a/+Yw61XarGHRY8g\r\nP87mKwqAmnAZLwRZbhdV6KaFlwrXPzslO9zPsM1UEZLDvQW4qCgpuveIiOOV\r\noN/OPPN47apmxkrB7BQfyntXAkPOZidN78vaw7DHK+ehbr5LxIROgt9TEtjL\r\nzSrWwiTDQ9irdyVFN8B2fu9pIgsKVW/JSQ+hSi5H1oyMUvgztZuUvJ37J/CY\r\nRLQ2LQTvLkDy86Mo4a8lFPog3CPRDSPyxhdvrG+TIehWDHYJ2T6Ha/TefBS/\r\nUKqMVn90uIo0DKGIL4Qti9MOvTd54sW8p8pYPSjeSHDKKYxthrWMU37UjxnC\r\nkUy+zSyDd72nh7jz/SOGtgBoaT4Yfbp7ppDARYYT7T3RZ36HhK2zHel8wnrV\r\nDBYlOFyCPLHXm4K8OBbnj9uWiKuR1awkXMfoQjUD6rLturrtokKNgh1ZyreK\r\n1mPKGOt/FBvFix1og2hQkif5g+YSQn15iLA=\r\n=xnwA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b009e6e643b5d491633984ff2c6b24a8b6a0c4e7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.11","@apollosproject/apollo-server-env-mock":"^2.46.11"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.11_1648670647839_0.5753357032811035","host":"s3://npm-registry-packages"}},"2.46.12":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.12","_id":"@apollosproject/data-connector-onesignal@2.46.12","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e6c34134c56ae02bff510a277bfde081cb59e79c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.12.tgz","fileCount":9,"integrity":"sha512-ai0+wlD73tKC9C0Z3AO6wkWehYczFkc2gxym/krTBbsN6vwyBScnVegxMtjBlnEvd6p4CCvmd2mvYFINWoF0cA==","signatures":[{"sig":"MEQCIFJSXssRDTTVvpD7wro2ivNN/4OFwRUtfH7HZkLMPkimAiBYd+7bROEZyT5wLEFJeXbcHpYrnKw8EU8OHR/80nJHZg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLhtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQRg//V9PFhTqx/sD0KQC5biGZn9TKwY0IDkEYeJyvl544E50OqsYk\r\nf8eCqeDjxDUghHfw17TjBzmZJ/O8ZYZDFpJ9g1qyEmhNT0GJkY2Tf3f838bh\r\nlNIxmC46Flyf1nvuzb1aa5K9FLLqKO7dTkQPKoBRvBhlRTkkwpKrnUdeVT9V\r\nsim2BPXk+8dNyobejqAI3LScffLRJeu5Yw1s+/YmjTxTL8McgnWyEEIT9SxY\r\n/Oj7B9Typo3sPA8Vk+eoLVIUxPcMg74FArFbwKH+BGVG6do4P1+hK3Q00pB/\r\nTnh7essIm0UScL9n1LDpfL/nNOXkQ5Xavz8e2FqFfwInFmSliUPEMqB8KKAb\r\ncrcN3UmRsStJ94562ORcCOsxWs8IayLt7vVdJmn7/52FgkgpNgF2K5f9AupL\r\nf4jbm6xr1B4IF8jGJ+wJ55BSFbGAAG8VakCok6buoXaTIVNuAWfRLAMaEDE1\r\ng3ZAzIjXiEITTglhkyNoPJYJ/gj8jMuSWgvD01OzK6N+Rfp6K5GIJXAbyhvE\r\nu0sytg7NX1GLEaQ36BrLrAh4m/skdYEoVane7Up7WPeoT9Ref2cr9tqpwXTx\r\n42jydeQAwWP4sHvhvPf59bwHqN2OkiErlfF77b6OIylHS8yXpNyp5QX600x0\r\nvB5xwLRsJtMnz4ghhy3GvhUx+HIMuGhUPCo=\r\n=kJhD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"fa8a23dea0b9b8aac3bc51bd7124f9bc102977e2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.12","@apollosproject/apollo-server-env-mock":"^2.46.12"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.12_1648670829339_0.35373382419990973","host":"s3://npm-registry-packages"}},"2.46.13":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.13","_id":"@apollosproject/data-connector-onesignal@2.46.13","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"42379ee13464622a80f09cd3445a8dc73c87f26e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.13.tgz","fileCount":9,"integrity":"sha512-dhLshCjCuStaZn6Xg2QQNA/wp2lBQcsveZ7KfVaoqOPfY6bHHGgbt7a/HgtNRiytYKXsH4dSj19EleQobHjidQ==","signatures":[{"sig":"MEYCIQD2nf1Km6SATtf4SFD4XKLCr65HMsnsVZvkhaP7yRD1AwIhAK1mUlvgOh8tcti5ZbV8OPEfRm7Ao3JRoGtD5Znu0yv9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53093,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLkzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6XA//Stbfs+im5JB0czVFMeQyPTQEIzUB/zXwz6Z6Cl0/r8UGHIzB\r\nS09P3clBBwCd8eruTWnjPjLbYzq00IrFwteYKAAXnSrjRVoLpA783BnT7ldz\r\nwACa06j5eaWKMSqlMkYEzh3B0Vl/KSRuJ94py+Ic7fIOYYkX74MfKpfYI5HJ\r\nwe2NzoVpmqNPGv/Xm9Hj4FiJQF+jpamknrMOH6qqwSHBgAnXflYCuCqW9FT/\r\niU55RXeUpHigx1uv9edPLQaGmruGySumSUVOtp1bc25AXFSwfD0LvHMTBzbZ\r\nYWytQavDDy1ALcn+6CsiYMAmJJ+In1FBV0Tq0iZuBcx2EiRTexuQivbhskd1\r\nxzXz4Eh7VHvQuOjAOdQ95P0KmeMzf5g1StcqOoi6vMsGgDZwX+9VKU9TbTKl\r\nXyn2XNF6BgC9Uxxu5EthVeZhmgzkKMoHNNmwQpkZ8dAjc0D3+EKKUuCwYksK\r\nrYq+wJjj5Fi1KwzmO+jzMEb0MMI6yzEL0n9dZmFM7HE2hmrKQzxWwfiOIJ0e\r\nHu0nPyHL3B8P4g41MwbWH4OhG4pyVBF2Nf0gLhSbeKEFOt7EQk/R80bI18Po\r\nfJUF3VPYGxQ1SXGo+K702kxdoUOPJ7Si1Ml6MEyba0CQIHqEKTa+PzYzIqpc\r\nZpf/qScipzso3OZvO+WioQTX/2qp5hUIICk=\r\n=1hpK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8840495b04613d6e5d609047b8626637c2f38696","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.13","@apollosproject/apollo-server-env-mock":"^2.46.13"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.13_1648671027122_0.7176527801281016","host":"s3://npm-registry-packages"}},"2.46.14":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.14","_id":"@apollosproject/data-connector-onesignal@2.46.14","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e68834cb5bb130d8c3d6aed0b31f58a3f20ac5a2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.14.tgz","fileCount":9,"integrity":"sha512-PSUEXher12cfNUHfTUIM5rLhk+Mh08GIWDHviE/m03eDqZcEytUcQNZMoLpPJnCaUmEPcVEzrTtIAn5H60YjEA==","signatures":[{"sig":"MEYCIQCZR+e2mjQWCTQgEctai9JD6vZYpkHKhYvpZ4Q6aPWuqwIhAOyEudW9kgCpbp21uJm39sBqX8KIMT62gtq52qms0oRo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLnnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpqA//UCNN0AEFn77Owcg0kbbNpLFevdys+jZuX5Gs8bUSPdmqCTxq\r\n3PyknYfMxKSsKVIHZ0cqE3Ya3noDuVCuI6zV6YFBRHj/ZIejmzscqQI7Y70E\r\njK4H3vR6TAKjQcax94g0A+ziLXkDjoFxi/DnHXvi/xBFBL6MtAfAeUAdEk7V\r\noSZmG0AhquUokTTibv9MbwEAaLZe+MIBWkB7p3VzrEspXUm92slhftzp1Jv2\r\n1ffke5U9PneaVVbFQAvYVYmn3nu27u5A031o5fIAbHtL8S7vwYXvpAwhnX54\r\nCazhvxwPUzb95DFuK+EycZTWZmKUlgywgWVLRG62pCVw7e8Iaq3yr+rZXiuz\r\nNSSiHp6Jcc5fkd54UtGdF6zHGnSX+z+2ICk+sSURmyGkbzJ0lIts0Txi43OU\r\nNR4+QQSdYVtWpXQolPioPovvjJ7tP6Duobfon7aqz76Dh4HE+VtNqEoTVjP6\r\nQSNLWBCIgMdzS60TzD0JW/wwmzlz4mzm4iPagZb4jX0dMLR2rDwt0svky8bI\r\nlifZ9NwHih0p9by2mfFplMKVzy2I+2UYVBkW2J+Hl31O7q0QlLmF5too+RVK\r\nDj8y4SCnynZp16Js7XCY3Itw3anU4sqjsVNmhN44BV0Zgb8Amx7P+PLhGSig\r\nmoWlUtfHgHCxFAEiAX2F5AjedxhD2f+E5Wo=\r\n=/5rk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"4b7a688d787bd30e60c77ee401af83208f65969d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.14","@apollosproject/apollo-server-env-mock":"^2.46.14"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.14_1648671207328_0.8393267792586945","host":"s3://npm-registry-packages"}},"2.46.15":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.15","_id":"@apollosproject/data-connector-onesignal@2.46.15","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b203071f770bcc129c1f7f01dd4b0fcfe48c23a0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.15.tgz","fileCount":9,"integrity":"sha512-RuGv7UldSLGM0Dj6mgWXwHeEN7Cg8vbiva0k7lk+GkJXZoktrK49C8Sy5IHMHqAMopvpRg8sczmbBlMkKvmVVQ==","signatures":[{"sig":"MEUCIDCLNTBUvYeo1yubmm+xwADcGIBl9qjhZG3fZB/bc2GlAiEA7U/ESncGEBf3oDhAhNJV3lbpcH7OFY4gZbNI8HhBbS8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLqeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrE+A/+OW+uSlzCCpqvlgatavF7TqzU0sjCfbuEU/Uq9E8ka3HYGnd8\r\nOYLEIeBc/5O8KtXNhphrJmgGxDTp9zUlux5J1ksa39HVFloIz1LVoVCp9xmS\r\nNE4cPYLEgpcXZpaxBc/D76Ltk86qgplhInoV2jYA3Pls6ryB27p8rDrHtygc\r\nh6Aq+boynMAbWGT1+RUxoyTarp8C1YFJJ2yw+meRZepFkE1AtXvzXtEETUVJ\r\nuswsRdnycLF+sxhpxL3zSP/vR8SKd1w3NR2zvaSMTGfjBFDzme6cHDEXeRJV\r\niZV2gtSN0hqIeJBDyCeXxPiLDUY+lz9DgU7Z3x3KGUJKFB+J7dKlzWqIrYFl\r\nkZUO+g9p16cGlxLnzxB2P0e351JAheRkzbot6ebWBGfKSup6tCU+JFPDAEZT\r\nrjIPCER7BSpp4SeKt83hBjBZbHMCx24H+mdNVIc+gTc0gEwYKWyuN8O/w2At\r\nY5q49R4EGZge0G+L2CzArPfcIVW0RtIsW5wIGlTY1A31I0XH8VOtjwfB0JNJ\r\n437zMpkamL4Kk11quNYqbTyVzhvxKau+zLLGB5ddSarK/iuL+pe6QOkn46Ps\r\nDf6bjTf/39j5ZF8PbsKXroVVsXq3O1963CzC/WqwjTxOarLBUgPg/34inYP9\r\nPBJBkYn5ETPxc/WKSJJTKsxOohA8SMCOB5A=\r\n=Rb1a\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"81e8ccd71efbac06ffad1ff05cc658e54d3c0a52","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.15","@apollosproject/apollo-server-env-mock":"^2.46.15"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.15_1648671390514_0.558613624124324","host":"s3://npm-registry-packages"}},"2.46.16":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.16","_id":"@apollosproject/data-connector-onesignal@2.46.16","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5b3bdd165c2daf7138b0773a3c971da62478ce09","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.16.tgz","fileCount":9,"integrity":"sha512-7OEdb+N8gRDHyXqjMKZpBjtIHNmlxah/D7ia7+4WlopQp1+IMvCsXYdT6PMYTO4IpdfqjFjBD3IYcN99DBgZ9w==","signatures":[{"sig":"MEYCIQDgBycn+i//i3Dq0MPDX/CNk3eKXzFDYkOBTwKjJdVV6wIhAOXgNmbj09MryDqU81iqcVM9UjMHVj9kH7FOc+I/NVOR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53663,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLtNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmql+Q//cwGfgcFxQAovQ91rT1bj3twwG0LspLKw2XRtNf5Iz4YJBObR\r\n7xCtIdc1f8Pjbtl0lBZogZQyRPL83rtMaFGANZ2xSPbUnXG8l8XmdpWy1+yY\r\nUvGIWTLKV2N/uq2cpoAJwI6+rDTpMg49574qYRt/s6wlILarKycJ4Wfd0VeY\r\nNsdauCvlyUDdW0lmMOtNxzwlP5fYrmzSGNMSa9SxBPZjGeENiHN+bOYPQ1qk\r\nkETaCyiBTmbF3rQ7g0sdfxoj/jO7fJj/3GSDSBC0dC6+vTiQlj19Jo93H8M6\r\nE0obfyeXhLh746AEEf/4wv7X8/eFuc9NlrmGT2/CXik32pcRr8G0n0Ih3Knb\r\nvr8Zs448wzMVaVpYvU9YQoCuxOzhadSZ20A56/d137PVoNjYg/5Pcd3UbCvN\r\nPr4wv74WL2PvhCeGqOdb2GXjCzwELEIGKryFWRZbN6H9tK8TDuPsBYWfl947\r\n8sDMxyka/V95Rtvo69xxRXkJq2FgYaYpCotKJ9y0aQRsCvhB5LhLvgFY6UHy\r\nqb2wG+GNjb5gd24SIl817xx2CZs6gjX9xSfdzDE2e2sltWaA9Hm4rDUuIQNJ\r\n69S72qVFtqswmRvEVdTS3CsDl7kEPJ2ewiibTkaMiyxRW5vrTWm4pXmfSmCu\r\nXqLNPIwaCvFsYFnxwhCwIL217ZvTcwJuH+8=\r\n=vK3z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"01ba076f1a3a4dbd8f845da31249ca0a11b6dd7d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.16","@apollosproject/apollo-server-env-mock":"^2.46.16"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.16_1648671564946_0.21278965887510148","host":"s3://npm-registry-packages"}},"2.46.17":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.17","_id":"@apollosproject/data-connector-onesignal@2.46.17","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"88d8ae31de523c7be8d9d087dde2a2f598998694","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.17.tgz","fileCount":9,"integrity":"sha512-x7Yhr+KF2Lsd1xmdzOmlgjUVJhIY4Oq2kKznhxfY/Bj6zGcS4sB9ifJXYsIZPP7F8E9OunPmd8PtJrCv1SDFqg==","signatures":[{"sig":"MEQCIDuRCGAnzcjI3d8mFVJo0P+S4bSyMoJslZoKArAYWJmrAiAnW6OslYzyhbtOPzWouyCGOj6vrSRfwTQ8Ig4rls7dLg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":53853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLwxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo43g//VLjUD4Q9jggI8izMc9AgX0Re0tQdNG17KumkdNtagwxuFXVg\r\nQIfbCAc41mRNj0CUBGKJialapQJGxF7dlxLB0wWWSyTif9kjY6W0HGxI32+O\r\nC5I4PcvngPOp8b+ZfgKvF+ZFaZ6ViM1+PSvXh3QxzYi257XNW39OYYETwYtD\r\nrNvX7iEHQ6GNgLC5j2mNkElXGcamXJIdtMGu6IL0R03PHQq65mlXmXf2rzQ4\r\ntFC1DIMPvWPn3v/5s2nOULG66HDMyurKO8FCOWyil2/NlG4yeuNFADfXlhJ3\r\nhlVcpaK+053KUdzzpIeyx1zk9rU0TI56jP8SH5NmsyW4Mz8aDbyBujMEqv5T\r\nwiatnCUUp11aJYOlOf82YDd5j02PgioS3OPOTgxXSs5W+a0DHLvuxelzwtD/\r\nSKgEDHFV1JANuQy4L9xCUrwfzv+jaNHjvhbAPQo5qv4BkRNzcd+i9ciEGMEm\r\niDZ7VtjztO7Jq/FVajjNwgi9WZTQqXVW+lKRdY004fbypbALFeowyY1GeY+F\r\nPl0ix9e5erqQNGOFrQVBm7igcne8KxvvBF/B0JMXxCK9SXp45DZ5VaCSEUya\r\nc7zJlSLQ0rMB+HMH2A+ZQ2axKbsi6O1lTWQzQcx0xwFDilLsX2XDcfzrvt1p\r\nehkRe7jPFbQmQ8W5Lm+H6bnqDyrlm3a31iw=\r\n=gaMU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e1b5312728d9219120fc8db06184cd3c94b338dc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.17","@apollosproject/apollo-server-env-mock":"^2.46.17"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.17_1648671793843_0.07439238108014568","host":"s3://npm-registry-packages"}},"2.46.18":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.18","_id":"@apollosproject/data-connector-onesignal@2.46.18","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2ec8d47f16ff4b35e3dc4b58fed25ee0d594b504","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.18.tgz","fileCount":9,"integrity":"sha512-BGUoidf93mEMZiFeMV7IRn/dWmKeT5XZP9gIh0dQdEqziby3Of1AqwGLMhr6wDVNqByyRl/mbNy+w3Sy9txMWA==","signatures":[{"sig":"MEQCIAkRTAejt5to8QHpXAQwkHS79pIQdyGqCeBvbN9oSXUlAiBKbENmiQt0vzHnqzC9DKcbwPw1MJwa0LuRCRosDHYJwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54043,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRLzWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDihAAgEdBAS8BGo5TV3dH9Lww5cRergMWmfWtkBGFFxrvgakqeznl\r\nqubtM/i05IRSOFbfPLw37AYxJU4IYfcgBBZxaU89Z/PTSBN4nLAn7wRq6UMa\r\nwioZl8Q6enz2UlfHiIzl9L1G9ZGKWtWiUnIgQwHgIWyiaoSHbE0VZJVPT9sB\r\nipVeoodXhEZrdUZeOUMJhY+PoCBrxzsHiebkQxj+/jGuFFP470/zBrtZdBZw\r\n7E9HKETi3dzzXuf2r5BT8uEbEDCWSiIquUOlDlitxXQ142AxXb0Q7sZrO/V4\r\n1G5c6ZJDF4uqgbgreUET0uV2rrS6PLB5Qv7o6EHxUHeFrv7WnmIJCjVJ5jve\r\n51aeddQ5yTNYjbiuNFc2VohFpAlBMiFTxvrdcWT9gmq752fcDwUyPIQMz7L0\r\nkQPyjyNSHpDXWx1btO1REW+FAN00saee2ncA0nyxaN4b3bDrm+ItSQceM7SR\r\nmgvR084sBUo9PZTGBZSyOu6Lw1/CI72jX+gI52nqTqrGwF/LQbvPFCjml28g\r\nh4Om0ZFBkBSv1MaHFzAjh/2seRZikjh1L7aIU2Anehy5gHV1jnptOgxFhbKU\r\nqEJ9w6hg9eJOLU2k21aDOJTceJrKIWPZ6zuTHac8+Z97KdhAscV67XZJqSYX\r\nLA9O/GMJHMrMNPspjaL7OkzS8vKvhrMT60M=\r\n=W9Xs\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"33d4839ca5f9b235c3ed7a62a4b0d4705fedf82d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.18","@apollosproject/apollo-server-env-mock":"^2.46.18"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.18_1648671957866_0.07459465398149412","host":"s3://npm-registry-packages"}},"2.46.19":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.19","_id":"@apollosproject/data-connector-onesignal@2.46.19","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f085135816441993756ee620c0ca2d83510be30a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.19.tgz","fileCount":9,"integrity":"sha512-sRgvma/kmv4OFojoQTrXoow2ivaAObblBcvBPJnttXrfb9/BUo6Xpdhyv21uL1uluG7RLi4UjlbDMovt+2NJ0Q==","signatures":[{"sig":"MEUCIQD3FADrSSUPJSsL+vVPAxFhFPjSbfm8YZcHtLjzfzSnIQIgSAVc8hOkPt4gXBgu8M6uk/VfCsV8o9pzvc+hTPo65q0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRL2EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGQQ/9FMHpjnGVtMilauLlPgIoDdpBq30kjrj/U+cQNcRPkLEevwfZ\r\n6gEGkhIfN9fcsC07owk2KkhyagOzubrdM7Y7p2zYfGOB47JltVDvEiJIyL5a\r\nhmF3Z3VVqyredIaNQStEFhjNvjqMdFrEP1sZ8di+JIkIx/8VX79YTS8Pjvym\r\njKYxTeE9ysQjFaQ1c8kIitkKHfBmStIHeGhqIbwMu3qDULonMd7pPFskxCLE\r\nzC8Md0j26oPF0tkdCIgLRXxRSSAWQNVf+TAnilLwftbN9r2qeYPdQ1v0mdqB\r\nwXnkL5x7eyhOJLrVjIBv11uK7Ax6qm8qKnyly4JQLNuPjGiADXOj+W9SG1Ir\r\nTmkrQxHE9+9V4aR8gR7qrzHIgj2C3JN/llXk68MMTD9RsmTtc8KQ5Bi99itc\r\nBF2SQ+/UKhDxpY8gs54gol8wwkg37hzdhTZKZEYThuWcbsoVt03T+TQXEA7n\r\nf04QxpdQ8Xt0mxfj18zVmNnwBsA8UaJWbggKkcLnt5Zq/T0mNbNl5sP+RmvM\r\nLWvYMuEJLN8Lgd0/BaCGJrNZ6UEg1JwhSCH1FW9LWld1dBirs2I3U4ZtH3Hj\r\ni9/8XPRr52SmBc57AJGwM7HVPGpjQNE8Lw4jJv9tKzzWOXOkm/KLOcZlteMM\r\n0qGW3d6ukY4bH0U/jplhwIP5QkbEUCt89Rg=\r\n=70IR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6099a0d7109442204c22fb6c21ce58a34107e223","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.19","@apollosproject/apollo-server-env-mock":"^2.46.19"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.19_1648672132259_0.22245470966199243","host":"s3://npm-registry-packages"}},"2.46.20":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.20","_id":"@apollosproject/data-connector-onesignal@2.46.20","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"98c556bfe5fb0452d2b09ea38c528fcbe04a9823","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.20.tgz","fileCount":9,"integrity":"sha512-srlrbNaxFMXA4Zk3VzJhHKjruxUuONozyhY2fJkfHAOXqV0YRBs0+lJP+/DmXRZnNjF/vXt/46oF+VkwMuloTQ==","signatures":[{"sig":"MEUCIQDg8aiWgvIvjNIaiJkfev5Wa2g3kpLLZOYEXRCSPciGXgIgMOHeEY3DNgl03HCHoy01sXL5yGWJ4PZliXrDVFWdcV4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRL5TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+Tw/+PU19hcX8w6frvepJH0C24/z8b2m6NZmx6EfmHJ6nyV2eL20T\r\n5yWD/KtWhozPiCEPw+aumSUY1W68r2PkiZCV5YRnhStRfzTN2lbN/xS+FCnm\r\n0+7UtH42dxbn2zkp2eUfDLYK/6u82fBXPqmJPPDEg769fgX4XPpFDmZXH5dP\r\nATXlvzb3fzMevB7+yPAYwY63XxdLtgAGH9dEgtRdf1bbuR00zr9lS+EXiEgm\r\n3g+7AjHUqHWBM/8DpltjRlYZ2VFo8OISbaUuEV8kcdafElIL3mMH7i6f+sRU\r\nNEVdH6OPhER10Tpt9IXuOX4gU98fU/EJjWRVybpAO1S+ijl5z5bpqN35kss0\r\nnTE6gn76Y8FqqlaoivgAM7aJ5NXs4sYt0kZwbwT94mdZfDXD5TuQcGgwXiac\r\nO45Xzhr0nYqK7lSIOvj/YQIdfNVNGn7UVAaZ6v0uwx3NJCTlBxIFWC7k6/T0\r\nwxjjLtV+6fvw2LXIisFcxfojqO1U+WXSHgKflkV5QZdzXn8ENCmWUhlwBzmV\r\nmFLnUi61kwWBytiqkSkdlqRJE4r7QXVGlisvRKWRjc1tUmrmC6BWCblS39oF\r\nv/CwdOliiHoo0kTfDaWd8pOaFecfcPem4wUYQmd1npl6qUoqe9JJ9cgyuKwZ\r\nzSJTbn1yfzjiIZ1FgzxWctTLNS4p/xn2Zq0=\r\n=ouQE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1b3801532001d82f81bcd9284f3bd45883a2c0ad","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.20","@apollosproject/apollo-server-env-mock":"^2.46.20"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.20_1648672339512_0.5150965890674135","host":"s3://npm-registry-packages"}},"2.46.21":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.21","_id":"@apollosproject/data-connector-onesignal@2.46.21","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"29cee5305bfbcdbfd0d82ecd830737c15b9eb922","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.21.tgz","fileCount":9,"integrity":"sha512-Xr/Kc6Kvl73gxkUQXp1QO+1xa8yNMRN3KSJr0qN9FBJ74OqnYzAm4fFeglhfzeJaw6H5RSKsnvldt5IGzTcWVQ==","signatures":[{"sig":"MEQCIEjpGQgjlVLQWCWeHcVkRhBVyhYQ/vBfVkuY4ej8l2+cAiBzl0IUSre6dR4OOzYR6JNG95sUxay5SQ7r/uQ6nI7IRw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54613,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRL9LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1Hg//fp2LollK+jo6Msy2pLyzzkQiogcHr8y3Cd0R/rIvGIzGRF+O\r\nLa10rjwgITgTELnk7exg3RnPa6Z3AowP1CwPURNTqVQtWv31lSXcpy/08cbT\r\ndltHcnXdi0sVKx9Tz0tF+TAqwTtlBUo0g83XTgNoDn+4WT9SJcCnlvxeZ+JY\r\n8MqFbYTDh+n7RwL4eIEAsb0DESwZQ4B2J0dST7Qmv9s2eZkoSt9CrBRvY2QP\r\nNx3YqAvd9nN+kEPZnXHLgNc0zIeYkwFBZxYDHcDPQZdu6HJZYs51Yx/PmnF/\r\nBPf5eCzWWfuNdaZzflmcqWmY4NeRm4+9tK1oAWa2g7+IrthSCUh45spcrQDW\r\nIjJTCFQbvgW5N+TOkVTuET1QFBWePZW5U55Hm5+n8Y4eEUfqa8RzNq0qeTdv\r\n4Hu5I3G2dj1J07hBIhKpB9g/ZtbV4HgtA9fbFcup95YRZoVaWdcg48MzyxeO\r\nS24shlvEOGvk/0Bt4McFFy5o+6IRcpvU7bvhCiQgIFcoMcJ9NELU8rZMCJ5y\r\nGoM9qi8BHxigEzOPOPdEexzCepJmtuArGFCRpJZFwyF0US/sacO3XjD2mcxL\r\nXa1JC6mwXLLN+N9pa9vg97+kUUujHnFHmJsnmU52bGe1owPlHbj0qEBoWF2F\r\nW7U7CSM+bekukKmepETrBOprJLfOjnBvYMs=\r\n=A+ED\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ef31e18fd365cd07afca135b79aa2d2d7c36910b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.21","@apollosproject/apollo-server-env-mock":"^2.46.21"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.21_1648672587728_0.6166563563203917","host":"s3://npm-registry-packages"}},"2.46.22":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.22","_id":"@apollosproject/data-connector-onesignal@2.46.22","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7e4246486aa3f2db7a82f266a1854be20bc88eaa","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.22.tgz","fileCount":9,"integrity":"sha512-y1b0epECl6gNO8aQjJ3PtGlCytGb+JxgvCb5XqzJHs2Vlh/kxRhsXMDpxbvuKDp8/7mQbn1U2G7MelZsarCEJQ==","signatures":[{"sig":"MEYCIQDWTM2sW7yF1xihW/p9N9EnvLyK9HuQujFih3dCxvdJXgIhAJIlw6tTS60Mbm5fGd8RhkHDhu+l8savVFAsOLIX4d9D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRL/2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNlQ//b9VqQgDu57689LgW8ptU5VPPqmdgKuVSwdsd271YOUJ32nwM\r\nUEMkIBli/a08eeY7fA54ZR2CjtygsESaBEzg4m2qYTRVQqnwfyHnPOO9M+33\r\n4dWqZSL0B44/FaIGZtvHhgKsarEFBE/IKp7LYpbymcJP9SUrndqiadDq31s1\r\nkkHPyNZ5F0W978wbXpfSxwBZ1tBcbuuwZkFmg7EM5vduirGJFaGXQAnwJkco\r\n/mgzayHYbv14aM/AXcgWzmMDSxHbe3md2estMzVxI8oZgFU78MK9MJSTI61z\r\nSzotCHrcB50dudSn7rLRpnOCndEsZmh6Vg+ObqaTvXHZrY2CESsLdEwSgpQM\r\nvydrrRK4RaTKPtaWTWHIlOHw6annQpJoYTaCI7ugNUOn3J4ySkgVybDoTF0b\r\n890O8RzcXs+vl0BE9XEZ2b93Iib9R9pazXOEPF1ArVBK/KJS75erzNASQmFF\r\nlfZ4GLPuaGb+0Oo/0PfmYsEjL6a4M7xLs0KRqjTj8Z2+f2+Yeex7+AETivPj\r\nABsqpHQR5wCINtyHC0KCMbVQFU1A7qA789gY8eMlXBXWN0jCCz5d80+6oVN3\r\nBtaqo+UK9H/ZyWRKl6xAyF/kriSjYAl3tYvSu4rWIdMOuThRGCH3vERX0S15\r\nsn8iKPfYdp6YxCUzbrdfUm2Z2n4rKjhlUO8=\r\n=cDLV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"28f340d4aece9e5c5d1931c477248fe9b4989c68","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.22","@apollosproject/apollo-server-env-mock":"^2.46.22"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.22_1648672758438_0.08770385791024116","host":"s3://npm-registry-packages"}},"2.46.23":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.23","_id":"@apollosproject/data-connector-onesignal@2.46.23","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d2cd8e101bb8be35c749a10f5630ea4a475951cd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.23.tgz","fileCount":9,"integrity":"sha512-LfUSWPlTzgUprZBPaSrMRE8FFO5BDzTMelHwBJWM8GnTfINyW53oDbSq4DqlsnlBqtANUlH/ExjjeqdWvrkDQQ==","signatures":[{"sig":"MEUCIQC6XV4iJek0s0tShSEVqwEZXnO+LNU+8v8pvC4nT9CPlAIgOanvMou3ngU2/FAHu8cLWoxlg2N1CUGBpaQwjde4Kbs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54993,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMDTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/zw//edc85Xa1okk6BjS2UWNJl6H/VxDwDMH7XvCRSmPCf8tgMfht\r\n29KbeX9a3lF8ALuB/B4wLknmIlwZWq/UBut2mud75f61eyyV/H2WaGsunTqa\r\nb3yy+Ctl0eCnDS8sI7JVol5wKROZIpEyZUV/bOAd1p7V0SkcblCW+PCQVEl0\r\nsaZ5TZBEgP4lDGNIThqHxhnrXXWUD/VpOwOcTNpb1wZVfxJ1yGpb660muJGn\r\noFwcG9qKiC13hSN1ypgS+02qU45FSTt4/IuJRcnPtmRR2wHi+VZ3Kmzhc/zZ\r\nPwCNGiDM2f+EVTdsCd8GNyOBYOvLKkCR7IVUxNTx16QulzITQTky75Z2oeNN\r\nX9qn6wIWQgOH7LOWggvG1Ngbv1sTbq6xKq+asvE07ceOvZ23dsW/xvVPj+ZW\r\n5Ckruu/1QWi/llSo/AjcEoUB4d5vuLrUqwdJz16sbvsJ29huiObeAeS1MJ9S\r\nhcU+qZy2QHTkmfzQyxFnALjRXiY7MVfWTLxC7MimHjRCIXBu6pB3k9xMCprr\r\n/1rLz/OC7ellAv3T8T/CFuZXV3Zs+ctF0705ysQrU3PEAWGo7BO2T99rIQ/g\r\nGx3gqa3ym0UehK/5qDO/V3i5e3y7K7OWNeecgQYBdez2FXcTYKeYqRL6Pr3m\r\nV10qQHHS3SgRMWm/MZaQSXyre00Sg1EPNEQ=\r\n=n0vW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"815df524cba010a1b45917d1cdf98793361267aa","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.23","@apollosproject/apollo-server-env-mock":"^2.46.23"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.23_1648672979348_0.6131342363248977","host":"s3://npm-registry-packages"}},"2.46.24":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.24","_id":"@apollosproject/data-connector-onesignal@2.46.24","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"33fcec900f43172249512e785beeb0548d89eee2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.24.tgz","fileCount":9,"integrity":"sha512-OMCgxeFwPoHdNjkFflKKuxr3f5N6jkAv/74E8ti3GqQ4sRAMdjzgAfomamgkHFItnLw/eWn7O5yb0wbCx1ACLA==","signatures":[{"sig":"MEYCIQCbaAd+ucrBnA7LkGMSADYg45WSyxFHhNrFnfRYz5oE6QIhALxvHCcKr6Jzp1eIxv/m1i2h53Av5+QRiLIo6N6kgKK+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMF1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5pw//QnKoebHaG8eipj45TzWAQurMvYClhwFHfhavW6vyFcDUjilt\r\n4/ak5fZ0w0b0t60ZApFDrDfTFqVNeRsYhOpMNtemWspk8BIM3x3WJ+lZOeuZ\r\n1e3pjCflWT+H9UXqWEFF1YNV+F072/Dn8FTkuq4pF+BIHuOezJ95ezfC6/Eo\r\nYBP4lNn9Hu5oZpJg6/V/s8gQ4SWlmfWD+xrHUfc0J3z3yZiPGpDCRMu4WVC+\r\nUjjrG5fGX2aAZrva3ZdJ99s/il65AhduFuZQ5+Szh6/Vxixn7zOtvSZ1m85o\r\nXaEuw/Orz0OvLS5x7OPzbHzzH8eqM4VEgFv2C/xdJXJA7dOUH2TwzWV4ISfj\r\nG2cpXTmYc7SwS/ojrxWi0/YSzZto3t0/syehzKi5Czlpf86M3cfB18slOIcB\r\nIj+5wSSJb96PUNOlsX4dpTP3Vf1lFo3qj+ePSqREifF/Q/ezYnT1rFbrZT/w\r\nXjOAr4KTgLUXRWQtCqtOimU0jUHUV6PFWssaXKR34e7QixON4y/UWNQlLn4B\r\nWMLTPK1p18CPlnX02SRt8zJoWPs0np7eLIE2OuxabNBnHgQ7v87LWYXR2NoX\r\nhF3PAByX0lXEW66rKr2PdPNnXdhLoRPIPjoZVmPXdtTcVQQwo6JB5l1acIV2\r\nXZx2/VL0RS4m7NuRCbYQ/LMYkTJ9OJzrB9M=\r\n=wIj8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"18407b6418215d2cd9ee12a2101a58aacdf441cb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.24","@apollosproject/apollo-server-env-mock":"^2.46.24"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.24_1648673140961_0.42061689643195166","host":"s3://npm-registry-packages"}},"2.46.25":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.25","_id":"@apollosproject/data-connector-onesignal@2.46.25","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e6652e8b9e4a1b4d98fb8080c450809164ad1da2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.25.tgz","fileCount":9,"integrity":"sha512-fNQWmNjzEMse7G28n0T8rTybkuvYhhGAHEryFWyuGAACuFt8T+wk8Neh7KzyIQ3s2bsXBou19axoyW72Kgq0mA==","signatures":[{"sig":"MEYCIQDV0J+H1kBX0WTS57T9oPahnZ2x61KTpN10/6VFhQE84gIhAP4QpOSh6Li+EzYsMG2+T0+Ld/lLN59xGfN9Ime3ajRe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMIvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYwQ/+Kvv0FQcPyyRLQfH67FZdwvof+E4kqLe8Ia3ncN/4lf8ve+LI\r\nvM5foO7iNqRQsjpW+lCQ70oZXvJreyzm39AtMRIBLOhkI7M/ZynkBdwrMZyS\r\n7/9WiHBcY+ACXrChV9x2Cp5WpgvMNISnMBCe3mP5U/u6RjvLqyIK3FhICqSJ\r\nVG6rplUsnVuO+v+3duEVLf3ENa7up0bqbTdPzR5SfnmS568/vjyVeDv75bes\r\nNwNIQ5MwCyOXhDykRB18JWl27tIHLZ0rFg6+sE9eSfnxfo9D6TYyBhPG/1Lp\r\n6T5gRukjq1bB5TVZvqPwU0SwaGJBW+qllhc1l1R8XugAb0HmzskSyle3X28T\r\nUTyzDe0/r072rIJPUoSYJ1u01oIPHSPGhZjL6gS9U0ZduEE6iO0c5AN/rstq\r\nV/Q/Qvas8jNOpNenEy+4kQzjoVCmy1bsfAjnDBWPWFo+SvlpC7yoxhLR/EXt\r\nZyJZU6EZE6CFLaJ0tWChN24kpPjq13WCdsGK3YDVc+nuAwQCmYRnF0CScibR\r\nyXsaMGoU+gOv/pAovrKbS+sVpEhNod30Djx38uurZ8h2n3/cG4khzWLqYber\r\nrVvThAXQijB0dQcbTjAtzkR9+i0Hr1UfnoAc8lfz0JNH6OP1KLzfjZpxZZO4\r\nQTRvwjsQw+kVBmvcgmq5W62WAOPEbrkpwQ8=\r\n=4/V8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a89fa6e3fd3ba4a959a33f8733d9cc917654dfe5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.25","@apollosproject/apollo-server-env-mock":"^2.46.25"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.25_1648673327061_0.5571113016687086","host":"s3://npm-registry-packages"}},"2.46.26":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.26","_id":"@apollosproject/data-connector-onesignal@2.46.26","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2539c6655f669ee278dbefa807f43fe63e5002ce","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.26.tgz","fileCount":9,"integrity":"sha512-f2zpM2fInkhptpFuKSVyYjZ5UVpeAxpkD523/bH1ZcuZ8/xh2F/1gA/LjgWL7jkJzF8g0R/F8hztY9R4jwqGIw==","signatures":[{"sig":"MEQCIEBLc+UuP5EGtL+1dzWjL4yZ1qNhT8p9ulbThAZsk3E8AiB+Cws9Ss0ssn4bUd0uriPZT6r5ZWfSXT9AfACQ6aOi9A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55563,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMLxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGRg/+K9KILiK0Pt4yyeOT1nf91EbJY+R40/2mE0Qyj/gTm0CMgG/1\r\ngNDn0LYG91qPXVeKzJ+F9gCxKY+5/S/fTASBt5BRWu+8POnDuv8GpmJtqVGQ\r\nvTtkkbgFUfEOvW4hr8FkRURAKjfKJxkKZl3SaEsfz10v4locqejl0/M/T25V\r\nkg5VbiFeJadUS5booJhP6n34cyGJGIcee57bkk1G9HkDEBcU5VEOE2yHN9e1\r\niQ7RJtFq/wZv0c6Q/w9UTRIe3ULVEa/lFZQh7QZUa6VYsq4sSTqNXSAvj/Ad\r\nxhxNi2VKZK0H1i9wOr3xAaSfYlwUWVRr3YzozXpVBEJ5Tf8pkgmpt1wHUvQ+\r\n1llntWlp09ck4Sn37memIj7Pl7a0B1+HYYoHYaIub6UrhRlFQM1KEooIkbpb\r\nxdCnMyPwhD7R7uR/amhjS6T5ApV5XsZQ2YHDuuU3uzsbYRDN5azav38u8pr5\r\nrtF5zfrD081jeNcxo3M73t/H50IUeF4nK7WeDvLhUn0zmson2Pq0OU10sy6k\r\nDCdzcYrntooI5XgYp/SDPu/v9vxWvmEcDNExuR3P7L+DSJWbrtnrPFHk0LR0\r\nAxiJ23eRbZTGleA6F6tWxPCdZERJB9KMX7vbnf3z7fMpdSpNBeYPwgb+dd3i\r\nnb3WGXlxxENIFwhRmVDL6jr/G81nY98t7U8=\r\n=dbbL\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"12bf685484c50d48f34459f103546693ffb0e727","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.26","@apollosproject/apollo-server-env-mock":"^2.46.26"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.26_1648673521677_0.6320024106788553","host":"s3://npm-registry-packages"}},"2.46.27":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.27","_id":"@apollosproject/data-connector-onesignal@2.46.27","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"391144ea34e3e6fc0c4bf74edb9c54ee631eadf5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.27.tgz","fileCount":9,"integrity":"sha512-hQDNu0napn/OViVkYEwoYQtrslgKvJA/lQzXG/nJEMvy+wJW8sUyPZNot/pjI5bhrsZ/YH/k8+HzDzbXqSN47Q==","signatures":[{"sig":"MEQCIFLoXo8R+uKx90kEvMMfBNInBKVfEbfuNVbjOd54aYiOAiA9QU7X6chECnr8IHk4H3RvSnlrW8y9uY5oHb/QgHtgkA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMOdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkaQ//ZvIdA30EmIbRN+7jgVmf/bjokgd9neg1WnVk8ngCUsxrNP9V\r\nm1oiusP4ox+CYPtgcpzQJQiO5ckdUoNsnJTpqXPAXzzciT50Rl/EPnTqj6NG\r\nTkkF0zSIkD/AdF1vXIQFvPhpWm5XHjHovOSjiAlzfrG6NTsNiwXnYlT4sB8R\r\nktRzSPAxMDvw7T+ORZSt8ffUrv1Jsp5RqPWL0miW7nHsip8dCC+V6k3Y8hvE\r\n4YGQ/t+81nqzl6JSpsQ25uwc7APXPtDWk55t3vl6GplByN2b//gGXp7ZjuE+\r\nWlKHMJsQlhmY4+93Tb/LwFI0cAL1gu4ry9MIdl8ANLaw6Ckx2eSNTNza69wK\r\nSIIrlwfC0BjNZYi10Jn9ylHvsvc+1w1+34aGc0jsQ9yyE4hc2orj58K66Jgg\r\n3G8eBpyZPgTcW+dSpuj/a47zskTZbL8RKQ/extukByJdqlCJXJ8eNQaAKStn\r\n33q4WbyOEyDT9xxVo2wnCbiQvhmibeHGCBX4ksRMDg/hBbuXhkuyZC85U3ZN\r\nYVil+UrtdjKXL39CUKX3nTbmjNN3nhvvpGj6LWUo4KPNSNeg0ndnLF8Mhaq1\r\nfr2hudO6VT4El66oEk7e2T2VouF9c775YgCfFIszqa+IB4Lq15M3gI6tz8JM\r\ngPWApd9xt2X4tjYRDwkxA0p5MR41yrCb7DI=\r\n=jjGj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"677abc77d680411d8c485c50f0ece97d2d032d80","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.27","@apollosproject/apollo-server-env-mock":"^2.46.27"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.27_1648673693284_0.5666406832238384","host":"s3://npm-registry-packages"}},"2.46.28":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.28","_id":"@apollosproject/data-connector-onesignal@2.46.28","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c0ef1f20d93ac34f0d6aab22fcf3a5152496c3be","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.28.tgz","fileCount":9,"integrity":"sha512-JTwaya4ybEFhRz1zG1pKo/EggPcWwMSZ1nqcoe515+Dp01c+Zf+pDobaGJy7sQNa5yYjx4OhW+Fed/INpxbusA==","signatures":[{"sig":"MEUCIQCTe47OmAGvJvoWs02wHZkBbMunm53jTdeLZ44e8OZu+QIgY+Tqe6he2gPgl28+eXTKPIhyKFpgXN1s264MMbk/4cA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":55943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMSJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyzxAAn4ADIIFMfIR5MbUVao9f93/GtzdxAP9oWuiBNWu093TCdXc+\r\nUtCEPi1khlTnevS37w1XpYFAl8vnkxgUmbQOIFcu1Zm5OWMevi2u8AXrv4nf\r\nTiOvktf7gT2Jwu6vxf195uXwkJyDzOjuA8sJ1bzWln9pltOjARJzyF+kMUdy\r\n1Fa1AfRH4G2otM5UpdDt5zu1HDhO8zyqpOjeWXhicWXoq5rJfY5IiACI8vJE\r\nwKVL1gzPNUDSPRQGJX1fusOcDxC1lDxEyh75zf01mGZtxS2PYscDiEPwpctt\r\nsd7tD7rrgq8a0xTnyyGNPbHp8nw4VCpcq9LGuMwpNM1Mk6yQSDmjOQhLOs8b\r\nYSkWqi0TWXTbmw6RJ6qc2QuNczJ/VHiNwpl7PZBUuX4lPOwmfhsJ/rI06H1l\r\n5DjxNdCNmc4AgCj848qcCkqAkGXLPeqOcHrUv8xknLQApmPXA7sAsIv1hRZ9\r\nBT8BBKCe0JKkDuv1XT0mCC4itUqvoGqNsNbm5WTDkKyawytAHHygsJTMLIIv\r\n72EkYjOotIEvQRXIhvthrUjpOBnfGHPW+TdVevDp7auxb72rUJoai7aMgH7f\r\n8mVwVUTfbYn7Nh3WYKAdjUPrYu7zGlK6tHjNFMCRoxEdCQk2/CQuUbVbYg4U\r\n+fAgJc+tZ8BBHvCPj4snI2T57X7KoyqHAEY=\r\n=m3Zb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"5498b1c65bf9e78b54c04faf326fd513a0071417","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.28","@apollosproject/apollo-server-env-mock":"^2.46.28"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.28_1648673929346_0.8674364727179371","host":"s3://npm-registry-packages"}},"2.46.29":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.29","_id":"@apollosproject/data-connector-onesignal@2.46.29","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"27bcd2e16e7edc3784c2e6ce28ce58f1624a6bdb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.29.tgz","fileCount":9,"integrity":"sha512-xnSB0f9GDsbj3m9vFsyjKk1vaD4vP+e7Tb0d/80tnLkqX+ukmyKKNAf+OGcoVDaBLL7E+icgc6zPxqe/YYNWtQ==","signatures":[{"sig":"MEUCIQCdhf5EEn1qtiQcbIql7NtEeknXwMP9yuBM/RAVBWajcQIgV5lRKtgbSaBjoT9k83BjW0HNOnqygiP9vxbCkjLhv6M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56133,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMUoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqzrg/9EbcfEQ1UDuoq6E+pJ/rfGQWR6AYmD2TzswIkDKkM8VuDg7in\r\nTsVJZFuMHCfcTpaBBcaGyZzEz4J8lz5sEq3++CijiFoFVU1cEoV/XmilTRKd\r\njGitCUCYk1ZgH7jjOwPX4Yik8v0MWiNQpdYgs0IFVZAhfauoAy5SP04ULXEw\r\nbQNJtzMihWRSw9Y/NMMnYTs90OrNCQTdadGeieRoU00rI87NBLOGp2+taDOV\r\nDAhQlJdSCQlUeeAQIQXo5YokyWgdZxtkS6qEzPagVBWPCaOEd7B15ZlM5wjq\r\nysonmfnDmnZq4MQSakbS1gMTMvr8APDEhkrYYkCfJPPCyOVgdTftYP2EuTUL\r\nx1HMrBI/q9fXrivpzjisdR4e6m8zXI1S4b9UdiUrFbw3M6+Vohg4hBiIa1V3\r\nvQ5w+yWxLdfIfjHtsqRDdHoi+mUmJEXeGsEArqrnnpqEf3ziOl64DBiZxZ+m\r\nplpyRkaS80pj399Hf33jcp2bEHPuBDKmcT0LtYQK8NKsm1zl3EBbnEhL3mOQ\r\nIfwW2nBPwAZg6QEm1+dxsRvox/xvKX9SNNXvG6bAuryMpQt+krq7hP8daQvO\r\nGAUfyCT1Amvyb+ExXM9SBQWL4M7HwK6l0ME5OARN9TSstfmXGej51mr8s/Di\r\nmXNWqegBoszMaZ1aUYSvMOPvIN7Mtj4MmIU=\r\n=MUP6\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"67f3603a7027e50135bdc89bde4336edfee7c487","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.29","@apollosproject/apollo-server-env-mock":"^2.46.29"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.29_1648674088544_0.1727711674804957","host":"s3://npm-registry-packages"}},"2.46.30":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.30","_id":"@apollosproject/data-connector-onesignal@2.46.30","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e65ff683b7d3c9bf3a0260f05f1fd8ae5525fed2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.30.tgz","fileCount":9,"integrity":"sha512-VD/HpGvBnwprw26ZaAPSBLPsh0jRGHbEMlCqIb8t5rpJ8rdQE+czMjX2AR9K5NknivkoaWYpBx7iP8AxjpxY7w==","signatures":[{"sig":"MEQCIA1jdZXyeVFXO4rX1+Ndgx1TA4Rtxgp69nDJSDtx8hFDAiAHsVYmlU7etMoSeRS6eyqKGhQJ/OBw5U8Lx6nY7Z4mww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMX5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpt0A/8CiIxM9NVgX5lNmTptJ32fz04XK1MmfR7SsmktPzdS1ah/4l2\r\ndHaW2J0uUgaw2eTHep1I77+GfnVS47yh0E/e29FIOnAtESOangTZEl1EBPqy\r\nHb+SBlvstU6oicUPArwf1LuJjBpOmG1AvWRO+/533pXbQg7JFp66zZ2LPrGv\r\n4hZPBykFPtDOw+f/pT6UmXdSlLw7bB6sLuyek29PNR6X4rKheZPBY0VyRbzj\r\nrtu/biLT4BLfGuJTqYgAKeD8Zli8nIZCGI3F5rMI5z1DjCRvHVjl1Sx6fnuY\r\nnePnTRsrDQiaGHEuYCvBmvV2WPAcqzreq4vandavHFeubbYf/w6VYbvIvW5G\r\n0kKjxuIzlgJLNzAXGi8ortTjtu8fSEcSTbYQdhy7E/6tWXZ3a1ldEznpDmDk\r\ncni87CMIbxbz1Z1tt/+NZ1/8iYOQHMATR8yVeItXqbJMrVGr4eYqT/ws33v8\r\n2dUTSj0EYtXUSHtf1sj49726btPu5k4O54IGvoju1SRJgPnRcsbWNFv1v+oj\r\nZo7GavyWj+8iHA7x6xkMhEepIB1xzP5mqrlV5F5T1+xMhyBxEjPbS61rQyCQ\r\nrlNYa7vab9XVcUVf8+P6hk/dQ+Oo6xmVUM8FL7hDyFEhT6Vjg6bFOiucEi2s\r\nzroUl/5fXbpgSwDFfNMFCiIGNO/5EvJHw0c=\r\n=j4BC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"76a416503a2a9e4d1be745c82a2c0c93cb6331a4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.30","@apollosproject/apollo-server-env-mock":"^2.46.30"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.30_1648674297173_0.037660291497257914","host":"s3://npm-registry-packages"}},"2.46.31":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.31","_id":"@apollosproject/data-connector-onesignal@2.46.31","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eeda8123b91edf02dd9efc29841063bdc9216408","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.31.tgz","fileCount":9,"integrity":"sha512-sCLZmMb5JsWDLxyY9DqQxLJZwsXrStvphKNCJ8KlnQY3QKSgSuqJ/yaMtZ0J+JevIZCvH5L7yGfAT2P5ksY3tw==","signatures":[{"sig":"MEQCIAQ2jKP+qqDDZ4Q4zCC9ZXWFwl0yfHfoYjfSn16e8LVlAiAk+XXfAdbudircB7SOBAKpYcz+LXs+IZzTv8tAOhzI3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56513,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMa8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfXQ/9FvEOCJRJmyH75Z5zUk+mhMMHp6LsOhB3HtSTWlNmaDhvKmR3\r\nkzopXXJr58WHxsNNSivmZ4L2LdK9B7rLCwf1d3JmABVarDxhfINQOgJOQ8jO\r\ngL7kMcQszIeexsSDGCcRcpqOrYEREXMO2hkQV8JjJTb2NB3aiaGGPer+RgK9\r\nQgf1zdEo+APKrA8cb44RMI4xyhXg4JbrXbbfcs6fdbq2U7unTBPb821wlF6+\r\nJ7MCLGxHd/29dnO19twRZk2PaTiNH/wWRUxwWd+n8A3UgsGAU2xeT6FPPrjD\r\nwCV2M3Qeu8uzdaJdGbFcUFPh7VdkY3LQSOrxOZzuvyamKrUCfXYnyNaQQulN\r\nJ9T4Wxr+iSePuQqXg5c1Es2IerJ0059r/GUCcm36aN86f8/wspMugQ2xGPAd\r\nS9tHPl0xyfwXcotEgRut64NsXh7rcVxApEr+tsbIldvhOVL3CZ7tvm22gAS/\r\nWNy69rjOMnM9YSDvCK65cBKRxGcWgo4dFDOpZrZES3GJiys6m0K07DrZDI++\r\nni1SYGlaDIv5wa9N62B9FAIyka7RK61a7xfQpPFlhiwKk4FxCUKBw5rW0z2T\r\n6cRmPw3DW1vi3Z10YMgtqwoyvWH9w2kJPr3NgmC3Tx6s9hIAq5+3TXVm0AIa\r\n1uhHjZlkyt5q7reaUIvPxhnDeNXWTYiet1Y=\r\n=vQFe\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2727038d90b0ccf5129ad2fa8d6b3cfaa57618c0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.31","@apollosproject/apollo-server-env-mock":"^2.46.31"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.31_1648674491829_0.05702802523719974","host":"s3://npm-registry-packages"}},"2.46.32":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.32","_id":"@apollosproject/data-connector-onesignal@2.46.32","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4f1771be99e0212088c021c4fae25cbe0deaaa23","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.32.tgz","fileCount":9,"integrity":"sha512-+40cOn/Hy0HaICtL+DFs+NoEcGhu74VCOcRo5XCLl7qMisolcjmszcM+S+jD0tjDlqwDIJ++Wp63KcgtKCxZmA==","signatures":[{"sig":"MEUCIFZ4voQM1+S1yTXqfxU0j7ts5DbGXt9UvNROi8AJ3oaqAiEA6zQLogdUdsbr6nV+wqMHywybwBuchf207rT/dQixIPM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMdcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHnQ/+JSSTmnj/3m5BdXMKpxXvFbNneyZHQyFZ+HbwBGYTQP1/4D1q\r\nW5oU7kGZqRr+7QvA/FfVlNF38D6B+0suaRLec1naqLKf8KIk+oAFbRvH7Bmb\r\ni5WPEpMKYynqla788aIrF5mLQU6JAH992Bs+FJdH2CMiWTfw+c7DKMkeg7qM\r\n+SUXA6SuTe8TENLnPgcNAKVJgs4+2AQ5i3Y05jPBLg0CljfuJuR0jKAV3U84\r\nUwAp6R2Kw9Rx4nYNnlGBINba28mOrQ8KhZXVouvqAP+Wmakl9U4PmmYr15bq\r\nnaeFkl5w8Rmrpify52RpwQSf1Mcagdn6D0VqTdzWO7h+q8/aBSquBHv2cD4V\r\n5cvMdXgYpi1T+UebZTdwoV3/b4ZflDgcOeaOSRvzJA3VQ4GPXBL6a3Aq8Bz2\r\nZb33OAkPr/oPwNf7FLBWhsOOuyaYJSzj/SJdM/BnJnGkGnn/PwYriHDEJK9/\r\nKFjy3JT9+uAnEdxT0Ur3NfH6U6ay2aJ9Fb5B1jWCHIKyAF28BMQuWCuAYYWV\r\nPgMNHhXSGLLL1az06A7NITQ5bzbotuTWv3xxcKRoNmFhIkNXeoU+/Sz3P0mj\r\nDWqfSISdeWpsckxV4Kd7wUSh2kG34DG9xf0HJcJnjv1rdGr1HmgG4tXWyVUN\r\nxPTUULLjQ0BmxawhafhK5c7pyKpQRqs56Rw=\r\n=g0Kk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"79c3310a8c864af0a4a6e6f313453cc3b46e2ad2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.32","@apollosproject/apollo-server-env-mock":"^2.46.32"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.32_1648674652258_0.40620602862736566","host":"s3://npm-registry-packages"}},"2.46.33":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.33","_id":"@apollosproject/data-connector-onesignal@2.46.33","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ed7b5b1d835ec134380bf8f7cb5fbd6d86d9a589","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.33.tgz","fileCount":9,"integrity":"sha512-YWyviy7abhHmYg0T6AfBFvWjnp31g/Ql3fMQ4NGzrvRBezjX30Jbgz4NGt82VgSLkZawkktNXVj5zWDUFIEwjA==","signatures":[{"sig":"MEUCIQCoZWMN6xrQjWGp5K6A5Jlsvlu31/LzOdcfzWLm9xtX5AIgHq3Mgc6HbsSiyLJKOgojBYmiq9bKOSpWrjZx5sOZNgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56893,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMgXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopiQ//efWkw7E5hqD+3iOlUsomM2V9Yz50h+JrdIpNmp/FJWrYmHIm\r\nl/HekAD3KaXYrwKbkMneksUT0sFS9swMGPzY+fLK9KBo3IXZTPx6ntl4BeRv\r\nfiB8j38v7/uQsQGIQ/YoEjbx2Y3ZTsrzTl8ysy6vMDkFKZYdQFtoPLYDT67C\r\ntlyhOJ8GhfK07tJmEU/Bdv16XKiZXLmrgJU0038nbezLTIUA7Ps8O9aLxgec\r\nErwfWfCpoDbvha+EGO8leSrgQzhNHyka3yfWbsiEIhAUf2hTOEfwBA7qmGoR\r\npf5aLv7EijT/iQ+t0jMiew9AvdWd/ztEE9353tYw3QGVMpT5yZQgbn5+WEFQ\r\nLa+Qa6D/2nnQnN0HVoJx3YnRBqx+BUYovU3oQKOaDsgk51bAVZWOLCCKPbGv\r\n4pjaWgC3hsfp5U2yjWXJv/izghLK5Z3ZWNjBVljC8cCJFYmylDWiJNfZOFMe\r\nxyRiDYErsKeiZnOYU1NHWYo37l4w9QpjranfJlZusHQhCXz3nLGar0mYIY3R\r\nMh8o+4NWw3VPpwqcbPT6zm5rfLE0Dxxp4SDC9EPR0HBhGJiWpspri6vWA5if\r\nFGOHrt7Ghd357TjTUVqOpjMeXTpCYcV+TvFefaO6SOu+NZRTECItwXtHDnSi\r\n2umIzgj/niccPpecklArU6ZEmVxVbYRk0cE=\r\n=cHS6\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"08351d253896511ef1565ea112a90a58eea7b46f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.33","@apollosproject/apollo-server-env-mock":"^2.46.33"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.33_1648674839254_0.8276529937062695","host":"s3://npm-registry-packages"}},"2.46.34":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.34","_id":"@apollosproject/data-connector-onesignal@2.46.34","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e8963c261ba4082a7fce79307eea75fac199816c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.34.tgz","fileCount":9,"integrity":"sha512-m0s1lrBNuIBAQ+NAuuE9IvsPCMmmsGl2NwkMfvUGjrGqV2pzPfM1dYnk/X4aQ1nfWMdn91OK+1Hc2nAislo0iA==","signatures":[{"sig":"MEUCIHqmRdoMUj51J0dgtjga3NGf1vmKqH4m0gj7LpVu/ARtAiEAzTMW5gDKjVCi44TB2h2Oipac4yFtW8CxU2kEY8alkRY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMj0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRRQ/5ATFWKJZ3yxve0qfr1y+ue+0OuRSxKVtvoVscoGcjcF+A6Twp\r\nHPu8dVdwad1akW2ukpSs5F7pWIQA7NDRPBFtec4iNAv/Gir54LI1cciQJoRL\r\nWDuSym5s8xFBWS9r2pXZOUTlDdd4NVctb3CjSiWI6i8s0/79vMlz1b5Wrkli\r\n/RVWEfWSsTLwoWsZCGK27XOVJ/6E4Md3g7RomwtnA26UDFpFuxt3Ldbn8vs5\r\nRVvPsOCKfoBa2LMPJzYEXaJpe0VH/Jzj2L4hi7lu2IZr+f1lGR5yDs2PauEj\r\n0f8kP/yWqa8t43UuOAyyFaVZSejlR2sqt1VduFc4kN+e2uD3PrqIN/TLs9yw\r\nTYlAOWzO/KT2PCEhaJiXE0VrUB5gzGmkQ2E0t/AfnkaNilTTjUhhejhQmE6w\r\nhWIgWWgDqDqmTWjaZTbYqFBfHiFG8ieRgQq/xks5dheRUatmXVS8b8+pB6Rm\r\nE2oqaNExo4iFhdN3CEybMpiwF87Ws20zparkbIeDA/C0IsZcYeXojLz88dkc\r\nLja3UVsJ2k8AQPCvWAMoJEEvs/2AsCSyUSsB+Lj08cF6JeiT98sw9JKlPPH/\r\nvjlWUT6vqrwHui3i9n1iJgOupo93RLTIeOQgeQksIBy4WiJOM9hxgRlIIoDz\r\nvAGXsZEmuHN/MgTvoP+czeV4wSeYidXhrdk=\r\n=n6X2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1009eea3b7cbeb492d8f4f336e55785e0562f151","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.34","@apollosproject/apollo-server-env-mock":"^2.46.34"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.34_1648675060023_0.6799025681761008","host":"s3://npm-registry-packages"}},"2.46.35":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.35","_id":"@apollosproject/data-connector-onesignal@2.46.35","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f3a35b02c86867b26e98ecf242a2721f341e6354","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.35.tgz","fileCount":9,"integrity":"sha512-o8D90eGQWuVXU1XK6lTn7f8eZoAueoeI8qazIQvjI+WgJ+vV6fZn2oheeKNsZRioWwbL/LsZE3lK2Q/PoNzWuQ==","signatures":[{"sig":"MEYCIQCMfcUVa16lz8VSTfz6DPJVhRzO2Chm+ldrjuZNs5LOKAIhANbKxVaEXUL1QEQKWzG2T+Q8vp2HN28GoQ97c9Bj2xiR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMmtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp13g//b9aHnDwQ9dFffrOoNL+CyiYUA534gxMEk5GyrbtYz+/UjRCZ\r\nEye+yZJHkYfHlSAi72YzI0H0uPsNro4jm8K2brC0rCnOGh3FgDe1buOjBSZ5\r\nb4moRQsFBR3BBCXJi/S1hITv+jTmqsFtn8r/7QPo+NDOTFhgSb1Ns5zU/sNg\r\n80dKrK/S3Ixw2UhdyJ6Zt+/XIvelj5nevv/0wRVodwPuK0AHX8b9NQTUG3UH\r\npS6CbTPxcOoJ2JD9hkwiRcJAC+zdSxGQb7VQMVCV5+QIKP8Kla4mIKcswYJC\r\na3BMgbjuaywI9FUxaqtrvQpGZxdEtUV3QeuA3DHCEPtDs1I6XhKGmqo1SThr\r\nzC/iVVItz3xV6s9OU5sp2lnnugLa4e/M3JGWK54qq4WgIxIntg1JfG+yfZj/\r\nyg2jwQrztJutnnzLl6a9PAmM8c0fwUCJoijru2aPTV5ZadPpWx6+hLCVo1/Z\r\nbHrF0hxNpFlhzxtRVxAHFTReiFy773uzqJ71jN/xBNH4dEyU3I1qsFcjtqNE\r\nVclvqWnCD/XMD7RyUlP66wsccQraRidp8lNtez06k6KsMNx8i+Ef2Sf+kOSR\r\nqtSxisgtMwahhJ8gJf+wJDuRDJ0r8z4qaIC7KphYtBFtA+xKTb0D3kVtCP2w\r\n5mDAjuWCilTPntga55pE5fX/9PQfmse0x7Q=\r\n=N/lO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"63f36eb8e530bfb2090fcb2c2362c46a830f4273","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.35","@apollosproject/apollo-server-env-mock":"^2.46.35"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.35_1648675245511_0.05077827489010267","host":"s3://npm-registry-packages"}},"2.46.36":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.36","_id":"@apollosproject/data-connector-onesignal@2.46.36","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"42fe3086b62e20cc1f90edc9e55940789568ceba","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.36.tgz","fileCount":9,"integrity":"sha512-MQPKr4cUAEu9/oSWXK6S++BwxOXJP01l6lMtQ1kDpwTEsyOSHQ67CpA0P+BQ1f0/q0jspO/4Nbfw+rHNNz1Icg==","signatures":[{"sig":"MEQCIHgAZ40kCsmU6VdUQglUNaCoGwqFOapEcf7SFUmUyPTqAiBVLnLFolhVxkYgAoa6Yeknd0VByJg3t0dcqifzTjjEYA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMpaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFJg/9HD/sAV4kFF9DRYJ/swxd9V65kcgvv5nekz2Pwe2crb/jZQ8u\r\nr+FmwCW1/s5kd//PCcXHIce6uqNALL8KqMMox8u1smOXTJpvod/lvXkXy1XS\r\nq5haDOxNJr1aSFjDddNsxA47E9Kre8muV9e4kHqAluJ7Xf17gfePi3L6HwUE\r\n/G/c8trDhRbPKXYnrkbUP7nxqIpxK4htZtrIWdMJBY15ldtUOFH/aElJBPFk\r\nsRcw0NJaNPj1HAaL0L6b3Jpj1xDTVZbfKx9cxRjiD2L4bImKQmVpI38Zp7e5\r\n9VTlXq1q17brTw0O6nT3VB8H3HmkGCzU6ranMv0Bw+6kOgfacqCuJ4BFcrwX\r\njaDU7QCQ0jT48pnvxPoajUFDctLlNqT1uDJuGKvabhw0IrRasGdeZsaEJ0AS\r\nQBb1DzOk9VDjziQPPrm3UxU9LftMyuMokL3QiZBtRGWpJm1IYSuymwgk/JWU\r\nxegxPBpsazUOTqx+puX9IzxtDYfz+9Pl3kITmp0llfXbF673me9K3FNKd3mR\r\nryA5YnaKppMJpSMlD34xxnivx+mDXXfBnY+L7gkrMzHwIbjb2OdqGER1vsd/\r\njtVnIubhWL2kTclMGTbknbS1WeE9fMY46o1oWUM7nNTNJjYvIS+QN6fknRSU\r\njOQkWbnL7/eQND4e08jLGsWLjdjf7NTBTtA=\r\n=UfQp\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"533dd57052edb17351d94e21d9be7b8dd3decaff","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.36","@apollosproject/apollo-server-env-mock":"^2.46.36"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.36_1648675418356_0.3755510023731585","host":"s3://npm-registry-packages"}},"2.46.37":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.37","_id":"@apollosproject/data-connector-onesignal@2.46.37","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1aba122d81f2c0b0aa5868e6d77d3c1c9247b531","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.37.tgz","fileCount":9,"integrity":"sha512-zM1jclyyYVbxAMgmhJONnTKg2tKQSGyttFfIkDVzxs+aBNeeornV9GsGk6SRGuc6P7dN2s3mDUNLcY+L5hyAxg==","signatures":[{"sig":"MEQCIDyfDQylTYWgsTlL1LHDrFXkFovVgsoloPQ5PWceOYoPAiBPoIx19aHLwIpfMybQbF8FG/gXlZMMbjkQn4O9fboK2A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57653,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMs7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVZhAAjtcyw9ykop2N6WOBgGvQz6/6rEzAosuJZZTzs4faeAqC7ePQ\r\nYRNrSpa1cgRzZEacC80MBGfglA40ww1iI85h4p0oGBsBTm5tZWNTR+MuOiCa\r\nqhBLumOqg0XGKu6pXiy1IMA8UNX87Nunvt0HTV889ntRAOJvPQPNvvjzIEVG\r\nVJvUCimL1Mjs8YfJQeB0SRVH+jzZh56dldnUOvN1VWiv+CS/JyshLZIzcczH\r\nFTHGWGKw6uyDNxH5QY2syzE/7UlTcba3XdeLZKun1Ni0/oyiF9iBKBwoouQs\r\n13yGXaSPDYEupo3HA+0udJ1pPNMHoBNPftVzxeoQftKTdHBMx9DN98aiLkWR\r\n+HTqozEckUmSBaqG3wrW/gjUSED1XzncS2XJhZ3Jf9Ny2diBGYDBAcLVi3mJ\r\nQRqnurctWshGC3wllMgxeauml/7A5GAcLqr0m+8iYML1DvSTsGTxI6UTbXxz\r\nQQ3mXQ0FAY7CyQ0WctF/7lpoGEW29Jt532W5zKYEWUxmPr9AbOnU7If6zn38\r\nL0yFIyay9mgj3p+zVtk+6kY/+sPoSteKGxAMNt27f2h9RTo1NgVxQ3j03Cua\r\napVYPUhh+lIYTqKKHifopEp1/6yHtoDeWJEyyvoVQKm8Tc+dDaM74cKfPIo5\r\nRLB6Z+aYVqJRdJ6bPLoALFu5cfQpXwEzVUo=\r\n=YVmw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a95a5c7b8aba07d54c7f20238c294fa33aaa35b9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.37","@apollosproject/apollo-server-env-mock":"^2.46.37"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.37_1648675643115_0.276427225673028","host":"s3://npm-registry-packages"}},"2.46.38":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.38","_id":"@apollosproject/data-connector-onesignal@2.46.38","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"fc8bc830aacd5670ecc59d3a256a81d391e8ac82","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.38.tgz","fileCount":9,"integrity":"sha512-7BLnxh6AVEvkiDPgBUSPromEumHjBRHJaDdS00jpA7xlsCkipMv4QKJGYDxVt2DQ8DtxeksnG+lFLVnGh//UmQ==","signatures":[{"sig":"MEUCID7/wdwszT+mxMMH0ZhmqSH3DqGeo0MGKZQNM6FeX/ogAiEAqn3jPq5n7xoMI2YUyE+bJuRuSXddiVKtmTqOz6/ALi0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":57843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMvWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9dg//QIyQEaBgKIVuMdp/P4OPA3Xcw37O4MeuCc7huplVTegrbju7\r\n36SqFCbqlKrZBYKF/KKyMP0QIavIFXeDmqva6LV1rpryRL2OtNdjfZryrQaK\r\nRliJFfgeFQJV5YO0gJG9AMt5JnJ963Vd6hV264WKgSp2AhvRQmIsv1LpUpI8\r\nRFCsDx7Bud3/OXIvFfqMQGyCWZH2GZ9iLt3XmB4AZWhADLqPInaWkxXB6z0l\r\nr0soVVZ8qCY9fixs61jMT1HS5HX4bMMXidt00t5UvvEWm9rENMFzYlMfSHGS\r\n20Of3ddYgi8z0RxKK0nSQN0tkBWdH+xc22VJgnQqm1aIK0eEKEpgHOrso2q1\r\n4DIOAsqsC54o8msQ7nqsh44N4SVXTOspZy4+bOg+FSH7lLRNsdila3R99vac\r\nKIpYBVUyLEvAFDnzvX5cvS/XbSsTZLusXneO/Q0/sChMiRvrmmb9o+9nHbL3\r\nzWa7zFI+3zwcfH7wzXmwXv2IxqaM3JoAW85fqMHnzqXiHgi3yUGOp0+esdYm\r\nV1v7WZJ/KUp5j0JDOQvlybI0/fH4WBO6chZHi23asVTGrTJAFjRxylhdy97f\r\nazLoHdAc05EsZIZOpEbe5QXTZmxs7ZyFZVtSc4BZSC7mfuV0oxIuVEqnKXI+\r\nNlKus6r2/OaCWGkI2lx1zsUvZFsTukzRNbc=\r\n=ENbr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2fb42a6898cba3470c2be091fc479487afa0855d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.38","@apollosproject/apollo-server-env-mock":"^2.46.38"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.38_1648675797893_0.4306987562733271","host":"s3://npm-registry-packages"}},"2.46.39":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.39","_id":"@apollosproject/data-connector-onesignal@2.46.39","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"37994eb6d4c2f6b3eb33f021f20e469b07b554e7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.39.tgz","fileCount":9,"integrity":"sha512-pSFX1k5DUZkuaNM3jiPNE33MSGJTYUvTFk1iBxxjtmL+prP2LV0mBqiw9gqDacpetEZOhNxTutrfbfE/708DLQ==","signatures":[{"sig":"MEUCIQCV9G2SYF5SwR/oBubIWWrFKrmaDApwqMZzPC5lQQ0STAIgDzdDxdpGtcBH9HNhy/iS088DkF01NLDr8G6InSne9iw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRMzHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfzA/+IC8vq4W9miQEGyGnE7M8g9KYj9+QAwQEIZwJPkHIk55CSK5G\r\neaHuP9znOveYWLiN/cFQjRTybzuLnjSInCfYqHDDSFevy2z0XVYY1JEUS4XM\r\n+cGKlB6sgRqfMWT+PeWtwPbhk39eS5QH+FJ+qMZXvr5ujFHLU4XFBj/sEFyM\r\nUADQZGKfHg+4/9wlaD7/3x8ar7LWkRq6zWjL5dked1YCN2qXfwhZgR8MNyHk\r\n9KRtZvUV9URw3iNMe93WZnAXea2fSMdIJgx+qHlX8DFssRl8twnhM7TEMQar\r\nWci+B/3WxcxZGjciOXG/x4v9otbw1lMztW3Ss6V1sxOxLSJVlUFtKmVjYAuv\r\nor9Zu2aP+tWZTWdy33mmRgjCfidiXQp1+3fI0FzdjDSQUSsPf0qqlCNe5sLB\r\neURaXFqmpqqg0Dc4EIvlwbE7Gf1kHUiejQbKPVYwbPsRCdYUd7ARRBPgGA2n\r\nOHpd2RstukvLMFiu1WjZitFgOzD0BPvXPA1sE2nPxPl+udg3l2c/Tpw0V1VM\r\nT7mWkICrCqaiGjf3DaKBfepeanP7EKqWqmQRNXdNhmlFeJPqm0rLqOiuFCoc\r\ncg1VOmY37qQ8dDeqhE6SSskjsTP/xYrQJMFkDaP1b8D75ao8HRyq3kg/HcBp\r\nJkPoBsLEpVBohkXATxYiNdswhyI5hTLbg2A=\r\n=f3ey\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6980ddd4bc39474d1d6bc00173d7f8f8a496a94f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.39","@apollosproject/apollo-server-env-mock":"^2.46.39"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.39_1648676039714_0.6369343271998695","host":"s3://npm-registry-packages"}},"2.46.40":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.40","_id":"@apollosproject/data-connector-onesignal@2.46.40","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ed5c3cac9a26bad2d284a0dfe8e61f3ea8f3adbb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.40.tgz","fileCount":9,"integrity":"sha512-NLVAIQ0UQp8nUc1uUU0B8wm+fYVl3D9/hNX3E3WoVrkQqzJROEdj9i4hOjtNFDkXl92Ddd6Fxm0VduVaMlT4AQ==","signatures":[{"sig":"MEUCIQCPSM/ReNBtyLEjjgPNRWp3y/LdKAffLLL2YUmuvBFDkwIgXXR8VH96taKZuiRwhb3g1nU7EXBBQ8P1E8UXIflzCUw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58223,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRM2xACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFEhAAj4WBGndyZCkCBZRrb0xRktQ4sCZNrY9I2DZ6zUMEsCO9uLm5\r\nBGERaz5qISSTOhxzxk2DIQchZHk0Jf4EDJLtlbZk0kBOZ7IFzK5IpQNxC3Fy\r\nM/aghlYEQYAjQx3xnn//FllEctNHtpE61k5azWDISkc1qaYV0AQRhbGzsesQ\r\nyWQ35b62midqfKkS9k0Wq98lurnqhxVWTBnLWeGoIm2bDLPoBD059w9bkPkC\r\nN8X8ctjPIpURMrSb6wlk/mCHxKrcXl4MUMz5CxApf+vVVEOSWwLKvofVeKjn\r\nuDvKfCBKEsD/Rj3K8/12v9UQ88XNB96s1zkXM6eKipddPLCV6Bdl1BXHACaS\r\nUOaFmY4mCNnwRMwUHENxVIZ5WeJgFOWXgsjP4448Qm6h+ilVrQf5jLSrow3P\r\nHCn1w+C9Mis/zbCnLAN+MwIRVSUesWTfA+cyMrmlKOuYLT7e3HM/m3MTRLX8\r\nZAR7mGsPQlqKQd2ru8tLA0D/LCBnptHIpCyAqomSeh1oVjJIRixAqGQseUp4\r\ngxHT4OI+6IH3ZiOTzjl+u2TR7tDcT+Io988BMx4uDzLcRQ/uIf6GxkESJT1l\r\n9WZx0PonuE5f8mzWPq8rykA3CUkvhMXRMp9qA8iZzzWhL3qO/SAiJBHar0Ab\r\npJcJ/c5Z/exNnr7NygVHmFpRUjN5IZe3rHY=\r\n=yMrC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"5dbb5052bafb16451f4380c4a65fb8365c2c24f4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.40","@apollosproject/apollo-server-env-mock":"^2.46.40"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.40_1648676273190_0.3424839026757862","host":"s3://npm-registry-packages"}},"2.46.41":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.41","_id":"@apollosproject/data-connector-onesignal@2.46.41","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1c97e64588746ccbee3d0d97a92bece79390ca3a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.41.tgz","fileCount":9,"integrity":"sha512-kRpmQp3PCFdnq3Uu8PVLcX6cSJsOOu00kuJN1drGS3efAnPa/pxbWuFxEUSNn+88cbekhtV5aTwiknBy5OoQ6g==","signatures":[{"sig":"MEQCIHQYqXjSQhaUzprJG+4Mv4NUBCFtASz4CbMxS7MIj141AiBawQK81TYf1k8iCdRVYtJ3W/8nnNyJZYDkarzDeOb8LQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRM5hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOShAAiytT7rn1huvSTyCBvIJWZENQqLCFUa0NcRC0a8jEq3ZBHFIi\r\nm6Fw59oFqyLtAe6GqOjUewH5tCWL8YfzCNkzyMvpBSE2Dj4VHhF2u/56ECkK\r\ne1b7JqkpFllTUvYV6qr7Q4m/effadrx0gbdg++7w02Xeeb27jGnXpPOs7R13\r\nVyl4E64Q1xj6Ub6JjBVwz4mHLTbYQp6UDqCmNwv601cmvhGhMvARYSChAkIY\r\n6ynKLIuAXLnDY/IxqOoxzK+Zw5bKQluj+RxJShANYDsGLvueIFeNB+ABm80C\r\nkabQSWKlDT5RW2RGw3xu0NyNlEtviackFGw6PD06x7H936ND3TRBq51gBLqF\r\n9P1at8nc7kYqGvE51TaqQlzf7EHicdbk5KzNMBLvreNwKNt9uLsp5vMmxz4D\r\nDAuPWS+83ZB2n7E6zn8QKTnU1PbHeF7YQR3Ab6ZBiI0NmAM3ckPlfXCp8erP\r\nzsk0D+ofWrHOYTdz5vcav/oRTD8lKIbk4vNR17t5gy+8Dg5vTQTAgFFfIJ+y\r\nylmTBQsZWGHVjkxEV2N1n8Tvm16whj4+wSCorbOw79Zn3cuDnVE/hP0lDYVx\r\nx6KNWokPeGkEPum8cHV3xAy/M+4o14+GiNnNtpmcq7B/yKX1H56u8im4FXe+\r\ndZjgGzEAmKWdhl7ZCmNA/69aU62oPU7Lq50=\r\n=2tV1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8eaeda1c25dea6cc84de3bec91891665b5f469b4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.41","@apollosproject/apollo-server-env-mock":"^2.46.41"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.41_1648676449090_0.8445714012123811","host":"s3://npm-registry-packages"}},"2.46.42":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.42","_id":"@apollosproject/data-connector-onesignal@2.46.42","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c6eaf6840e2b34d79e66bbefe17c1488898ddef0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.42.tgz","fileCount":9,"integrity":"sha512-URYozRIDc6He0qy4cie71yUKoF5UYUR6PKpxVup13+qza0h3vx5cu1kxvvzbxssWk8o3IYq0x7D9aOawdZMOsA==","signatures":[{"sig":"MEUCIQDkpWi7Tkvv96x8Xveu4cERMFpYp4cPsP1C/Evdt8EiZAIgIgyBX+kOco6fGzRTtS1WE4kJF4o9dofE1dGnYYizx6I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRM8cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwcw/+K1qDQW9MCUmwJ2Ebo0AxK58b3ZMLarSPRn2/u8ZF5ZMry/ud\r\ntbIPNVVBD8DGgNygwAq5dq+5GGubYgx0x6MDdSUdWkBkP2iBKm41Sz+Zq1Qb\r\nCeO3+z0d5FpadPG4oWwsjvtbGtmReothp20jP+76V3acmwyYazfRDqS4EmIQ\r\nTFuMaAJREXi32Y6jdcFn1OpoNKcvfp2pJuu2sMvddOoWLfY6zwumhC8IpY/7\r\nc3bwJW071Hwurm92ApRGcrlbPZ/N8C5jYioauIyZ3Pfg1yNekoWelEsYXwwG\r\n9Sh5K0/lkVF/S9GOK5KVhqlkCIGfel8JLqrEkaZvgtHEBrSQ6c2pyMMqMN6S\r\nxb+GThEdfjgGMzRMWlc072EMqN6rtPJuUc7T3/oHlye3K4MSQx3ZQIxnLU0U\r\nGwkBnLQoxnz2NEG9DD2X02oP0v1Msg6bWc5tIsVdTOgyW5VC5fVGiAolZUfR\r\nEoE4qBSkZhaxSFUal6aLeRLmfXvME0wTiXkyf8XPfzx/lMrAgpRbhg3N0Xvp\r\nwE1M9iYCLE+8Xh7tbgJ2grRaUSnDeFp39QLueHGCy5JMYY+byyj7tSnKQ6oO\r\neTtkHxox5Gke7vlETYVU9dHbwh24VJ7r5OpyWgjoiBdKBHcgOWCigwRCfTff\r\n2FQ2CW3+FcwT5kTIY3sgIXPS2PcK66PTi4M=\r\n=7ozb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e4011da83ee83db1f53b89d7cbe859b71b5353d6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.42","@apollosproject/apollo-server-env-mock":"^2.46.42"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.42_1648676635966_0.054497296740034784","host":"s3://npm-registry-packages"}},"2.46.43":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.43","_id":"@apollosproject/data-connector-onesignal@2.46.43","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c66767fc68bb39228ce799a6f3f9ee31ecbc642c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.43.tgz","fileCount":9,"integrity":"sha512-LNWI7AddY8+idC/37ad8cTtixFX2FQrqKbtqorFhAWaKRggYfzPPY61nCl3lIXbnBhqNPWoz8J7t7E5fEIBdsQ==","signatures":[{"sig":"MEUCIA5iXpmHdKSo6Ci9uyRlFE0B/ODNwZju5kVXDHKh/uLXAiEAliDTYG/dS0NFt9b4cjjnbHBqoFXDAyHN9f26QBPMiqg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58793,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRM/bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrbkw//dD7yFADySjbGCCIG6xUEbG0ToYZ/fXhE33pEk2nL9ZWFkGzN\r\n760xvszMCLtx3faZfVwqEkJx7gHdEXtPA6gFiujfl/t2OJAU4/0SK2HmLRQ4\r\nMZVUdNbJcdj76Abe+C2sKystvF9c/TgJQtMZjAagDsSww/YxCVIu8g6ADDlr\r\nzIsC+uTcuiNNY5SDdTRFclEA6G3VDG7JLw8zqxbQW4KV/44XtXWOayPU+Ftp\r\nVh5bg7z+mcA1AhLR1jB5CRZKNJIINHCDvUiCu1UHnPyfvqeFZ8UWRa5/skLt\r\nszWXznhrnLY9qD90VXfQGP1WJ4Chj4iONg6pVRxuBBIx4hX0q571UPwiZr8S\r\n9NJmRsb1mVIimp5xyAm34YHG1RaS3UU/tL48unSSwz+Y9dbiHdYgyK9G7FsR\r\ny//faMy7KNChIBhDvQjIsjNU1jxhpz75rQS66PV8JgdzOAY9+82o53xFyZ5g\r\nET8i3hKY0AKyNRsqglVq10+9+NxsXvp8FgtCWCoGkGvNT+3WEJ2IBCTGvCEX\r\nz9HTGRPD7TS/QZaEP4tQVKHAoRt4LnYomP+IIcY+nQYLBApO3hIvQRXv9j/P\r\n5yYubPbpMUQPfLGuJTQ52C5DNgrUdhzf7yjVsJkne2/0GdBz7TY0rBAMpWYx\r\ndkTld/rze8vigEkoNoU0khbsG7JynvDXys8=\r\n=iOQ4\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a0878bcdb71a90212ecc9d35f9178f1e5d5371a9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.43","@apollosproject/apollo-server-env-mock":"^2.46.43"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.43_1648676826978_0.5608955294566507","host":"s3://npm-registry-packages"}},"2.46.44":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.44","_id":"@apollosproject/data-connector-onesignal@2.46.44","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6a723980916f22e1089c6c92fdc458e6c516b379","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.44.tgz","fileCount":9,"integrity":"sha512-j3QnMPIqLPmRHfT+wU8FkPB69uLfPtY6Oux+zKi9CrW39y9xDuZltKSOumP13A1LkYcY6qMv0ogjk9MIpjFRZw==","signatures":[{"sig":"MEQCIFHkp+ciXf6NK5ZapJD9XgmLrnrFS3GZbsJeeo4gmaBDAiAA8E4PDWMAFBfnnVeJCTCDQ1CKb1W+mhTG+xUdVePpsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNDlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomIQ//dOx0LUQqPV8U5tvXLS5H2KARZyzfZEG7nB0B+R6IM4UkC1sM\r\n/mUrZfKX0PwWTewpKhOoqAwehZYxbSkKQZeKjh0FE/oexPhyN5JJdByXtZEm\r\nSIjt9s8TDgovmkdK6dLnKpwZQjIEsqJKkwLBHyE8qEoTb8NScct6pOTt1Z+H\r\nX/jlM8H2Ul+v4RE755L/e/n5M3sgfXd4aUyzkoTT4CPeV5cYS1VyTQIzdLvx\r\n+dQHJt+VKUjJucAbpkaWMeTjCiZW7D8QHifVOXxWlShIkh5WS24+eJwvmhEX\r\nN3bgeIQJ6e/YCF01Ngs9UTR5Ie8d2loU1QLiw/l9OBAkUpoQ6Ed+XxYDCJwu\r\nWZfhzM6CFI+8m249cg54XG1bj4X/+23TTkU+pM6dAP5JsIS53BE+X7N0Oz2m\r\naTVuYRUJP/4LtjRtVk7rwnrsR9mCE182TEiz4IVYwAMhioio13O8KT6FeCcH\r\nlwsNqVbF5X09/c07hPqSeOtlTPpqOdfuZz8IIMFw3ZJa3P1okOqQpr1FfmJW\r\nO14sF4Yw4XnKw3bbCCxNPQtF9+Vaznq9cq9r/XjAP29h79G1HZWudUJvojDl\r\ngxiAU9lblGv3kvMXPioNMKdLebE69zlonW/tV9+pPVSe3tTB3t9YwRHTIuRg\r\n1xJ5PJHi3ay+OIMPkfBEDde2I+OnUOoVzIk=\r\n=FANM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d6d7b7b59a5aa8acaeb9bba44e6ecc24753bfb4c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.44","@apollosproject/apollo-server-env-mock":"^2.46.44"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.44_1648677093448_0.6423150464040972","host":"s3://npm-registry-packages"}},"2.46.45":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.45","_id":"@apollosproject/data-connector-onesignal@2.46.45","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"490db32e4191b037a5023feaaa1ab513227c7add","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.45.tgz","fileCount":9,"integrity":"sha512-PokGEp5IHq6/5/1Y2UE9Zrlx3KQbcHEuAmRlCbU8jK8bGvVmuz3nBWwDLE+T4z62ZtZeBj2jIsC3nkSAmDZ2MA==","signatures":[{"sig":"MEUCIGqtYXt1Sqf4mrRln86U1UAcr2yD79OT6vGRByJe4HGTAiEA0un8eEpWw2z7yb5xX2ILBIDWdPAN1tq6rTlYvzKcAAQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNHGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnBg/9GUJeoC4vGTiQ+gOAbHAdKAUosZ0vHg5FhW5NJ437oPSTssy1\r\nTUUEl3sdPcYPJGH6ZKvdmFgvfC3Wgx9r58VfqZ3ElqOvHzQsZjnnYWoIRI2p\r\n+E07q09VaFozGJVSjsDrjE1Ns8peY/ZWj5gdl9WDTdn7yYKlkEn7SqxyYZaU\r\nrzGBWS4t6SyguXlwyjKj5le2p5OuExVCaV3QUY+EyOzGa38ISIcuVXzP1Ipi\r\nZDLI+YwarH3pJkjdlnTtt07H2aug59bx+UaQ2j5khE3ZGBD26eHXjIgaWCTI\r\nWrhqzTDT7AblqvYU4pgEYn3ipMzxjPBOxCSgcHc1UNATuy5NlwO0ROhNyMnN\r\n0gwJtou/4VKzDaeAh1ezZMv+Z/c2MaXFflD7kghu9MqVNP3HVtxD7riANeRQ\r\nJq3Pq7v6RoS+DsPeisJ86ojV75PV12oYE3oShsU05A42fZjxmPBzWeqhIy3a\r\nq8Q7SqP3a3/B/fy3F1W3Pvrx0q/AMhI1nbqOq8vzZDuVV9N2p/OcdiNmz9ZT\r\nXbk3mj4xdVWji4/DxMKgGFwQPJ7hYz2Lrg+pIy7d7xItNqb2jovr32t+TOMd\r\n7V0OSPBj2u9hg0LO9/zsH0w7xLu67Pi2DEKEARP2XZXYGzo86yj8G4tv7SJJ\r\nYNYw5NxmNQY9zPLoGZTdCUY0mG+EX8d4tAg=\r\n=u1/w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"972a304e7afc4c67bae790ac8052abfe24caf79d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.45","@apollosproject/apollo-server-env-mock":"^2.46.45"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.45_1648677318468_0.713667675223054","host":"s3://npm-registry-packages"}},"2.46.46":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.46","_id":"@apollosproject/data-connector-onesignal@2.46.46","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"03b67255176d4be79b511f31bcbf9744f6ad3f5a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.46.tgz","fileCount":9,"integrity":"sha512-QA/zypDavT+CXtJE5gfY4K0MgfjQ75hk7ZlwMEkYZ2OcLQbaTQqg62Hamc7N99FaH9aMNCdyDRXznfOccKyzbg==","signatures":[{"sig":"MEYCIQCZzYgEvEEmYK90VZl2OEenLrvhaY+wKQhxWjLlaIXKpQIhAPUuGrtCvyHRl4BcxqBgCNFInvH+lQBR53KkSoy1QgcE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNJlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFPBAAieqnRx6+xvDNrqlfStVN19l5wlvFumxDBo60VXjDnmaDZSrH\r\nJS1RYIZirRVRngGQjKP8SpOdK/aROpxfL0r1CaYa920rM5lyzrGkH+ROJyLM\r\nbNiQMX0SYdHTz6BCyyUVd67GAIaRvwFDA58A84+vWdvInEOlEpnMNnEEFxO5\r\nNU1VfU7KjUCAjbO5q1wsb2u/GqyL7uwra2eVp9+c2tH0gt0F9REE24pY9h4Z\r\nRs9jf8B7tBwgu+ENkJKl/Cpj9AuuoEhiEcknFWeteuSx/7Gihsr70xDKHB1m\r\nMXGb0XN6W1O/hcsvSkm87HKgzlp+cKBx384sii9Tzhpqfdid+sWfgQ/BVAE3\r\n6b1Wt3OtIogu6XainSIPNwdoGlaKuJQt6+qcE5rayPdLINXB+RXPkfmTpWhN\r\nbOsdhjdqSi6PCFxWx/ABpCDF3og9GKCe+vSkouX+1Mai9CGzjxMXRxp97pmy\r\nTwlnVTIoEDoagitZmjCuZ/GhE99ooCwpDHjE23sskVeMSOIOlMoh8Qjn1zC7\r\nUXq6j0fB80IpLY3MqMja73IGodiF3SL+oT6ZrzvrEGxx6rQhUWeIYShDo+Fm\r\nnWqtJMoqTq6htHu/CW4l9uioc5GAVvIV0eb3r+MxgYrEweQUQa9LmHvxgodJ\r\nzQpWEPo0sJvc10v0xzcaM8Ktki0VCQ25npQ=\r\n=Zhei\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cc1afa30076883f77d159c0a884520d4fe642ecc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.46","@apollosproject/apollo-server-env-mock":"^2.46.46"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.46_1648677477378_0.9165105455060176","host":"s3://npm-registry-packages"}},"2.46.47":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.47","_id":"@apollosproject/data-connector-onesignal@2.46.47","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b79c6b4106aa3ed786942fe70866c837dd15596e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.47.tgz","fileCount":9,"integrity":"sha512-jr3C6QsTA+neDBYU6WTq9vpx+n5OhseGG5Gu9KkBpeQRFlMGYkD3Mz9+pRuGioeX9aHk0a7RfczkBuGm24edgA==","signatures":[{"sig":"MEUCIQD1dl49sXmrLSdNU/QHuoT4YOsaOiYzifLs03BMpvOTqwIgMEfqGZ9FDHHRLpk4/6m5o57PjkkWp6uMlXO7L11imp8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59553,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNNLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2Uw//aeU9aaaYejCIpa9iU1GYDNB9hSwqlASrCsOyuvG9ePg+zBZW\r\n4lR1l/XGg4dSLk9JK7PH/sUjdWqt2qIdXWkyb3pILAcTz+kt1TEyU0bcf30d\r\nB2gRZd9lTv/mcS9D4dXTo5j/kz8hupkSxjKU4krZBm46XjYCZeZPqP8CgFkF\r\nEsSoxAfXcqk0T6m0r6g9zZLN87pFcImFMVmlvkBLfrZ2F7623kwJHq+VrHrg\r\nNh5QcVjP79I0pYaSTPLqC55W6777nwlC8oNGRQjqWSq17ki8t9zGOnEfqyPB\r\ngAh3NFxMGpu5dBC9bv+0lo4MFC2bbOiRT8QwY/iMTkJsQNP1wiaKT++VKFm5\r\n3eANe2X9gyZVjoIfoATlzJexaMSBYEvhSYGVySaeinNsGYAfmRtgeWCJuxAT\r\nRQmSSZ5kqvSSKV8+tqT3Z27h9keGF4JQjbTdKyWDFKdNHgv1dkg8/bpreioz\r\nYnKLBf+Z3kF0rDRRmk+GH9pyWsYc2hcd/jLpVyRfgt2m6vj1aY2XPeM3DGUK\r\nWYdvGRfRIymmM1iEzjD/ez5oqnY7KM1DUmUznBSxcJiGmHgLUYlxoMBGGHa6\r\n6epSdOJaypXyGqGI7Zqdb6NvxBmMNUMZdDwS7iYBk7YBa2EURIOIfn4KHbV+\r\n4J73xn9cVbW9r49dJl3bfFMJei1oC+FCqlo=\r\n=bBkR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"715bd8456371a80add4f6654bf6350c9d19f7a5a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.47","@apollosproject/apollo-server-env-mock":"^2.46.47"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.47_1648677706937_0.9440248072784758","host":"s3://npm-registry-packages"}},"2.46.48":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.48","_id":"@apollosproject/data-connector-onesignal@2.46.48","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c092ddfcf15aa5fd00c87ed8e9bfc6125971ae87","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.48.tgz","fileCount":9,"integrity":"sha512-rPeQqrGzuiwOlCHQtZFL/0ohOWnrkSVJSg7y2PrD/q7gz2viImhDe2FnQVHsssAXjOyOmbX54rdRYiLaouTSiQ==","signatures":[{"sig":"MEQCIBopzT6cYNO9ZtK2+Iu/1FtjWT2WBNphBhTHcB8kCujTAiBDiS8nr+BRX8EWFsJm4mSwAEVcwEFa2HV86f0Qx0VkTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNPcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSuRAAjClycUn1Ap6JdU8Cku4zdCNaGNJ3MJfxT6iemexWbl9/aefK\r\nRUu60MEpwocVXnzyV6mtS5iGDaACbWfudYtz6FnEuDgqK4aZ0kCmBX87pdxD\r\n1Da1rwq8kzX/5bSUefFdfF1OfxEXxKOH6dJgIH9itoJiMnimL+lkbpiEKHP1\r\nvlHanpkgg181qY+SAEiqa1yWCVyrqVRooOln45zIZEOW9snlqjF6VPrq3zvs\r\njB2TwUGDEtWM4NgFrF9lNmpShCOOuMVnoGx3Ra0VSPXkBwkfLKQalRNJt51i\r\nFf5gzgcRQX3mrOFwUqP9aMDzBV1cl3z8v/xF/j4iR+G8l+A9e+aBqAsPh6sR\r\n5KECvo/g8896TGqq1O3eSSpjO2GIJws/rGJ4mfrPYSkzVCtd8qeNrVaOdz93\r\nU0pP3Ph5ZJKguzyiLaEfCJp4QMWBgfS+YIzdUCPy9HPICAFWR728/Eyrdz9t\r\nDKMXoabLCC6NFimI12Rkk3YBdulEojDMnxJ6MmuExl1TC0j1UDsTkJ5WkJEC\r\nUWS7KqM3Q2LmEVrQTc5KGVaSnZjPYZIvRRy323dIUvi8R1PyNSAMF+iUEaPY\r\nNbwSU3pivs6xK8qGBkI7zzdxTFK2dGZE4vFO5KhrMB97pvDWYJF5sTmiQQgb\r\nB/SciCv9Yu9CEr8CHQTFiWaisrqxn1iWEQE=\r\n=Jkrh\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"723a74dc1579bf5a8face23d3defca96ed3ad19b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.48","@apollosproject/apollo-server-env-mock":"^2.46.48"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.48_1648677852483_0.1055260561735869","host":"s3://npm-registry-packages"}},"2.46.49":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.49","_id":"@apollosproject/data-connector-onesignal@2.46.49","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6e3417c6d394ceb9ae3d0351d1645730597ce0b2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.49.tgz","fileCount":9,"integrity":"sha512-+KXFQE9A/3AWEiNBcI0+ceHysQIlzZJZn6BCttVbuKbcqMsIE/16fHgHUlp5PSjMaOo1e0mQu5ayT189Y+aZTw==","signatures":[{"sig":"MEUCIEWZwvRap5s71zlmXrVtZR24XfDzeGg13lbwkNwtsuF7AiEA91seO+3P8f0Rz1NZIsLZkhmj0k0DUYPAh7lObFLUiiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59933,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNS8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFdg/+LcATNpnIew9yJMyVJ8NH8S666uIkZHX74nWRhping9RaSSeW\r\nRpdtCWc1NCoCbuq8erxexMbaKtHO03s57hJ70q9SSSYqWW145aa28BfTOLlT\r\ne1LiCoNypjbv1u1uijr7KxEK+b6JE/GYtyO85/1Nfqn3SIuhX7pwpaU68x1M\r\nPmzPRflTUHFEuFCbUoGc6THsLicTXNEFYAPsrJvpJHwW21mKkzhJqraWtqST\r\nelmvmqeyc2XUNKTtcBefo8YpdANW41KrtmaxIu9pg+T+YZ6Nke7FKWXwuuUJ\r\nYbhc7R/XINBw8RYvfbKn2FhbylX/b9mqZMHRfvFjQnPxy8cX9gLWBQZvTBZG\r\n6R32/GT6lFfy1NtMfVBucByjsk5bzjBpjpD9F+DIcYAip+yQm6uQfuK3Bfe7\r\nwtqCXqsyOkm4LRfEwt8osoJH7g/Px9Rc+jdvWLj7wABYhcCnL8iQ5/yjbN4+\r\ntDoiQ1Vyk2htbivRyA8ZEJKm6J/RE4C0j7HwTEz+DNWk0N9FcVUaqrReKL4H\r\nIC8PBWoBxdgBxIxfVb5KG3QcoZ21ziFkfIYfzWsmjL5344UmuZU5ierr83EN\r\nmGGHzGMFglmqWe1MYR/90owXUIYW0z0oEXsmXSsYQJ5+W5ZC1WKBXQaXHL/6\r\n/F2vSYOywnSEstc9T6ZYS3b54MH7LTLX6NU=\r\n=pnpA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b8d8030a2ec92228ae99b94d7421d2fd3ce995af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.49","@apollosproject/apollo-server-env-mock":"^2.46.49"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.49_1648678076399_0.7393849196978244","host":"s3://npm-registry-packages"}},"2.46.50":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.50","_id":"@apollosproject/data-connector-onesignal@2.46.50","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"75315d2a25a7df361f6fd45f64deaa271345e53d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.50.tgz","fileCount":9,"integrity":"sha512-HVA5HbKMJx+asOS3Ni/QtRKvzhkPpzOV88ziIAyu0kZTC+du/luAAnMLxtiNM1sWe5wAIG4L2Ix/7goMTpWNtg==","signatures":[{"sig":"MEYCIQD3J3TgKA9xmoc+yU7GcwDD6xUqZN0AXsd/wByPKpBJbwIhAOkJdiczyDZZeXNQ+FwDHwYOatYhPxJ6iUk2Kc+6u70i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNWPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpT1g/+KbT2iTDT9dAqyYX/3PrrYZwoyIjlxswPstofG6ael5fzlSfU\r\nU2sTuTUfxEAb/jJRnd9IS9U4s1pw8yB2sJ/YKuBBzz7prAPEvmObc8sDwjuF\r\nAbUI4dyk005CIdWnFVs8eYVh+k28vfwPn31Y4tSd8u+hQCbsmYuyopz82rjX\r\nDBLx1Ao5oeGNW00k47IcLK4fZlfKmWAyM5sJtfyimwS05OfKBdzPKCt6HuPg\r\nqkSzckF4GtNr7q2rlhJ58xGJGXZuvZwTjDt5v+lSVPsOWEbNac9sfkwUgs5Y\r\nhRf6aPYUXDoQ9aHb5KkihfuKYD0tbIS9CsuzBk7p8XQQrkvd+gl8TYN+ublW\r\nM2LGPP0eOW/jn8m3mJHDuXGGBq9wntOAZHWB6bMkV/StosmOVkrZMiUuHXpW\r\n0KtXMmDZZOkGpiOZMtCVnMFSXJw3BSboxbXtkQp4wmhs4DMoWW+FM3HqNyuS\r\ndgNNtJT4uk3al0p+mC8DjKe+7454R5N0xy4JKhYjCWRihvWNImGau/YQFkJ6\r\nyzjEn+/mX5KyiNAqGmkPjDT4PUC0zKlF8GOYIIgqEbN7O4qvrbrg2Fetz3R2\r\nOKDHpC7aEyXGUNZje4PmzcNHSxuSbtY668EGpN5wlwRXgKttVeXnUkjyjYoz\r\nOy1npgO24aql6Cs4U5t96AhGc1DJ/oMRrPE=\r\n=alUF\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"027524ea827abd921e94a6115f172da35720ffe9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.50","@apollosproject/apollo-server-env-mock":"^2.46.50"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.50_1648678287714_0.1015303505441798","host":"s3://npm-registry-packages"}},"2.46.51":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.51","_id":"@apollosproject/data-connector-onesignal@2.46.51","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"533ffafdf37761146efeb59751ed29ac1bc72c8b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.51.tgz","fileCount":9,"integrity":"sha512-Mfht/ZQXXASzKoWOScnpE0NWWNVqXJ5nBAeamKezr4nVfcMcZkcJzqKOejR5+0/S+7BzWeIHnC9eqD+122eYEg==","signatures":[{"sig":"MEUCIF+6PEuhHJXWIwsub98M8/Rue/pXFsrYxr+/CAH/Q9rJAiEA0zkf8qZ5opEk40DdzbuASyskMlsfzRV6fpqIGOHd6m4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNYpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqarQ/+MN1+3OVlwe6v6x/7arxDQ/Rj3vCbcf0AbgfSjTPtbKaTwAAB\r\nAYtO3PXvkcDSFfA3sbKwGpOsQRlpUn935plKtIOE0D5w49h9QgegX5050j0o\r\n3GyEPcGclQ32X7dDoRcm35OkPdGZmbq1NaiNHWATXti495onRpg6A8QMUedE\r\nSFtxDQ2+Ku2d5VXgGnbt7GoqHFVwOLQg1P1SYdZ4M8oBecEdQ280KXYL3c+N\r\njL1OdkopuRwxELreY0s14aqG5ShaGGx7nV5Yy0DrzQr077qX2IVPFbz38uZw\r\nlzqBw4/hEATuedJE+EK/oZp2opdVhfdhRoF1vxq8zR6WU75LG8kyu7IwgPCQ\r\nLLdaZaYwNxlf2H+JJbqS1RWihaDt4/u7VY2XzS66j1GbrdwWj5duHAd5RVnw\r\n8/f+sEXoi6bgjqS9j6yYyLtNt+7Kd5yLW59EHRCcdzHfsjKf2ucaXn0hfLAe\r\nMaxOHpiH6hrgfgTcBso5mZVyzYY/ota4qAsXe4V7m/p/NnLDZTX+BGJJMrvJ\r\nvAeOKFjQRezaUCL69WUltRF1p1OB/2jFBjUvu4sHo7JHDKthXxvEa2Etf5sS\r\nv6p60Imun5ZdUgMztUAjm3fGXzWxbIFvUfz4i6rMarrYpMEUUcMrlyipJBkv\r\ng9sx94JKgkc1BCefV0Fo+3TwdUFhWeI37pU=\r\n=vQl1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e547302a92af97fc8f674260340d659357b47f2b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.51","@apollosproject/apollo-server-env-mock":"^2.46.51"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.51_1648678441038_0.43943702861471134","host":"s3://npm-registry-packages"}},"2.46.52":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.52","_id":"@apollosproject/data-connector-onesignal@2.46.52","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2b7298a5bc38c22ce35e46eec8760243fc08d610","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.52.tgz","fileCount":9,"integrity":"sha512-Va9fPmzMKwfmOMRQPIf0U992HaIsAOfY78y9K6CPd8rygEBmoKsTORY6sjlarRKwIpoOrFwh2eYfgZ/ni8NDFQ==","signatures":[{"sig":"MEUCICxCLeAjoUs77N1LyTIr+0ZbCITip4JPw7YnEJvuvsg5AiEAqyQmZVVzeDyJU6v7XIcdvZSba41iAKY3kvkB93Cfvhc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60503,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNb9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjYg//a/OvbrC91AK2G4hhVM2Ed6OnkNeR6A+gGJqnCjHqMHKcqp3D\r\nifrwRrSxTQ+QvY5A8VhgfFyK1zCfu7bA0ECLOkJSOtUehUfedIDb/mL4PSBn\r\nfZtDX3bFbDJHs6kMfBxemdu5fdKf8FFauZDam/81oCZHpruyPH7/3fZ4e7Q/\r\nxugIVt4/nWH6qB9FWadnBUCNfs5gV0acyJRyZqydJNb4Zm4qt1mPtsjiJ8X+\r\n9f8nGgFDjDHzid58mxlpj3MUue4yGNPF6gCfB/OMX28ySx0xTQ7kxS97cajD\r\nTfu0BjaDkhOYKLxJhcCbZrwRzy/dDZPAm8wS3bl7GGTmQIPObOQR6czHqvgE\r\noo3hrvCUAAH/J+FE+MHZGrjlvV3vArXaxHAQwFRdLZlOD+FbjF9l6vdDORHo\r\nQoc4Zs1szjiDmKRVDtVK9fkKrdGfxSSPFEY2ovRSSq7uKeObITFS6AWFfJHq\r\nRdfoEjrD3tBii7GGgAGjwRyI/l5Eqo7I5vJEDqRskBVRyX20bqiPAJ/utctl\r\nxat+gizzqyM0/Wbettgyk4PwEfnx82o59MwFw7oMDZQG0CKue+29qqcKJSzK\r\nY3SLW0iJ1lMOuuB+yCRi6kHr08id9RCcg9BAUeyMZoUlhVw3yp5xIIh/z3GW\r\nE8857XlfTnnHQr6QhGjOnz3Aadqoy6DxpI0=\r\n=BxjD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"49a498f7b8ece38a2dd91503b362a199495273f1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.52","@apollosproject/apollo-server-env-mock":"^2.46.52"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.52_1648678653587_0.8955820125316865","host":"s3://npm-registry-packages"}},"2.46.53":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.53","_id":"@apollosproject/data-connector-onesignal@2.46.53","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5a5183159c297a9f9fb7db9b44058dfe74ef2d96","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.53.tgz","fileCount":9,"integrity":"sha512-p0zoLML7Ij9DIOoDn5Y0T2rmgWTtHVgeBSRAVQLZnd2DJd5aky+/saRtwhDo/YmxIfnVAueVKi7Pc9LwJqqwAQ==","signatures":[{"sig":"MEUCIDh28dstY5anvnYMhGzSrzcGwC9LckQ1TkU/tFD5G4xwAiEAkwm8ymUg3vNNxuw4yA3o0+CXzDd8KHDnOvijhoIkJo0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNefACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/tA//eSerN15CIEzt0vNzzLjGcCx+kcEEVdofEsLLhIcmPGiN2pZo\r\n/cmUgpAPWzJHvZK+x5UsbkrfYrtefw+w3PrmXo864E5i2+Hl9jQFOiruFBHc\r\noaDqYO3GZQjk0qj/tjDToC52hLuyOaReYc528FT2fsT1paDPMn7HfEbdfxgA\r\nEbsTXOn2bEeGmT0yH8jrzPQ57A500+3HcSwD5DpBe5R+kq5e9XpB3iTcoFc3\r\nb6GSEP3eWfiWkTF5oUSnQsXxZCMA4l6MQCK3k6Ug8CahoU5qNjg+FX6n2zhO\r\nLGo4AAmymqxZVABWBs+JFNlETe7nqnl8+maLeEXocTetJ2+/4gdiUjnOtBj0\r\nXcHDI569CFVtJswSt9af9vidXJvIy7qFlLfAW3BT6sfrgODZPYIQMFmfHG6H\r\nvvGAeXKN4/ElR7SCaJtMtjd5T0JLDwZis168wJqtTfyQgwewv0gBx9MQ6Xw4\r\nE/UKbeDQlDl4i/ympkjoxPD9pc1beLFDd9MwjeAmfZ+V0b032uoHxO4EUsQT\r\nAN8Wxoh+jJ77aMxMtDpqTBgUXBVjM5IZXRd463TJTcZcKtq1Kpk+gVh0MCF5\r\n9VhZxafnjx4hTNAJxYffmfvWBBzuudSMUlNKwxJq0353Sv8jgTvB4vTGwC1Z\r\nBdF60yf6EhPaS7NmMBRkz3dWe53niD+aVHE=\r\n=IZav\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"111eb7272afd17acef59ae25c1c9ee491099f57d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.53","@apollosproject/apollo-server-env-mock":"^2.46.53"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.53_1648678815747_0.2784468565028897","host":"s3://npm-registry-packages"}},"2.46.54":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.54","_id":"@apollosproject/data-connector-onesignal@2.46.54","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3d856f356667959de017f32fc02021d464ab6f87","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.54.tgz","fileCount":9,"integrity":"sha512-5wDsdBKS2/DmLIKiu8OCiY4LgLNBgoHGeXPdSeQ5FsY+ZCzvSkumeYs9EGLbpLl0wcFJiRFfben8+BiFUVx07A==","signatures":[{"sig":"MEQCIE7sT1o3odJrIAJdqvs93pkk85cZH1wGeuedclrivTUwAiBPeFeArBvAWqXR0QviWRchhvKGspXdOjoTetWoIrwEkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60883,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNh7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8xg/9HynVX1B1gRVEO4Yhwqg991uQ6bvVHVBO5I0u/2fqqFgmjP5g\r\nhJd5nUOLi4/8UhgMNcl1x50bnZmFJ2dA9LmoH8IAT3Kn7e0C59jrbEUtd4XQ\r\nnDaR9AFpD8h4cKvfZ4LyFQu2ZV+yg/6flr8eA1StO61MbGwRwAD+UwziQc0o\r\ndS090m39VfeN7p1JAjFBpDIvQMQhwxP5fT5K1UJLWU005H2f1F0GId1r31E5\r\nJzWRUpJXQ0e50BiHwAMuZS2sMh64LjDs9zMcJYoyivh9uiNuWHa3F+Ymj0x9\r\nkKKVLyclcaRU5K1BoFnPQwjL7JJ6Ygjb1MyZ/4LeT0ohAnXAkLjqw/eCT78Y\r\nV95qRhW1uyBujgrH0dOOQJTHBgpPJH99jQcY+UEJzH3+G44mrHNF0ydQi1TT\r\ng9ffAs96zgKNc9crb36jLoxRtvMoRDb3glM/kJ+DXzd/hLYdLZnhNCTHhWWN\r\nYZEJH51fSVffNJPcwpLkutxDwB4uhJL6mh7nFfKl+KH+EqCH6t1k/d51ZOFn\r\nPXRumwp2C8UzO9p5WT35qKTjhKeXat8GKlUSms5w2Ba2vGndHBM9HH8nk9YB\r\nToNSwGpYkn+qkU6HGZAS0myiS06lNl4iaSsACUNdwbKjj/UtdfgAiJ3jpneo\r\nnV3iRiKjPmo1VYTarCgkUd617ZkD5AUerP8=\r\n=n34i\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"82fb8e8f0799966593882a6b9265404cb426b39c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.54","@apollosproject/apollo-server-env-mock":"^2.46.54"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.54_1648679034531_0.7970031470753609","host":"s3://npm-registry-packages"}},"2.46.55":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.55","_id":"@apollosproject/data-connector-onesignal@2.46.55","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9ddd380920fa1baf57504412b53a9aecd753e05f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.55.tgz","fileCount":9,"integrity":"sha512-W5UPlvEBFxogvfVQ57uCI7pkuFBfN/jQatuy4TzkD7US7S5Ay2yH8Rtb6altJFI+x+2aSb3bbCKb1JJOfkDvpA==","signatures":[{"sig":"MEUCIQC+7kX0qq5J9Q/7HEz+q9tXi28OGpPGzuAZO2XMNhc6nQIgV8ThiJKwUjD2PPUviyFtCwH13BxDwjSE62oh29q2CbY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNlJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfqA/+KTg2EF05ZX57tERf+acsRPxgrkgM4VLHwsNcc/avPuc2mBjP\r\nQ1Iw6WCvDJ2eLEkkluSNL8CI4tVPlnrRTujYo3REN9k93wk3Y74Sh1ylaZXm\r\nk0m8UvTSDpLjL5H/Blm/xmHEWWR8IPkOMemgrNfRN5op9UZFimBMwQXok5FX\r\nDATlfx/S+V9K6Yba49vsUepOlmjHfMqaXx9v0SgjiTgRWcC3QIna3UPcNQW8\r\nSUKWLImOom+ilLbtPyJdld0wZpt1AU1cx+pV/YmPNfK3d28G81vFX6U9U1OQ\r\nXlfOlmSqDm2sue2tju2BygBjJMkY4xw6/iJau3ZfTiYvn7PRBI5yH60/8Q0L\r\nlnn35WDJlAcRIll/boEe4ggoe0vO0n5sr2RDWlCOworWpsUrPZz0gubPyu78\r\n7HgqLGuOJEmpdry96luNdojFUPIQxtgkce5d1RVyyco5nVaXq3mUUUVTdtTM\r\nZPVMNYJFXABkPxXBlfv/L9blLUGwvKEbgXWhcRpWXec7ImK/ioIBI1/6jpT7\r\nRNiWw3wiBzC9igM+NQ3ZWOpb4EnW4YTele82DbiSkAJ12h9WYDVIZnML/bEj\r\ndkNI2mD5nDyWrCtueNFq4Zdn42Kc4S9QEC1AbriHQoKBpMpWEkrBJcLvjt3G\r\nhL7bM5r6Wptrf9R6l8+/w/E6r5zu4YARYWQ=\r\n=vCWg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"19ba89015b71a9ca8b2e3dc5b92e205f5b7c732b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.55","@apollosproject/apollo-server-env-mock":"^2.46.55"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.55_1648679241228_0.3776211426358489","host":"s3://npm-registry-packages"}},"2.46.56":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.56","_id":"@apollosproject/data-connector-onesignal@2.46.56","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6620a3640299b393a7bc39ae24c7f3623d6a90e5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.56.tgz","fileCount":9,"integrity":"sha512-jHl0QiAdmVY5heShXABCxGXWvYSxtLyXQ9j2N4zPVUUq159OU4RY/KB1cPSSqNPm2C6mQPpStiYmSAHU9/tPNA==","signatures":[{"sig":"MEYCIQCLqKkpLa1lGuEGEczfmTBZC3qWkKyPY5Wr87xVoBQb6QIhAMpAmIjem+2vVqw5UoC9dirI6iZ73XqMxkH9qmTc3vrN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61263,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNoHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo14xAAguMZRfzjgnC66q0lUlc21h8Vxo8kBBTqs6D7ly3olQVvyASz\r\n9wNG1q0HZGRuOFTvX05lqIDEkaIYCpjR72vvVnlmrdd0QClPt4oLIEDyxln0\r\nShYqPFsEfe5Z9fwYKO5cGf4OaV0HelQ9pYvsHCHeMMeCpTpqeu6KOQggEv3H\r\nM4C0bmkDNGDwBwBS0X7o34ZWERaGt95fqz7MnF3r1665miiI/g27O5Axx5sE\r\nm1TDKH0KAawry0fhxp1VEzMExMHqJHrlfBjnpphmmwyC0bhdz6lxE6wKpniA\r\nyHoa/ASS7WQCqzn6MDpkfrcjgYBDq0L7zDfe92/Le4FW9eceLRGdjVsq0Nfb\r\nXvF5YpQHpZvAhGFmd2WFpF5PNZ2OvLXSinLP6DT631Cy2tiL4YN7LfBtq6Hf\r\nyp9az0/8awSnHUe6DQHxC8CInMhHVa6uhwrbZYCCmPjml51mT9OXoOrB31kV\r\ndTigijyTNZfV5jOnB5iqLSaJKGSI8y6ykOsST3m/1Txiq5Q8Xz9LGeG3b7et\r\nOhek8UDWlh0gl3Wpp1DVtWRufO237CEOGMDgeAZbdPxxnjLW5WORJZpYr2MX\r\nckBuo8FL1WQy/es5I47hl6MqZ7Q/RZ+F8tqOZlHxVNjYu3sgaJ8nv2YhkuyK\r\nscP4cmYtJQU3U7K82YyV+064QKD+De7h6gg=\r\n=aBgZ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cc962daac0337cb566ce8384c436feef3a017d61","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.56","@apollosproject/apollo-server-env-mock":"^2.46.56"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.56_1648679431109_0.19451882384898234","host":"s3://npm-registry-packages"}},"2.46.57":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.57","_id":"@apollosproject/data-connector-onesignal@2.46.57","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4687e7d807528dfa006cd59eda436aabd3164025","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.57.tgz","fileCount":9,"integrity":"sha512-3OeFIisMaKEk1zTgpd7tPUVMA5wm4fG46dkfRpn7quW3+0NDeKjOmcpe/bCKK5urxkNwsFEOVDK896Zeh0vMTQ==","signatures":[{"sig":"MEUCIF04rsLoAeFQl0J1+NYslnz1ZI0RC+9qLPbXqk/kdaPNAiEAqQEOE8ssZZJDByEycIDL1VzcpYD/kbW5IbGgq25DluM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNrTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3wQ//U5QxdCrdr/wgo/GMEcuXYHCcgzn0DM0/p+vy5XSHi7Dj0Bfc\r\n4bQwaUGinlExt4ZIjDG8kOiNx4ksjEG18oJryIumFue/BvSDFOyCl7t63G3O\r\nT/SWCJCf73HKriIdsuXN7o6AouEng34LbwQfHhyYkJYCCLRt02MYJh15fITN\r\n9T8eQgF6MTzs04gLttRlD40E0MDDyN1MgPkuQCSSbZjAPyAF0eMJUxj4YJVp\r\nJ+vQv8wCoSRfIhp77zRp/BPAQX5MFeaWbtSsTThf0/nMkhaMCkw7ODAaBa9w\r\naNfYLGcBdNrrr/b4L813zNlvocglhzpIEWIr7LuxBRXENaKpDTXta5uRNAxB\r\nGGmjWfJAgJ/EEbY7n0tRp8GzCUU64JTCWO7VIBu+JJXoT50rpvuOz8euxIPH\r\nEV6ZRdx1FBljMpvU26+KEZbpDeie8sWHUtUSvnmzudYzW5XXGBVrM6NkPIxD\r\nZvtT4VjFlIuRCznqYF6dDtgsnDNfkYkH2sIAav43ApD/ZvK9tmBYf8jXnSQ9\r\n/b6G8INnUrJOlM7Vs0MFPY4UtXMftkXndHEXZosxPQbhGil/7x3/Xs9qBc0I\r\n6Mk4uFlvE6uUHl0WMeYSFUgy9MWGXjPq/+R+j7GaeG3dICAK5eoeGg22TTgA\r\nIVmw8ar+AChfxDzR6md4SePX/B7co2fnm9w=\r\n=oK1N\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"739d92eed45a2f3d60f6a5614741969a306c11b4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.57","@apollosproject/apollo-server-env-mock":"^2.46.57"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.57_1648679635255_0.2638957266208395","host":"s3://npm-registry-packages"}},"2.46.58":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.58","_id":"@apollosproject/data-connector-onesignal@2.46.58","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"73622bc4784bf444c763062e38cdb6b8756d3b66","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.58.tgz","fileCount":9,"integrity":"sha512-IWujOQvCGxBLrhno76W9NVYIzQlFEO6f9tShwmrQ2Te74qsWJLJHZeoAHy+txti4RILSWl8b8aWKcVWmhPSneA==","signatures":[{"sig":"MEUCIQCzRXODq3xP507kISzjzmOx0Rmc6oSqnE6s945kk+QzYwIgbdphpcLXWSxCto24vZjad8wb7TilReHiTfXMHnUfwP4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNttACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJSg//VL56r76ZGEJg+XGPJy2py5taxhqYn8GA3yEn611emmF9qyMY\r\n+Nb76DAxLY18VSoX47pQmT56RKwL6J/QvvlL2iyEJBvnVlOsGzwk3IeAhV9g\r\nlbNyP7j/+2pVv+t/VuB4SuLVva6DGVxJBd0e+apjy9NYwEtUsExAOQoiHatV\r\nZCIoU1TyaJGPcPGKkX43tVc3ncm4dotKeNakDqIXrwKQ1xT0//VVzAfkLefB\r\nZ0fXPfUXnSDKUIySglamz8G1ZDJcI0KPyAzdRdBbyc5qyIrsuEZfLmKyixsg\r\nu8JYCyUwvmGScTtm7/Ayyq3Tj5nJla60a/wgRBzJchk46CaMaRLNuGTTxtfp\r\n2aGeYC3C0wD+C144xG0t/wEeLmyL+isPGw4vrm/w51gK+82u272AqneWCbdu\r\nQscqiSWMbTk95jvW7gpeWQmq7RjWRhnC51TroMZHsGrM5iMV2eStQ2/ZLEAx\r\nQz8wjgOHzV0w0Z5k5zgFuLQeAxkX70fxPYfvthNqGLjNRKmq8c1pRWSe1ftB\r\nqIHZc0cDNlSe5n9iSWKdhjBUcrNiphM9Q9Yqw9RJfgbiSdW6cFPALCEyWObg\r\n3D92/+fgBqhwPzR0wUH7N3NbN0UG/pyoeZMBHo2mhyjaG/KVxDOW19+Mz7CD\r\nLEl4iNmDtqGSIuu7+G1akPY9PMpMh5ccymg=\r\n=0Hrn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"06b89ed1100b587ffed022637f1695dcfb7b538b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.58","@apollosproject/apollo-server-env-mock":"^2.46.58"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.58_1648679788843_0.7070598557579184","host":"s3://npm-registry-packages"}},"2.46.59":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.59","_id":"@apollosproject/data-connector-onesignal@2.46.59","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"112e15b7f2c4b59c64e7046f674e2f43837b01cc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.59.tgz","fileCount":9,"integrity":"sha512-ipPdbZtxoV8MBR51RuaTdQLCDaiY8w50sEo86VnolghK0+HfE8OyeYcQrNHoR/aRoxdYQDyh1nU3Uabmdc8yoA==","signatures":[{"sig":"MEUCIQCAXXhHBjgk5nswBypzArrZzqb5EajfTaKwtIUS4zd8LQIgTy8+7Skw0vHqnLPN3syg3Zdais6js4/mb2GR5EbbH3s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRNxUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUoA//QP3YY1h9RLLBlr38ygF7avNzZrDm99o6gOLb05BElmvfk/Cl\r\nuhj2qMnKQSuHeBajVeH7SmlsymmvK7pMq+bYwJUyO4zRo9VA+TR4qAzawWvn\r\nMwezdX64H9Ed/pBs/AX1lekMsPY+mGGt0aOdRoWAmSGYVrXKT06x7AuZCjfi\r\n1nuqYgfZkzLDJnHRoPGHnUWDrrRuclnC6LY+ttpNdE/kTIjkmOWdSX/wUtbw\r\nknw970YQzvr1dAVT19fwcNzq2fsk7ugAumAged1pHI53KRS52aCGruIL+QpN\r\nlmXxgKkaDOQFDhHn2XNIu58yd25c3VRcI5UOIT3saNkl8G6N15SbdWhT09LZ\r\ngJ6r51Kh9ZyY7evERhMl9oDi7g6EG3+0xsmeAs+v9uKAoLjFFZWAiDgkyEfi\r\nkMwymevQnEp7rY/huitcHH43McQJoTNuWTlJfmytCJG/rSMm9CdBlGomncEw\r\nMhp8wEOMs3kJEot1OxilZXeNsiPXuAV6CMhVE0YHfe/x4mH9urjhHOXviyuS\r\nfEJMbE4koJmcunJQfEjP48c/7ECoFz++sUqRbVM4XH7ZzntRkCEUv4b5i2tz\r\n7ViRksOoT1XwsJNGDGhp6C4K2lzY5cLNFWQIgwShlDhbBhDf+wqm8xYUb9sa\r\nxeNgfv+KC2WgQSjKmSa2kRDGDkvODXBgChM=\r\n=eKnO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"59847b348bab05c7916ae803e783e8259fa876ad","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.59","@apollosproject/apollo-server-env-mock":"^2.46.59"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.59_1648680020647_0.6299536807843913","host":"s3://npm-registry-packages"}},"2.46.60":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.60","_id":"@apollosproject/data-connector-onesignal@2.46.60","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d76a2e9d0feed0541979e051f61a6783d5973748","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.60.tgz","fileCount":9,"integrity":"sha512-vBxwk+WW0+fi0qYugqOE7u+sSz2xdlHkPzEGc5OUlv7YS0eq6dC8t66PsQPIjCE2CzEEXvwA6EFVTfYboLg9Qg==","signatures":[{"sig":"MEUCIQD70GkbmHezDqD4xpAaS7RJAxJp6IMHDXlqSSX7fWLIpQIgFzzknoTr8/Wfo9X3yRbxF5SQiaFA0+iLKCMzYaKAEbg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62023,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRN0KACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUHA/8CDTRSZZBe5C4aL6AOJd45J8IXcca26yBkXGopQH+VE07ZzKi\r\naUaTvCLwv/HrxioUue1VZUAVUOriGC4GZVXWalWfT0ngdvA1/xU3LbqJeP0R\r\nf8yW9tg9LLVriSrxxoEkU0vAQU64IR0JOaq2ShPLnHd6o6otoIA70W09sVNK\r\nmojuCwDc6Rr8WPCuKTsa6NJcnKdBACcqGcI9hKOGwfZcipnYA6dsjVnpu7w4\r\nVBY3QHPB2oNoJK8h6QbEGinXy7e4iF4DHpaxTh48yUjcA6U7SVrCx4+n79r5\r\nvP6ae9MeV/pniV2zqcBMPQ/AViQh7nv/YGhT/HQrA8REC7Qwjd8aj0q7CkaA\r\nff3Yj6ZaqJ+vO+BKsa+2AQ9ZkJeYGq8rGckKl08cSeE3dykXVjK5t1sItZ0P\r\nOuyUsQHuYUFn/n8cYaySri3laMWnThyllj+9mgPzBuxZwpOljsfmirCWjx9s\r\nG7hk7+Lzzc9cLGjlbv4sg6Biep0jRFxvlXg6K+A7pc/L+A5Xn7YcXBHnJf42\r\n7zLcRmkN+poIpBvpyC+kliq8bfpZx29IcckaW08JH728WuIVy4oKnZEd9q85\r\nuZIzbqGxsEVKMrWosZEV2efrZwdWZYRIudn6C4xOFwgWBqN8JelEhcsI0RA4\r\nOHrO0Wl9CO6/LXqDkh1J7l5So5cA9ilPX6E=\r\n=4pzo\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"050a3f57fef19a48044a62d0803d1b0c7b4f1ce9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.60","@apollosproject/apollo-server-env-mock":"^2.46.60"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.60_1648680202072_0.18209400445820045","host":"s3://npm-registry-packages"}},"2.46.61":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.61","_id":"@apollosproject/data-connector-onesignal@2.46.61","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8bf66eb1f69bc197a9e606a84940448068b36e4a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.61.tgz","fileCount":9,"integrity":"sha512-UOdcupT2F80KxxOgJELWACv6npAJI24erzvEVaL86zpkoc+kNvz9t7KzcIv9YZTfQ3gnzPeHvhgNZD7MRFmDjA==","signatures":[{"sig":"MEUCIQDP/YY4kjD9NJwExS4qG5fd54dLM+/WGBjP++9boK8FFgIgPNLrOnDMhNGVb5RynwZ3PN/ZDndQTUsaF4MtOetbvO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62213,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRN23ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobRg//STKyqQjNFPcnXbB9eUfUHoMm9eG7wz336bFB1/+9MunryAjc\r\nYqWBgi1lgQz6rpXClHwmCzU+CMcpphwViF9Ik3scQbRWuCkJW6l+YMhkms/o\r\nESc+4zvkOuX7rjsFbF6JFt7NVYshyYI5+FKz1UQBdrJ2zi/WAnEvYenFbHXO\r\n6nisEdqmMqIKTHUPBactuXvGvVVzPlKoFufBrkA1pwc7M+wzU7xb61IATXSn\r\nROG7GBzV9BQj+MCC75wIESd4x5qTMmJNtAuI11wBbH5efNl+mISExMJZhXSa\r\nbFC2k4Z5Be4g8PLSaIDzTLD6kdY0T08K7uazqYLl4OHqPEM6J2V0Pf7hLtik\r\n8POq5OShGhOstXTUcbveDyuBvPf4b+gVOPXFgptY2qfDPjKahEKQHqNehMUb\r\nH3+TtqBjl/Htk2F5IjQzi+4KEEtzRHyF4Vuj4nq50b9wQBx8CdipKHiPo39f\r\nsAyD4qHRmp30bLPkvBKh2Kbtt3TgqOIzhKPHNyxq6z9GJKIq2OgUhPo2LjEj\r\n/MUMTQqGYvzT3mvmJj7PhHjIIvvkg1arl7c9W6xovuQNWfRq+iPux94mShgr\r\n/i98APVwzZCdaWwjKksusizDtfCnoz0I6mqODzWxbsUhdqodVX8a/R3CpOzS\r\nTz//dw2jdDX/bmTng5m7WbzqRkOqlJA+unE=\r\n=C0k0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6c4ef822ea09370fdaf19b90ded0fd4b359eed78","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.61","@apollosproject/apollo-server-env-mock":"^2.46.61"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.61_1648680375588_0.31246096395911316","host":"s3://npm-registry-packages"}},"2.46.62":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.62","_id":"@apollosproject/data-connector-onesignal@2.46.62","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"45381c755ab4e88921df54722e9b8e4a16a1e892","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.62.tgz","fileCount":9,"integrity":"sha512-E+rZjMSWid9Ae4hAysR0RplFniEVR+fnOeexpgrEv7P2EjplzFmYakGpIYzJm4W0qdywwX8qQmChHw2eOx5/3g==","signatures":[{"sig":"MEUCIBjJRbvhg84R+N922nDwhKbiYvV08dbKn21qytuIeCYvAiEAxQWkVmgJqeJK0SbJ1VQ11z/mXQTFKdv1qZAmN1ccXNw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRN5UACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVNhAAhSFK3mutVU9yAGbaXoQkLTCz7+ux9zyV2ns6kBhiAmMV8Hfv\r\npL7tiN5cEewsYlf27kl901iMOtdue/ZiQgzn2zGPO6UEGYQDq60bsYGL3cao\r\nFvTeoygehgG7yVWWiF/UmWVqz7XmMNBeXm4G/risNfll3zRXOSJUs6zoJO3c\r\nvKEjeyj7Rz1hjRirUKNugFPNAtCEDwDxBL8bIGRztss3h/AcXV4A0GMKlZ5a\r\nHLAz00lhFpGbvBzPg+TDSalLtc/pZIsaJk0zco1x4Vlab1HkN3SDMOcSq6gf\r\nBKkJTf2Xh0xJQGXXMhEKbHpptslWGV+XiPC20veiiHMLqalFtPdgMw3quVq/\r\nLFhgMwPD8Jp7rTfE2Cgzv5LcZXN3n84aa//3G0IeNYWye/Wzr3Ov8Kc0Ig2D\r\ncpVLocs2wrLBPU95xFFLX/uPvVcbVwM9B5LpH1qdOLXSRrC0klaWkE4Kr0um\r\ngkToCCMFgGQ1sFJX0hl0E4jTocKh0gEQAzlwdvFzoNpwrtK+Pj89/+tLsW0p\r\nxv1O94S24h8txv0p1LoeXGZ+0eMlXDpchIACvNkZn8u2joqWZU20umDXw4Qh\r\nwKy4C7c2KQvr1y2MtAnaETivf8L41bIUmnnfElXM8JaltlF7FLeccXVj3PbZ\r\nt3HRrnlzakad51A+9GHxIpYsDg6g1QW+aHc=\r\n=yqye\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"12886bc38d722934aa5739f2090e7ff9bf936ed7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.62","@apollosproject/apollo-server-env-mock":"^2.46.62"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.62_1648680532134_0.04231406764192047","host":"s3://npm-registry-packages"}},"2.46.63":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.63","_id":"@apollosproject/data-connector-onesignal@2.46.63","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a1579b62a0fc5ff351c6c5fb3c4fcb32d0a440d7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.63.tgz","fileCount":9,"integrity":"sha512-AUtjltgVTJkiNhuFM1qr8Yfk66eBtHtKZ1H+Gw+fTf6I+fHxViY23DYIkv1gJDuYAcRtCqoRuhaK+Xkljsac9A==","signatures":[{"sig":"MEUCIH3QaMfmDbyMcDJLepNhegxE16fDz8zlzRMhXmFDKJrpAiEAuYceT8BD98tme04hEtDZttcX1Wx/Vg5Sas6ZYnaJO3M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRN71ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojURAAhf1IrcogrXi1BSBQd9NR1OQliTNu+uoqc2YGfVbpzvAptWpE\r\nverruQzHxzYDZaxqk9vXnLj4DHHjbFiqcdIOo63Wa3e6Liv3C0hk3q1uxQtU\r\nH1RxwT074u5KwYRec1GyZ80cwMf4gdasCpqX+lqorupdlMVckR2szh+eFQ1z\r\ns/n1Bdjo9WuhCJF2EIg+lYyQ/Nbdk+UwNsB8oy8quZgQ1G/18kPOXRKM9oTV\r\nQvGPupaa1i6jyh+9sAWW9W6nDIhKAWZa2I1ezuF985DPidCsr75vQOXG+9gr\r\n6I2rhSfBtESPtuFKZBAnKB3AnOnXKR4KCsfaUDGsz3hlAUhcLa0ghKNA9k0l\r\n4Y9hdbpIvbCXIQAG6i3GdgH1/GYR1sOmzlsjeKQhS5dOc5rLg0gvIrK/lkRm\r\n2AiPGPonjHOKpNhDvznkD90wedQs5qUWMwODJiqNx54hbmehi4z4mnJFij9d\r\nQ8BzELIemoTBS4Q5SA/4ZMR0Zy5q1JLy8sWYTklhe4uY934LAuVux1fVekIa\r\nF5j2t8vMv8xcTRvRqj4AM/DFWuz9lBo7PAO9AERkaxQUAFVG+505k3SNaq2A\r\nqrA32kWoV71lrH9ixa7HCfTyoMCA/waTBTx+A+t5LvFFM5C4ZQ7uuRGWpxF/\r\nSYwiOFZmlNztyTKqgJi3lEutRMkOhRBStTU=\r\n=lbtK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"9eeccf69d2b34823f6e946ccf9e75dd472192d63","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.63","@apollosproject/apollo-server-env-mock":"^2.46.63"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.63_1648680693145_0.1516354067826271","host":"s3://npm-registry-packages"}},"2.46.64":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.64","_id":"@apollosproject/data-connector-onesignal@2.46.64","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4da35f57f5ad8992302192c9b01126b56f13d9d3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.64.tgz","fileCount":9,"integrity":"sha512-JWta9Er0C13gaS7tg+Z/gzFK9YU+sbIaBOjA31Os7yLevYn1DtsC0qg0sjA9oKuD0F9nlAIrMlAtEIcaIJnedg==","signatures":[{"sig":"MEYCIQDU7klqjGUNT3kUneUjbBYynB6qF8V8x4/tn0oap4VITAIhAOqYW8vVvzLLhKFiZ4hlLWTYdHJ3DNsOjSlBvn5oCRKO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRN+fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqF6Q/+NfFJHecsG4hiEiDDeTD1FI5hDQNJ9ivQcsASDtePx/X1l2HC\r\nSPx5tWP0PCkWG+4eyv3KIdO9j/Lg76dFTA+cSRcehXoHnu2PnppNwYZP54a8\r\nCLfsG5JJA4Ul+l8fNayl2U9KDkU71yf51jeS9MzgvcHaJjGOpxA3MXWwg6jz\r\nz2UY0cvYJp3UHYAgHl4AnnfMdB0ibi5iPWw7/r12wZCaQskBdNqt9bXKqKTt\r\nMECm0XEskpCeuhpjk78XT2X092An6jGmq1e/QaWovji2x6RTotRUmAMxOCK/\r\nwVEXCBjBID9QW8WAW5pg+8F1euMtzbvuWBx4x8IyQJwhjTiRG1GvZ9PXEGDT\r\nds99mYeke3YCEgUrxbit4kMW1+yXWzCJHeZGyaVEN3m5JWC+HmCis4GYRGLi\r\nN38U8xNJk013KwDaBdcBirvepEvPLzzSzH4X/6jJ+0kEYAZhXtymbkPwDwaS\r\nB4QUY7pG24WejDzG0o0qAmev5fRviZOHSFDW/CmVMBk14EMZW6eHy1kEiRc7\r\ny+RIlspkpTY7evEIahdhS43veNrBVIh86JbNQcmRnfCxyy1h2YIW1OTsubF5\r\nusxOyns8DKEwLE7Q+Yj3avrGBBc39M/EYeRUxFpm44JXTDCd+6xuXU4S/yxd\r\nrLLg3ohAoo9A3QkRHzdeUy6p2h9lPJG0Efc=\r\n=ADca\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"55669d22400dc362a438e03c2ce35d76d0d2e883","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.64","@apollosproject/apollo-server-env-mock":"^2.46.64"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.64_1648680863096_0.3392326211847414","host":"s3://npm-registry-packages"}},"2.46.65":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.65","_id":"@apollosproject/data-connector-onesignal@2.46.65","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2bd71b174df790f4b8f1a1cad118b4cec99250f3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.65.tgz","fileCount":9,"integrity":"sha512-Io4Rfqwg4jL2Tc5OBYn0OwDwt3EWOCg3ABDyRLMIk4s/yfH//1BUqfrZs9r9grjx8giHNH2aK9Bvj+13b2St7Q==","signatures":[{"sig":"MEQCIBl8YHbSl5gK7eOgl41knmoDLlzyRJc5qpAt9j3U6UizAiAgQgbJvJkHoPwI7cIqKf1LvZQtTQHIi+qHiTa4H7wmRA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROA8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqxBAAgTWbKn623wXMor7hmHDBCcnTtM0Spl6HX7k+oNvrLSjb0cmj\r\nFA5WgRVA7FmdpCpONHr99p6D51zdiqa+K2/dtvwhv1gflMGlyLnQhFKeGgFj\r\nwmRV8s0pQC8giY3pSWiqxiez8ysztmM8lu5yKWjU4yp/tQbN+p+ia2EXkhWZ\r\nXVCS3yVedY8hJ0JINc2T7KKZB+gqig7/t2lBWuiIYhGry858Pf96ujaKyT/w\r\n7yT1t7D8VNL3H5YVDZAx2cSuSa7MYLKPTu0rVSbkQk54vay4QGiGRwWFRxIP\r\nZom6GjWmfb4CpsuA9vR0TjI4N6VJ+Jf+HVFnJDBkkUtzNpNnLgT3P45F+W+3\r\nfSzTeTafJl72tcWdr/JJKwSN4DF1i7ftstfqb/6GyM1Ep/NuZ+xMPogiIehn\r\n+JCW5hVkMHPs09M4ElPr9v6853d/wyPbu7smlJodIX23wWXOpYY3vKW7FFT+\r\nlkpSets/vBzvN3XG2XomctK+TowILUcgAhfT6+JJWUl099KVMJ0IAt8c2Vgm\r\nPr0rVE+cnk7hZ1RNn+RGrhg2tHShIRB3Kpf9a9V00aVKooFYWhK8FC9Epjel\r\nVoYHIEenylu0RlEkM00hjLdtPjvgrfNQlTFj2Iej6pNq7qmiojTF7WxfYRrf\r\nc/GbdBb7AsMzED9SUsHgg391IT+5QHjQ+G0=\r\n=XLUw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"028b76b4d66a7ec1d21fbccb07e7f56949194939","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.65","@apollosproject/apollo-server-env-mock":"^2.46.65"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.65_1648681020217_0.2685151539083932","host":"s3://npm-registry-packages"}},"2.46.66":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.66","_id":"@apollosproject/data-connector-onesignal@2.46.66","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"460b202a358e4b1cdd9bf4061dd913e9a708ccb0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.66.tgz","fileCount":9,"integrity":"sha512-93QYCCFvlu+FEXx/WCGwAW2vAu7p1MsYickvWkZ8QZ9IVc0uuKTWkE1mmtvsMvY2R22U48wY8NAfEtGoxxJ/Mg==","signatures":[{"sig":"MEYCIQCgunIR131Doo5vsKhMMOYPxd595jIEGif3raVM83fHpAIhAMQN+eO/O/qfHo2mlqIbs4wzZsTcvt/zTHyy63Cs+WJ3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRODbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmre6BAAnc/8qBXYFDMGoWZlda11QVrox9M2o6QFQPXqITEyknvleSHk\r\nM5ymsZdbDFKehpxJV6gvI4iNpplWLe0ATRly0jmg2qMaM2YlMP1dzsczQ1t9\r\nmQ+hDve7bWOMA45/i2F3GmupAYQvKQNc9r3fs9a/cnPqP/tpRqMMbe6U9m02\r\nDMczElu/gyzvOj9eokFd+bfKBUWfsUOd2xHAxoKd9ZwjEcHz2YxG+hvMgXEn\r\nymCzhaNPiUHpLknd2rBqZs2MRY2q+UJL3YP0nVDm6uxfa9YjJ5To4Fg63tVc\r\neexAT8IGBgtd4WT4CPOY+7ndAhsNjRlDb9l4NkbMqf+TO2PbIS3FGhuM/h8X\r\na55SOOimMQ72qYw0znUcP0V1grEin8bNVexj7Dv09LTqaD8gTOuBYBl4m6XK\r\nIbwqR3rV9Y0z3FD/3WOioVW+xpAc5OC/6kLY/e7oLq5UAgLbxgU0bMxh9Gtw\r\nqGhxkyuA9bkXAqES7yj7zY9hN7wbYpuP5JVCs6IlJly7lrgHV99KRnCnUctM\r\nZkfnJyxOixT5yEyRrxCZ+IfUUneD2YxyayJLj/YoqmWpUT0ofTzuWuXc/cNJ\r\nNzFEDZiLqYKF+v1+5vHvnuca5sch405rcK6ZWh7sR7gR11snEFmiMP+2Qujl\r\njxIm2+rH1xFE3ZL6QExthbCZZ3KicszJ1/o=\r\n=vAku\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"bda733e498aac0dde8a210dc065f0941b75aa2f9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.66","@apollosproject/apollo-server-env-mock":"^2.46.66"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.66_1648681179366_0.22393126839616118","host":"s3://npm-registry-packages"}},"2.46.67":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.67","_id":"@apollosproject/data-connector-onesignal@2.46.67","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5445f8a7de819324f3812187b8e88c863891e620","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.67.tgz","fileCount":9,"integrity":"sha512-qMXhKSrE9HKt2/3L4zTUvyN3c2vRjbVNP81G/gUgN3oRZwpkacbPv5EIL8+82iaZ4kEJ4qdDACCCPy+kZeV8ig==","signatures":[{"sig":"MEUCIQD8M33nMFUrfPTSF4weSjUReZmBpiFEhKgnse63Y5KvRQIgLiPnFY/Iyj01AnWnnquAuSfuNsS13zGV3iNU5GWPmhI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROGdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6zxAAnB2fgQX8NBIArO/ywaE13+26AGpgFL7Mwt7hJrvc4hr4gUz0\r\noqVfNoW6B2T8qD8hIv2e6wuqoR0lt9nwB8BO1j77VbdZKGd4JjqXombJ7/am\r\n5ie4MX/LtKONCICQkBYpAxxdMBidZqglYTU64gF0Hm0oajTG8fOey5m/kkAI\r\njDUz7sRrcVSiRVgVM8L5fuie5wf7VPcuKEFRbCUEJRmwegkczRiP2Rpp6LIC\r\nr+9dO9GWjAfUYGm8Qh/TBysPEZSiBJmqo9e1h8WbNg1miwuLBt2NW4uADWLE\r\nlSSpvT+8tm6m32g5cOVL3vfRvLIzj857HxeRZMtsB3J1zZ9G+CAiRm3WXzs0\r\nJMsD+oLw+4rQ4fDPQpkvkty5RcLvlxLMh8eNf1HjpaGaLAOCfy2GntKri5ja\r\n2tPlcuUeAzSvDjcM4cGFeev3pRQ4P3PoIjeS4IQebvHnNT0noN5U+oYabWF6\r\nihtmXONE6PaUixvTHQhlxgFdNm4fU28P8wHx93r1HKviWuVjdSD8Mk6fpvYL\r\nnOAadXuHpTvauivUpiQ1EMLzA7RYIQmoBd43zRVT0bBy3OthDq7ifokENCSu\r\nBml4ZzIQ3WxVMdNT+G2gOz7fVEk9/NlN7m6FIq2bG365VNlAOSvYjRSDPhj3\r\nNov9Nylq6Qg/enUlAbdJ5MGNLhzj+1UXxto=\r\n=FQLw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"fc2f7b4875b1dad439d96ff316b95bb6df934719","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.67","@apollosproject/apollo-server-env-mock":"^2.46.67"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.67_1648681373155_0.8139813286232784","host":"s3://npm-registry-packages"}},"2.46.68":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.68","_id":"@apollosproject/data-connector-onesignal@2.46.68","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"cfc8da12c771b68c2bcf8de7aa6285531586d889","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.68.tgz","fileCount":9,"integrity":"sha512-2Jv91FyfLdV8WLOQdmUIf/uJcuUL4Gd7TKyZXYHc3JYoG+PfnMDkyuyA0cHeAJ51t+yVX8rjibO1b0+8C4JmKA==","signatures":[{"sig":"MEUCIQCOiywPfOjs8D6XG/ZpXGuDfSnlZFEB+kSlaJH9JbpHVQIgFy/s3V9S9FYZBDuTvDx8u4bopOzqy4aJdUMdVqotcvo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROJpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMRA//VWf4RWFVXufUg4S5wO5RWyF0vaSJwdhgitlZ6s8Fprn8gHfp\r\naqmFt4cR+LP9zI1WRn4DxmrIs5BruMTI1mAt0cS9B4ASVrh9VUKj1F1p70xC\r\n9UMoXNJfk9gFn9b7cO8M9+L+yWMrlOZpRhV0C+v8gIUOxEDSVKab23+28b4x\r\nJlQZnhzm6ACwcNFrD+Ep672QFyGoI1gCeyVQsoU/ULevLbEkYHTTOuLXSpK9\r\nfGcnup0P00Cw9Mo5+c7itQ47UOPhf+Ql/iPAI9AFgJq0CpY6sa5IZtNdruMh\r\n25l+amxi/5QZXhn0kjMObwHPwuJq9ka1wAYm6hSPhJ/DpQ2mAMJvw95NfdXN\r\nGQIWb9CLXhRKH7rL1dI49hwmirks8nVFlpvoMmxEivKK0IjYsnMEpoh4/DIz\r\n0o/vdVmy0VIUil+fvr4mCswHzy0uoeGMBHmdDnKFCHx58K3UmVPYUIGVn+Tl\r\ncUXjRfJZBuQjZ8KQy72VF5tUiKVkYEBrELTbnBLThOF3L8Wo8cSLGa08W6IF\r\nOwFmfevIyMThRik7kK0iyXn9m0Q1MRw90u6xtNsKXzy0ym3n1kMDB0cAZcTX\r\nIWvt1F5RdGIGbNaSsH7zYrFEoCPS3y5MBQxtXU33SmzuOPcSZLMVQbd2lqVg\r\nsrsY9FGGWxyZ4msf5bAJPxc3j3/ZJcvLJ3M=\r\n=ZM6T\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"de18872fa2058cb48dacd4b036eb361ea4ec201c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.68","@apollosproject/apollo-server-env-mock":"^2.46.68"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.68_1648681577000_0.7115754942818429","host":"s3://npm-registry-packages"}},"2.46.69":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.69","_id":"@apollosproject/data-connector-onesignal@2.46.69","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"999e97e759a0bc740fffd5ba503ce73d960b5a11","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.69.tgz","fileCount":9,"integrity":"sha512-HDE/Ws+jeBwt5ME2p0mQBrkEWAKR6QLRoqm6+51uLK7ot/H7w69MW2hVrDlpXnW6HPCvoJEHPqR1f4Trv1WJ2A==","signatures":[{"sig":"MEUCIEzeRclMSKVjtU7UB/Rg0WanhUucs1P7b48SB3eJy9A3AiEArkT9QpkL79xRox0qSADRpgknzMY3srMMHez8y8EjsXU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRONkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocFxAAkPIRGzfc42/WY6cDWOtxZXymuwhhTpxyhveVJ+G0RWYsaQnR\r\ni2Xqb308+dvtS6gKVe1U5WiqDHfs3PF+WUTUXvIviJPDK1LlAYbdktGbid9i\r\nvfAWCd+cpWTDVNsSk37K5fCGiI1172i7QUSCuEJyy7BZo3tZ7t67sTp+A8Zw\r\nl2T8UC5g9iTWAOq92l7jG60zgL8CudCWkrzviWmKzJN8L1CtU96ijSWaDChu\r\nvw66pagCpbDULslxMt1z/wYhJhHy01AMX91O1/M6bB776D8EMYsD1Ae3452i\r\nhIyochzDtd0vnm71wMnl6womGLhdUNW7OCQRp561uP4HDN1jMlMCvIUpkZ5k\r\n9PWbtRF8bGh+7+9WT2Rwh2dzWCjLmbsEbHjXpHEFG6+XSTZPb4ubjn1I5w4N\r\nvl/12hHRs6gcXTh+epNwI++I4RMDmBfmVQDgSFbmY6dhLtoEqewHYISqhBWM\r\n1CTRmssfozcLXJMkcP6e3R7OztTrPDrp5+PYwtFM+6r4ybKmolGM3LXePr+9\r\nacODbc933w+MbNZFkvqhnNMMc9DpVzymjHSxmVLQCrssW1Q4tMGWR8HOa1Gm\r\nWQpWjRmFf7YH8BCPrapsRYhhmEkb39GSZr/DaLY8ppZR0X1ETOPL57Rilddu\r\nJ7lCNeFjhoJ8ls7e5PIeo0Tj3maP5GbP7lI=\r\n=SIa2\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"56dfc4ea9245a5a7f62b17186356159ceaef9274","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.69","@apollosproject/apollo-server-env-mock":"^2.46.69"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.69_1648681827683_0.9921804292001768","host":"s3://npm-registry-packages"}},"2.46.70":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.70","_id":"@apollosproject/data-connector-onesignal@2.46.70","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"db6c1ee4ae942cc64883453cd4cfab8289d259af","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.70.tgz","fileCount":9,"integrity":"sha512-6O0v3Cs3bLoZxy4EdSTAFEpK9jACSVGlAGPbiGtC0/ZDVDs+1ddiS8hhaAIyJWGJc1nrBWrvCwyXpeKvPyo3lQ==","signatures":[{"sig":"MEUCIQCO8OWWGWVOoscLQgChmlpzHr7T0mZa3EexwJXGh+tfHwIgJfit2vQbk6IXn35ArIElBhNAljqcRSaVrBJwseIFvOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROQ3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohxQ/+KvYmxwJfaWDc73on9X1DR31cRbZubUVi+DclRZEi5yNa4Ad7\r\nx/UzESWHUgfUJ0o9bFkh54rcz98qZMAXTDoBMEVbjc3+MysjeKVJCaujJBKM\r\nr8+hadED3vbF6c7FNZqMSYysRAfgm33qfG26YLdVM6cPklOJ+9aTAz6G9nB/\r\nxi9QRUIVFW3yBiyzucwPqtTXU1kQ22whjbG2sBdxUgj4tY4VHsFLiOwbckZU\r\nSEtjA9XD2udvRdUrjhEfXLuUXLTxBlYQJI/3YwoWXnUtQ5XSr75lwYn27RDs\r\nYbauwGkAzHs5DQfy5X9kKQf5hXHLu44bG3sP+Z6ArrmjP1KiqpeebYjUx+vN\r\nXMXknYxsCCS1BB330u2yk38dYhc3OCCybfLYOlf1z/+OFzO9pEwBIt3D5khe\r\nVeepK4TjTMLM+FC1nhlgCGWSYoG+i1Lj+f4p9txxa547VSuJt7anhYcb/PIS\r\n+kIdc28ewHJqYIq6NFVfNqVQRKNH6yJe1oIjAKDeosTpz8pfpELznYf2KVlo\r\nwFMds8iKpeqsJeQW3znVBE7TioAd+Ynbvj6TQKZHZxGINc+kIYHDfF0pXc9I\r\npHuieO08zXsDbCYuXXXlw0UHsqszS0+aNMyJVimsdzYtpsRKbmY+Jr3Anx1U\r\nqK215zu3FPWOSCxNnuvADpSmj5iwkOOcSrY=\r\n=qDP1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f09b3afe5fb345950cc9820563011fbdaae4008a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.70","@apollosproject/apollo-server-env-mock":"^2.46.70"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.70_1648682039243_0.3987357722100282","host":"s3://npm-registry-packages"}},"2.46.71":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.71","_id":"@apollosproject/data-connector-onesignal@2.46.71","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"15ace27a07b444f2e4bf9905fbc620c01c748c26","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.71.tgz","fileCount":9,"integrity":"sha512-C3n0/ApO9rBOvNMmybPuvdwQBTNAON4Y9Og9mgjXOc6En0ROuDhPVMB5WiFKi2yx/qXm4hWqBYsGlv5ayv4A7Q==","signatures":[{"sig":"MEYCIQDAr759zANwyQLWrcJ902Kpqw9di4B/r55rGCiT/gDK2wIhALy2xuG4aSehTQfK6gnDlLmpR00ZEtDoCbQWqiRm6bsG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64113,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROTdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPUA//UVtc9R8S5B+QLge9WNgGz96xEayKq8gngD23+g9Xp9Qre2s8\r\nDo/Xz0QmtL+Q7MJAPXimOOk5CigEYQHo8gU+ZFDyBS9+4v8sTvM4eaWc5/Y9\r\n49FwKU1pVu6iqtDcRGbfrr7I0D6eyp4e12BnfemakmJziGq649Q98X2OqxKZ\r\nyxjEe8eMq25/tmucvWtAvhaWzlF++2HxNTCXsTO/kKRi1I/7SejVYpW/UI79\r\n1ZAYzcFrlPA3+AmyCpHolR9NnjkKhN7KHXRLIpC5lUbrlLN1dTYj2e8JfVVO\r\nTrlJs1WX8hFi7jNGqSkNRhBhQ5/95DTK/wDXRlsjN//Th+S9NfAc+9gzg/2W\r\nXZpxl7Yis0NtAju23sgOWdhZshBIY789y/AEEMzkpQEKWssml2eMcHaqfayL\r\neTqntE/pHyK2sQTtjnpMXPRO7tT5/fnyWasM25QYs9T09mB9aK5ysrTyVfO/\r\n4o9cYqyapU778ZzC4e14jdfLjHdXOaq4D3fL0uoV9GNGvXjPvCJHsLRZccFZ\r\nRb2AJLCcKmLxOe7dL9n+4BFky0NTX2pUqAWAOKU/7jZfT+Oqac42QxM5Oy37\r\nmyCSd49VCFlGOybiR3bjKTNF8T8ywlHW5KNs8yMC8LBSYBVT/uYeLjehOSCD\r\naH7uS3t8puRep4GxSv4qlSiR2829zqh6egA=\r\n=Gdx1\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"bdd217f24e842848fb8c712e4bdbc6030d846b1b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.71","@apollosproject/apollo-server-env-mock":"^2.46.71"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.71_1648682205345_0.5688384250864269","host":"s3://npm-registry-packages"}},"2.46.72":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.72","_id":"@apollosproject/data-connector-onesignal@2.46.72","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a18d692fb34858337db78acfecde4f79524dd70b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.72.tgz","fileCount":9,"integrity":"sha512-sGi1fHT+nQmDMnupGNf1bZ8LflIY1Gsar15qTVUE7ETQsxd4Wmiw9Wa+TC28pa8orqW81MjAYdxMDeH0HdayXw==","signatures":[{"sig":"MEUCIGyi9jwhMBjJ2l3ToPgtZ2YC4olPkSuWQ2cRqFmPqA42AiEAs5zWBDfSp+iiHWWFpgbsgUQimQ1LMXVuuo8Hh+pxENA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROWeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAtA/7BTfexOqEVaJLlmX6Oi0l0eroyDH83ZwaGp04A4CS6q3GzE1d\r\neQGuZ5woq3ZEZxY1rxwMXNYdiIlf40wqZvvW8j+0kdj+Ixy99dl9E+k33h8h\r\nQ5O6n4omL5ZKOaVcVa+XwcQ2l4IErOdIXryvV8kCbK7r0uqJ73t3ANbgJ0YW\r\nLv0OJW/Ha0v5Zv+hUwRhvNTaRI0ULLvjzw9dvqZiYJhERJt8n7fjXAgXxpcI\r\npaR5Kpcs5LZd8Wwcyt1jFRY7pk0sYim0+CnA0qE+vNrTCyhCRWPkfrQlo9i0\r\nXi7A4FGfPJNDj+YiY0n+s6HGKP/9VFQrDWIxl+csyj3Jxi11DBP+ogTz9m3V\r\nB+10K3E5ldEgDuBAZJBbVdhzm/Yb4BrCzCzBsmpEGQi8D/UGj3A9zTJE15jo\r\nw25y2KshgNFeecsNXltBb81u4Y0uP2ka4FiKzqCETDo+h2r91YJczPRQS9rC\r\ne0gnjYN0DYBBQhM/uWTXwRwJo7OlxGoggMM+THXjktSY3W3HmWGrZv6NML9p\r\nSmtvWOn9KZPgkgYQEfL70IL1CqhYJOJmBoE216TaYgOyO68aHbUAVyxMGN1H\r\nxo5CkqkoOb7zk8egT0KbHlNze2BgCq2jbyNvUx60t19hXqBeIeko5F1GYOeo\r\n8x0LyE69Ti+dNBBiPTIpg7NQcmcn/yr1elc=\r\n=FiMH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"402fa1a293ee8169f7f9b158f75c8d669d8c6fbf","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.72","@apollosproject/apollo-server-env-mock":"^2.46.72"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.72_1648682397422_0.35446393796855946","host":"s3://npm-registry-packages"}},"2.46.73":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.73","_id":"@apollosproject/data-connector-onesignal@2.46.73","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"605b88a24e0c957654b582031dcf7b0f9d329b25","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.73.tgz","fileCount":9,"integrity":"sha512-15xbzmmcuXKEau6XZrc+rd3c28qN0AWmHHLhYN1Rp7BtUZoxIbwYnRAx4sB8X/L69qTqb7VKuyczbxXrU004WA==","signatures":[{"sig":"MEQCIHCEnmBpAsUqTyEnIHESKxCXw6J0pxomifp0uKgIm1bVAiBnk2Tf2gjiFlR3+yFmlxl+5CbCCb5L+eNvoFifml/CqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROZ/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLUA/+Ji2wsCLOSanCp/W9om89BwPQtA9Dgyy3AC3UoVNLVrdPl1Hf\r\nzTs8anlyKKdjEGDg56MPrWsNEUCx5123hjvmrimLbt7Mmt3HWkM1q8CqfSRz\r\nzXAe93PRYVCFCD0prp/QCylq7ZK9if7MzyPQZzh+rDWaSRo4hUvV9EjJUA4W\r\nZw7pDIZ41r3jIcIgu3vnF9nJHThmh+OEJ1fMLqYNZpXm6w43b/188VhFQXM4\r\nr9KE6Z7SMlnO5FWf/AxfUjX2c6vbaHHsckqA5VqZDFb5KA+3HibX06ghmg/f\r\niWeU/2dSYjw78bbwjGM3CIepqhPNC+1OKIVXJwLGMpGNJ69gKoOvIdXSfdeR\r\nBJtfFiUv4nMX/QXtGMKUDE2N6fCM0a9v3HkIZBqEhIMX+CeTWItk0vsQfuqh\r\nmz2zwd+eB6FIWzgK8tUk3LLN356vRsodmny548yWx3OX49eLZ+YmoftNs4mt\r\nZtJFhIMigj5aqg2zpn74pU0DkobvzFFQW+5zf8YKdQCHnp8VM5NuqvtRFmQP\r\nWCxc7ZVjDzPzzrUFSrNMSm9sCFUP4LF4zwFMejruXllgerZUpV6f/mRx6+Xf\r\n98UAVUqIEvRXYThZZA+WjQlXgydFxrptikV+WKlY/vehrxLd+PMb9F6gyuWC\r\nA7uXaL6s3YesZzdyJu9QN71cNbPS3kCpxFY=\r\n=Gbc/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"63a0cd22d3615cc83fda57521f6bb735ea2cb1c1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.73","@apollosproject/apollo-server-env-mock":"^2.46.73"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.73_1648682623423_0.5336992795748912","host":"s3://npm-registry-packages"}},"2.46.74":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.74","_id":"@apollosproject/data-connector-onesignal@2.46.74","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c96160e753ebe4c04ed226285f3c26125a9621fe","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.74.tgz","fileCount":9,"integrity":"sha512-vR3DXDgu6/fdhf7pTTbPKUkTGStCelYntTk2HxQ2wrPiJ4VWK+SfSqHbkKuXiYwNFOwbGOE/UI3C6uWWMm6qjQ==","signatures":[{"sig":"MEUCIQDo9DCMGVnGFWQNbha4IRrao3FqgLhZ0RxJc8NGRscteQIge0JfPEQTlXdcgIuD2/PUdizq6owRQ+WXPYmD1vWN+mc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROdOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqL3A/+N31WzBEJHMsPhqgdc/jV7Rp4aZLhKYOS95aIQx+H/yQCqlV+\r\n1XT2jtpsnlAs3L1JTeLuy0R2cpJ263+Xydv1g8Bl3ZQ/hnIPLTQZrPy9sryd\r\n1QSWHQ17VFTBfN6/o6Lvcz/pZ37N/bJR5QAySZS1sGwzqWQ4McV66leJoULO\r\ngaJdsStgG6MewFbTAujpOO50lE135iw48ZtFN4BPrT5v5SDfZXmtZoaZPrET\r\npRSGlJwq1VLxPZ7/rSnSyFSFPfbdjYfrhDU1gvvvgczcpgathBkZoRyoxzZc\r\nIv8+FV8mPOHTw/sUJH7MGtLnHbuwBVEb43GT30PcCLawRxMUGk+WUvJ8RQzr\r\nTZIvrpO5HMIbX1vbBjwMaWf1FpJvCBGW9km/NqCFWnHrbj8sZc/TEwf6d9HG\r\nCjugJfOPA1A3dYPV4qf6Dq5ZwtGLGLlaATM/rvGDTHxnLDasTjre3ztrp2iu\r\nfnDdfqYVHdQqN73/qEeF49UsrjS9tffDwbwhvoRAtIczK+wAghEF5n4nlFtE\r\nkE5kgKK4I0hoPyliQobwD3HPga/0ifc8fZz8Zq5snNY6L+5QApPehMzsp0ae\r\nI7sDiweCVRzHxHJqjT2/tGwYM3AZG5jUo8P1Jz0twrztTHFwzFIVjk1j4oN0\r\notNIP6zciNkyWgJGEH5oTZLYBqype9bKyGE=\r\n=v/Nz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"0cdb1a8a5642eab53593b984a21237ee4dbbda04","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.74","@apollosproject/apollo-server-env-mock":"^2.46.74"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.74_1648682830113_0.3494477250177166","host":"s3://npm-registry-packages"}},"2.46.75":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.75","_id":"@apollosproject/data-connector-onesignal@2.46.75","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"46f5f9527874e7ef8ab34c5725fe5552f2f65e79","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.75.tgz","fileCount":9,"integrity":"sha512-kZvf6hki0XBMxlJSLAZKMUAiJ46O2l0BppRMQLWM49kleLTUMJ3IU2EWkX2dEEsO+BiJmL+L0790Swq5J+jvcw==","signatures":[{"sig":"MEUCID7gQo8K0Dte1WqaD46Sv6xy7o/oxAP7U2JknGk/hItQAiEA31pHnZf7UA9+Z+KGRVV6pvrGES3T8OOIo5b1tCd97MI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":64873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROf0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyXxAAnQHz/qrd9W2FOmyUSdR6XXTBdsnBalMV6GER35ZL5mmhGND3\r\nj7IFlVG2+sQQOA1NYDnyhnxRICGm/ykihr/ZUkr3kJiy7b63+jxy/W92GIzv\r\nS9vyIdhgl05cM2Up1FqDUIpnpioziC1NKzHHXFvU70vDctlCibR0PaSJOjuB\r\nBmXjYyg0pqL3wxUTDkVL6HdHOBi7u1yk4SwR8EdcqeyqqsHrvWt/eemMkeFd\r\nlVRZWQCtAesF8R3JPA52QoZcsZZucmF2anGibOBeIBjqozIJOBdDx971UJ7A\r\niZHrth0AJ0lnXos2Lx/DVTmjuBQIdiXGGWjMtz0LYiN9frby/iDWK3oxk16k\r\nd4BfM7axGhQZrlrVN5Ve24KqcpCdizTKYQRoy6hccG15NVam2wolCRKgZG9L\r\nBKt+24DD9P+odE/G3t5+7Ut016cnlTIWBbhVePjNfslpKdlNr6LXYok6akO4\r\nO4Y2NM2jLF9IFkvdQSCUWEEPToJ+koF4yXmOTqel/TO/spgVY5p3mpiF7gyY\r\nuXD37jsqBgQ7VQWS2ix1XqTh25zwhfQSWEee6frwHjt2xtzf03X98pTeDeAt\r\n5sLQYu4XbvSUgDNFjvD+Y0Zmr82mMSwFmCyhLJ/OAcslxHrA4O4m0r34bn55\r\nHIsl75nOVbkHvFiHuRFEPJ0SIkckHA62Bbc=\r\n=ZA3Z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c8d734662c96a919650f03988db510b36b0825b6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.75","@apollosproject/apollo-server-env-mock":"^2.46.75"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.75_1648682996419_0.43435657053012333","host":"s3://npm-registry-packages"}},"2.46.76":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.76","_id":"@apollosproject/data-connector-onesignal@2.46.76","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b3a171e693cfab52b2f2a0c8940dc5b2b89f7e73","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.76.tgz","fileCount":9,"integrity":"sha512-78XtE+Rk3udxLeUM1x16q49z75WWAOhcRg/y95z/hDxnEwQHQERhsqZ6eMpERl/ZjsC3B8xGBUTnEdLp54wMSw==","signatures":[{"sig":"MEUCID7GJDqKjxtsDxotjTyYJ3GYvLDjQ8lDZF4ZR8NX+s8qAiEAqUm5ZUE3kCWwaRriHa3YvkXSm77+XxdIzQ95eiYL0U0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROjgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqP2w/5Ab2UufJY25xjh26av3oy3H5J+jDZxC1W8F2jE04OzqCfH/Lk\r\nh1nnE/CnbYYOyZAin8h4VROgeGyODkB5Me8J7lwQ/nIRBefEW9psyB7plWmf\r\nltz1qG1jQvVmOVNT1YVxs1quXv7GveVMYAwh8zncQSYAPrYFd7FaMT2W4e9F\r\nYA7JYa2lfvOSLEiFPtOsZSaWBHOf7fmlyNUQh42kaiksUIyH0bEbZJLPbMmz\r\nqSA5Iu7zw1WiCQmUi4hzbkhwNghrIhesnRJCIwBkZ/kwAAbr4MHa2TRvRap/\r\nEI5DKEDyzX9jqDNkOf7I4tEQsjXfAz2/bOQSYuuv/9YjFC6npYSOW+PHMSHw\r\nL+RuzQiOM2SBGL4L/6oHomsIijaoKSE09HHsfUn9venUQLEWClpG61bGVINy\r\ndy3T5uMsIt1ESj4SH1RvrkG3nP6fpXe46Esn7uNeYRwl429l7bcrJaq+3NYt\r\n0Gyua3OuS5O6QECa3wXmojZWCxQ00NseXeQ50bziE6NUMrXTyei0plhr2Hgc\r\nkDAAQEXD6pmdavXmvOzK/jtLfk0SglKxjxu9hNJOgSPwIC6GimXyXtuvRMVk\r\nAvvXBb+R0iYxPCgHPXdZPZIU3oxVxNPWtbJljfJVJHGEwRYZnT6Qflqg6uyu\r\n0THG9pCUHfpuFfzUue4e1FfPmPPVy7bMMmQ=\r\n=f388\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"79f110ca99501290ce30bd97018d77ddff6c23c5","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.76","@apollosproject/apollo-server-env-mock":"^2.46.76"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.76_1648683231991_0.05612596234474165","host":"s3://npm-registry-packages"}},"2.46.77":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.77","_id":"@apollosproject/data-connector-onesignal@2.46.77","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b9c6ae6e9fcc1066970f9f852f4a480fac1f0101","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.77.tgz","fileCount":9,"integrity":"sha512-qBGbKjc0DQwZFWDSFjPElJqFTx/De9FLxbY5vOvJyiKGtak6YRPf+yyLZeUciF0DE2QH737fAXgTeYXnsM1yxA==","signatures":[{"sig":"MEUCIAmZD6V/N96H5uVmSDT8AbnDX0jjXKFM/l6vHuq1EDMyAiEAkODduPAYzQ90JSPMgkChN5tpilcRErJVmS6aPhZwrus=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROmcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHGQ//fIgqNOzOZVH2pbC4lJbHhfh0TJ37pIOI97opYteaX+DQZ9B8\r\nHsZierjonUCkVVe7imUIOUXRZxtc3OFi3xwti8dRHZB/SRyQalWNbksb2vd7\r\nAtNNEGnPYtAyVCJP0QlaQ3R/u3QSqAXJxevZn0afRDafkOIEavb4goQAdSZ0\r\nIMBgMxM34a/NSNS2raZu5k/B8HhLIGffYwUAApM0OdIisYsiD5IT5+Vb/zCD\r\ntJu3YfLcUMq0OXWAv9/ebHmaVsicyCnD8dP+SF5Wt0f27QdrBRj1gLRfDufc\r\naf5K4slhDg6wu8tX2cmIstcJd+W16yvRsCgIFERki8P9uhAdAxoagDV0Np5I\r\nEL8uKCYMT/WVCW0qSSO3FQwurBvWOzo+6qtKHY1emCtXmW11dyubWj4j1mET\r\n8Ttp6ptYV1sOTZspC0TsW1sdNEZMZRF7ox7cKLbgzBBwvTUtSuSfSbh8K6xg\r\nKbsd8pZPhgTok+yLO/bsL6/bCb/xgCvqv3r2Bkr+6knRC9uLSsBIt/fHfGj1\r\nEj8uREqNB8YNccTcqvaD8SO5NliKx40OVm9lA4iFGNR8IpR71Q22DuSEwtr+\r\n2nw+YOfJaPRmiAKLaXttQ/nH9//FOVnUHRfxtm+FgvfcngZ1XlFHcVzd4SLY\r\n8c1sSFfP76YPvCoLsGranA5UHh5wTsTKlb0=\r\n=H/+N\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"274814d9cbc01fd32daae9ccbdd2cc3484a35f49","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.77","@apollosproject/apollo-server-env-mock":"^2.46.77"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.77_1648683420504_0.9889867159634136","host":"s3://npm-registry-packages"}},"2.46.78":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.78","_id":"@apollosproject/data-connector-onesignal@2.46.78","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e379c3abc882b6401c652162e96238eddcde3b24","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.78.tgz","fileCount":9,"integrity":"sha512-F/fs98rO6P2oyTM3FCnez5FwWuuw4JORzeHgp+R7Il0CgEtWEEYVD0ycmZeJvPLWB5cqRQMmZg5/VJHq/WDsQw==","signatures":[{"sig":"MEQCIG9mUBczls6Tg/cPh4qQNWDgPgMECJHTNIcj98PgC4NQAiBdzThpSE8cDmgJJNEXC4UKeTNFepaJJdMZyzw9JUWP2Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65443,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROo7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0XA/+P9G5f23o/EOYeeps+CVF2g0fbLVpa1YHAmi5XKJ562VqxRiY\r\nGjSoMJp9qp2bm3GUMt20am5NTUfSroAFVL0k0seYpgnFksILC/wd9kg+/iKI\r\nKkZ0CIFDUXtlQlGqQGnL5on9sN6upePzGVUqLMMVUdozvP4letPT0qKwOJyU\r\nFsUdvl4l0GTh87TAxSwYiGzHOZpzU5mcT8N6naw7xd+g8bk7ORnCRotaqf5H\r\ngExhTqPHPW+ZA9nwaCtbdxssxHwj/gtv6hhCQgzrbPq1L3UB4ch1y+EJno/G\r\nZZTlYmpYmPx3Q0yKY8xIYXFJ/7qaim/dmr3XGYnYfLePOK92MYfBIHFBEvNV\r\nfcOB590KpAMtQKzGQjuTrrw7sP7AlYNaZUhmhOgcguzZ3zKXU8ykL65aasPo\r\nSEfqa/FelndQpcgOXfuMnPSZZhTYp6sHEG0kf58DyQ0UusRBs7BBM7v2/FMq\r\nqcrtDHC6TpbsYKzVfsgK6F7vUGjjt73tiIROhOHC25uEhdfOU4gy2ys3vxED\r\nLmO9+JLJRTE5HlpA9HyabcZj9H5W+Fo0Mpvixc34eP64lbCLz7/QYwbjmN3M\r\nwGTJqTuUCjISZ1F63sa+geI1S6F9YfJrpXfBTuLSV1brJqJaJdQCK8ywwqns\r\nhz3qKNsB5MCPbgwPMpsV22qjKwY5blxMoSA=\r\n=terY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"58727343df5034232bc9d11ba4877e472e2c8608","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.78","@apollosproject/apollo-server-env-mock":"^2.46.78"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.78_1648683578994_0.9713882664468281","host":"s3://npm-registry-packages"}},"2.46.79":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.79","_id":"@apollosproject/data-connector-onesignal@2.46.79","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ee940fe0dc4ed784f05f3ce50dd14251d4feac82","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.79.tgz","fileCount":9,"integrity":"sha512-97+VgPG+lFCFRU1nlMWMZx6crN91a8UCYSr+I2JVqkmKcUyvxVAmrAwo1bHzQvZYGWEJFB/BleN3IBKYHMAmDA==","signatures":[{"sig":"MEQCIE538dQrYS+FA+IeGNNpU9hMMB4lA9NfjyqygZoUdxrLAiARCOu3v9fd46a91uVKqnWq/bKlzk7P1R+Te5QvnB9YJw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROrvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3nRAAj52hHWDikZ5PVR4WP6f5Qiyh5lkugY2qlbgf3t3sC5C4+5xV\r\nyn5OFPaNxSW+aX5fzKV5nnLebo+WpKjBPkvvOAK67InNlBb5Is3lkt0akZ6t\r\nGswGy789h0tf5yZ9FVuruHkiQMgsFzReGTevdAQIjvxx2/BL5HpP+4e0kHH+\r\nztF+/YzrfArolHRjZpua6wSrPrSFr4kTu6+ZIe0OzqhME3cIwSL9nUDV9EgL\r\nQm2/TVXwbux9Q/1dV7EYQ/XkWuEzLAAy5zoRzVpkKPmnzICkW4yKvl4U5Kt4\r\ndSZSGuXBtZBMFdmsUCXLt6Rn6ckrXqblv831sZn1wPRyCNNEMqopjMo1Ggad\r\n7kzMQfYbC9G9KblgXnvhPhiT3V/jg/2PmQWomypYytjyL/SNfOyaqWAiHx+e\r\nIEs2SX00+t/FX8eeyXdCZlN/CMYfaeSg1CZFBKbL8C1730oq/YxgBMaNYCFf\r\nG+mPqh0gd776RWiCDVu64+RsPKNduSXgsPh76ppVvRP45Zc0HpKSqjBaTog8\r\nOLfhhmTmYKGiO6AYfsZQJVmSPCvbiS5BaVgEidEppKfjEHgKcS+V9h5PNQhX\r\nwbLf4SaE0veVR2NlpCqfTMfJU1ZRSlNnAIYpBwd19rMaGJGHAcuIJGwtCwsO\r\nPp+EjMfjh6AQfKINK5A9WqygCFPidAzX/O0=\r\n=F5Bm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d82ec90f6f2ead46895676508a0cfaaee7843147","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.79","@apollosproject/apollo-server-env-mock":"^2.46.79"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.79_1648683759826_0.9901052055995456","host":"s3://npm-registry-packages"}},"2.46.80":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.80","_id":"@apollosproject/data-connector-onesignal@2.46.80","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a39d81f801f5035c44a59196ae2c504933e5ebe3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.80.tgz","fileCount":9,"integrity":"sha512-hGch3TCJl+/MkN6kSGCjeXlPwotskXtQKPiqwU82G19fu1aG3SriafNoOisZbQe2LYwqs7NlRAPNBBLG97DWdA==","signatures":[{"sig":"MEUCIAUbunB8YAm2RNHmmv67tHn+rR06uNAiIVyn48tSeD9SAiEAnIPzJLLHbRAxJs3iLuAsIM7UgfOp0IW23QIpCsrBdng=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":65823,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROvbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZ8BAAnJbHT8XBEv1BCcsV+VqZxc6e7SGZ9w0gtE3yLCVz7B8b/l2X\r\nBoINXj/6WhbCtdQiLnwvvoZ49Dlv3SKMY8Q/Tqk5ZAT/CImnrY1Jd9phbfyw\r\n1DAXzsgFgkbn/lAp0izkAiLGSATX5X8CwT25bdaRUTQCUSTVUFtdBMZ5YGz0\r\nHs6bvHGLKWiQ4WRHKzlqHoJVObudFH8aFQRB8vavmKciH6sjD0AVBeGIpADc\r\nR2j/aG+1AIVXCBkr/ScNAQ0tQt2QG6t/78cHPwFJoZYwike8xO33JVC9dfSc\r\nt+cB6LCvMPVVubGsYEJAqGDgHAxPRmIca1k56fl1Yx7sr79ruMhKQPYsJd/0\r\nNiNJfns013T6RzVmA/gbGBbYPTLlI4NLsa9tKQTPEGFfg/PF27UaqhZCuC/Y\r\nLtruAX84QEDeqeNpr72MVMDGXV3sWMLEFV/hp8wyAPgPLnl7l/A41HKAR1OD\r\nC3EwtLMmXpO4ByR9/6Nd2dbPw8+xPe8sokTJchvGrX1USO9sDGC2hI3j5DZv\r\nAd2ukDYRiYpwBMuyBP01yJV4u5lTBvC3yy7Jq/LC5S5Phf+B6JUj7xdeiaXW\r\n8hLlfycpV15jzrxHR79JChxaXJJ2zEcn7R93sAh8Ekc6QTCzpUmL6MchHUyI\r\nNDGbiNE/RPy3XfQnxWGXs+Mmq31/8YOVeRo=\r\n=BE3k\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"80c23f6f44bf0120b5c526627fbd51626c7148e0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.80","@apollosproject/apollo-server-env-mock":"^2.46.80"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.80_1648683995232_0.7830528804757813","host":"s3://npm-registry-packages"}},"2.46.81":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.81","_id":"@apollosproject/data-connector-onesignal@2.46.81","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c816863688855b2af945dc617f879b04244a8161","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.81.tgz","fileCount":9,"integrity":"sha512-vokKbyIRs/wExeXEGXCM6z8j0Hpru+I4BNHqPGieschtekBJXaNyEr6Ml2c6UlhKf+82t95lMn4yglW3jgEzNg==","signatures":[{"sig":"MEQCIGoFH1RxFFZY48+fWsyVAXZQN6yKG1yciYQlbHcg29DeAiAxDQuB8+VkuMZ9V6CuVWCtza6DzrZVBmOsOkVRjktoUA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiROy+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp33A//Vmjwlf/5AT76eEtiz7FrsSs84n4yYFQMfUrjUDX1COETJtlT\r\nxPWqGvpwN6Q1xPhULBb6hqGI2eZWzmMozGxoHYL1k4XBJFlxX6qgsJ9B6WIK\r\n/72qUEWVmtuN6EZbzw5xHRwe1ucn1LxhAL6kaAZZYZKIDwW2HUtq26dftPG9\r\nmfSZ+HLRvw5HGI1Kg356btFxU6WO50pRRmCcyDuaO1z05qagBxJINqDBa12J\r\nsiUv38prevSsqo39pLVR2ggJaNcH57YHq4YsuPbuJGJQMwqwFyYzYpoLSEP8\r\nLACvPSZHKe/OvceeadPgwyURx3OA5xDZjgHjB4JCvRQPtpQk7+G9PqZzdYcF\r\ncuYfx12Ig8i367MZRo3iYdYZ7CMCVEatn/StaMqvzSBQ7bgmZnazfcr9DnXE\r\n3jVHc4DenYjnceLNvuQ9vJk5TIaBcYsWin93sFaQx3CLGf9hetH70aMlax+e\r\nQ2tHfjli6p5LzUGe+kuggYmMGf3LFu/eLGbeAR70RrZxJQQRMWraXfuXnGWt\r\n47SR9M9Ix1dIFwnC3C/Rd/bmPmNtC9mcfhZ7KVRxJNONAHdgfyomGYgQJlSC\r\nu8UvBb5XHH5mhk3NaApFRl7YfFFTnXDWQYaVYPlLGYV76tRqi7iftxP8tOvy\r\nWFbp1fvuj9lY+TSzMWgXb5rQb6GfZ6ko/8o=\r\n=cljn\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c6b3ed4f0c6f42f509f4995fa1515c232671c2e9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.81","@apollosproject/apollo-server-env-mock":"^2.46.81"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.81_1648684222669_0.9014614648852832","host":"s3://npm-registry-packages"}},"2.46.82":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.82","_id":"@apollosproject/data-connector-onesignal@2.46.82","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0f08aed64e02e8789bf54fa8da9a6472e7ee3c4e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.82.tgz","fileCount":9,"integrity":"sha512-+w+9XsZ6/DGqhzFSjztwrs/RI7zJNFi4bIBLh91xM2tbsjpXtn1oiq+W18BKsjplb7Y02ND9Ez6AmemYO3v49A==","signatures":[{"sig":"MEYCIQD9Y4c49bzGVGyZKBb2avJ9hEMlV/y9MWHUpBSxcH6/iwIhAL/JplIk/HLcT+edzNSSCyAEUE2II8mB+XJQvDqSZCyg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRO2VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEIRAAjRRXevOPpW7EEl9RMtDk1mbQ/mLMiLBEkCK2+/2PnML1KDAx\r\n7pp2IlBB79UkUz53wU7gEQowgWLgMH3YmRjlS07U6qFjb/oZOUcppHqU4xvt\r\ns3BvzH+gK6eGVNyBogCEtcpG3XYgohPHURccDfF+KY470rnZjCTQS4rQcj0b\r\nE03f7D4mjFh7bZIyNxYVuAb5fXvX8lwxXVXBPv6bY5j0vc/2tFVs3NeXV0jA\r\nid3HNG80MUlAebyilEq1tDs33hOi5Ql6D/LDN4sXsDk1T0Fa7/w2Cv5fAavC\r\nNknYrAWgQO5v1vyBWMtUGueyOWhjEHgm2GtNkHeZHJ+js+UrD+OsFlyliBX4\r\n08gZY5Q7KX5YYj8yF7t4abuFApmxG09M9ZmHm9JORi3eQMa5ZEWZrEEmzjHZ\r\nsqGbsmcw9CNArZTuVgeyGuoIeZnuDa5GZQ7NAbQIcSnnFNRF5KFKQC17AYP/\r\ndFc1jZCE1ZlXGi8+Ua0ez8YPxZu0C/E+FHMKgURjWJWCqZ73NzSHdWJLESDF\r\njINNXR1K0m+wJs9ZRO5yj9JDmzI1QfBRGJlPjmIlmG3nzYCzTFu8LZHubXiJ\r\nzcrCBWNk2QuOKMupjwjNGhi6B32Rh5bo9i52Y5Bxkc5GHWahwO9cATORlksL\r\nioAoMCSxf0Wgjwkh1D8A3WmxMNzgssp361g=\r\n=NUQt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d832670e217cebe0f5a881976cd729ca06ee76ef","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.82","@apollosproject/apollo-server-env-mock":"^2.46.82"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.82_1648684437435_0.9454352938663027","host":"s3://npm-registry-packages"}},"2.46.83":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.83","_id":"@apollosproject/data-connector-onesignal@2.46.83","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"90babcfbcb72bb94d6e9847bda8ee25c8657cb8b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.83.tgz","fileCount":9,"integrity":"sha512-aS2+l8m/bSCqR/r4CMhNN61oEUewoxUGCI7uX/lrnkopoXT89vCn4XbTw0kyYq0rZ+wKA6o2GW3rFRKiEJb/vQ==","signatures":[{"sig":"MEUCICrz/bKVj+K1vooRtqxUmIZ0ajpiEBf7PG8IyU4064ozAiEAsOVV4HhUY/7po1etZRg4BfqxrEO09gbJ+N8myogOSGg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66393,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRO5RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHbQ/+KqzZVFqrkXb8unRGQdnN5VHp8qGU0FNB5ZRcUTvVTlX+Km94\r\ns/jrXbJVq2oRvnSqKfdTgzNTyXAWiCUsbIxEXaHev0qAkGfle/a5B9uXl37/\r\nrWLEAWs9v+XJ4OjU9Hc5bJXOGq4Ck1QBZbryEkY3dRJJjykYvMCAsZlz9a/s\r\ng1wmDrJbrswAvTniQVNUMSD6LhThIBZKLJwpyVQ6aehspx5DUGeHP5kOPwoa\r\nRrT42WIhsd1klN13vWL+L9Oj571xsFLG36OZWK1vtqztOV2tMObim8Su1Da9\r\nGNAsXG40q5xXMkWtw6y+HGQM1R9oSj6zvBYdlOIg2hELxGCCKs0mKanzZkT5\r\nWMTFSkL8Vb+qjCi8Vnuierg/jjTbuToW1f3AediimfWB0PfOT+GHmlDPIq6V\r\nJm4zZqUcrbUdqbuM3pTY0n8JuYGAaHkNZrMAjDwGmKi7596+6RO3JyVwU99H\r\nIBbFl8cAMEE0KjN77NA/tc+trRfCPCjhqbn9MavJ8yzOEdUUS+C2UwSon1SY\r\nT/UZ3iUVPpsT+WY4dqzEWvdeZV29mgLwm12P2RaoqBulgwq45lOUlwltiWLs\r\nuLgL/hWKl/u23wnziqL2Eu1GEIfY4oz7KwG5cel4SeoD8ceP0brKmVAh9nVd\r\nH0ijMxCibIqJvCf8ba+ZRhVVZi8eUp0dIiA=\r\n=U+PO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f8762d4682079974d170b34902068f5c0ca3e574","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.83","@apollosproject/apollo-server-env-mock":"^2.46.83"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.83_1648684625223_0.7880272305680731","host":"s3://npm-registry-packages"}},"2.46.84":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.84","_id":"@apollosproject/data-connector-onesignal@2.46.84","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"99d14a1160eb8fe8a9794e3657e2ae3b6d46662d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.84.tgz","fileCount":9,"integrity":"sha512-PpZLtjvVpss37HMBIMYMhL6AsCwkS7Sxo2HIqn4Ta+lQxEZpZaYTsydm35jPU0qfdTXM9KIatnUBeZJS3qvsTg==","signatures":[{"sig":"MEQCIEzdtLr36rElhxst+gbvlIur8S97NLoVZ4OrObt7TvOtAiBKYI8tC7xDlg1NY54E0rkhOJEEvl2UfrubE5Vduqkj4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRO7rACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFoA/8DzNg2i28NdpEi1T9qHzc44Kl+nKtXlWocC2yK2hE7X6x5wHW\r\nhDddywdgJtGBtUENr5sM0P94P7CoNLTdBwReICdEnl1MWCv6p3o1WHEJin5O\r\nN6ZHlxv5lkAS1weBLVwz+EwOyuuA8BnUcTp9bkrVmwQqkOiaSWDIIjHMT9WH\r\n8LepE/IMYviF9Oq3MKDKWT8C6CKr0B0puPbPPKf0z1XPbnGhLqqAK9sY7aDU\r\njJomPrRxsoGfrbL4PRSYPe2GmTYZ2CCAGk4MI27cTUoDFAzvFODeD7TBzYbK\r\nHqacyE+8g8H1WG8EAt3rUGpR7CLnJeMH/IrBaoRRdCCIUpGv4CvKahWEZvlj\r\nxYFqt8AzbKuEdPT5PJb1TvhScqOqQPmIm6oCzQcNJ7cDb01vfeEKcPXst7kH\r\n/wMDDykK29S30mv8Ydi0Io3pFWR8lHkOq93mPGrphhtYADE+c1ATs4tmIJ0S\r\nuQgk7uU9SOZnMMqb+PgTjc4F9tFNu8hegVAivA6bE9Nv3NgGLH0epgXyXRB2\r\nBHOJihMI/OSmn4bUTgIIjRZqOQICvEfqTeDRM/5rr6x9pVZ5yRhhqK5+ZlMy\r\nwmLD0JOx6QiBJ2YO9vzqbolrbqnMAR8A3qLna57M4k2zXkVMNlYviICCaPJH\r\nQNpOVNnzC5VCiPGYIhDfzQKU7KbVSscmoaA=\r\n=G2Vz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6fdeb4cf4cfb09bc57a26f370e27ba1b07053ae3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.84","@apollosproject/apollo-server-env-mock":"^2.46.84"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.84_1648684779496_0.10658204848617481","host":"s3://npm-registry-packages"}},"2.46.85":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.85","_id":"@apollosproject/data-connector-onesignal@2.46.85","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2f9793e8139b355a0cee52723931506e8bc8724b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.85.tgz","fileCount":9,"integrity":"sha512-fTg+5PPFJXTcV3k5PhwZuVlOcxTtfUlhv27ibuf6VAzfZHLYPb55dPHXwpT7Bs5h5tUkGsuDmRTSrXyv/Xzeww==","signatures":[{"sig":"MEUCIG16kzHcHS+LPOR9ywrQkWPkzd6ey2d9+PAwMOiBydMfAiEAkJmtVUospQQa5e00IXRTTxf6+yY+uUMJSzBQdzUj0L4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66773,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRO/QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpojA/9FAcmdEVK6ROMtPb9CRueRhJxmR/qdh8lENcxeEiLTZMeQqgk\r\nO1BJZlewg4Day8549iNeo/DtDZuPKWenyz91PSFzgGTEErC6Ml4SvrhtmJv1\r\nENfxvj2AKRynG38TuhEiACqxywLA6w9SDTmRH60POw43O/Mq3S1dt3QjnWKQ\r\n8mEhQlCIEdkUVnW6XZZKOl/1lFfKpKlKPyUuQOXcxGZqleYs3d5PGCbFa5MX\r\nOO2RNUxPzbDO2wCjbgoz02DdGtd2/6qWwSPDO8knQ+5kLjqUse2cvnKDrTE3\r\n9UP+G/T4g/bbYbMxxfeJudTkxvm9T+1R6cCg6yOXo1W0aKrbr/9O3H2VcocF\r\n7lTdFWCUz8wCkhHkczecBTrfLKLW29QejBNIsbpSd/1H6LJMsqxL7LmdaUuw\r\nqRGDHL+LKc5m/KxzVwEDkq0HDMXP4qNta90zwxAi+FBMvmD8/l8r9YE6Vr2L\r\n0J2Dow34fhSTxm9aPYePG/84/rB59o8317FlneVJizdiIcUKew0TF/5W/eQn\r\n+okYlxWbwacg2zUDMGmgq7IBl7NLjM+Hf4tAgo/6YfeabLmMTNfSR7zVOYyr\r\nceHvW77615OQn56WPY3cwur9kpadVl6ihKA77xGNP4QYb7Mgahwm0nXaCRbV\r\now/ykE7l02YxYnUiyyqvkq4H9TK0xldj+Yc=\r\n=Rka7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c1e07b33645d88f776eb3b6d9e272a4e952a487b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.85","@apollosproject/apollo-server-env-mock":"^2.46.85"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.85_1648685008197_0.8339817074910665","host":"s3://npm-registry-packages"}},"2.46.86":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.86","_id":"@apollosproject/data-connector-onesignal@2.46.86","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4a03014094a5e26b9c1b0c99b36fbe1b0736eefd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.86.tgz","fileCount":9,"integrity":"sha512-IYj8fBRiU1viD2mgUAN3tVGK1u6z7VaVvUvDpflUwKRSdMCBEGCdtTN2lIEEZnfugRf2H2l4GFGeiQzZPQUYLg==","signatures":[{"sig":"MEQCIHbV7t/yL66oB9AMUz0pfOt77XoBnZosU0/Dw7TnOlrxAiBuVPrlH+/LMHN47184vb4MoZkmR245UOIw01NGqK/7JA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPBpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg6hAAhus/nDLF8nbD+Lpj7kGPDDHcTxRjQ2Man9pYySMU8dk0O5fu\r\njM7FAssfyaMK9VmNwfmebA+8cT2EViUcWkksYrkOxLC9Xnzp4/YK/xRzbM1V\r\naULvL2K7M4CFOJgkXNX03DW4LnI9JXzE2Hz+SiOMYzOlhGRD6aOVho/zdvwr\r\nt7310nnXcRxjvzGWYQC32YiPWSh264F9HoooqkSEFhNtysVF9tbQSqZ3eX3k\r\n6zIt+rHDqYJNiAyxGtupBj9PiYuILkK+wDAHhivjNuOSkxcG6YD2H7cjvCQg\r\nxkGVdXQKUR9xVYEzshhkIweOM6DL24C7rc30QxA2OTDNlLkPiAxRlOTtF48s\r\nHUUpAcYzbgK4tUqf3+a1k2B89zplXCqbeMqLK/VUf+2gWEgR2ZiVCmj6P6Bs\r\nX7u7krniJ41a9076r9VNnvT2jkrx4tiLvKz2jXXTK6quzsHvNIDz4CPzxeqV\r\nyElXCoVaIKaGdO5OqtPehSuHT6Ka7pJuAL9XawMu/AIZBQsDx/tL1loSRViE\r\nXVF+i7bauPNJD70jT2/kyJ73v9jBFI9iI0sWbMl0wOxKSC4eBC0osc4LsWZt\r\nCEgE1q6+dxcwPXwJLtBboThi/aWKD/8vxWqQLuAjCc0bBJzGPQ5BNZJIh4kX\r\nPjPQRbNf4nrleyDzDmrfPr1oZxFJH20yN2M=\r\n=RVD3\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c9ef94015b9e3b77cb139f33638dc97c7a25cf74","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.86","@apollosproject/apollo-server-env-mock":"^2.46.86"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.86_1648685161030_0.4092132329994904","host":"s3://npm-registry-packages"}},"2.46.87":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.87","_id":"@apollosproject/data-connector-onesignal@2.46.87","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ec0f31060d1352d8c80ebe263b19c4a5ea51f6bd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.87.tgz","fileCount":9,"integrity":"sha512-twHAUa0a7ZxkWgvwfcEmim9N93WQKbVwW1Vs34juY70y3rmGwTlncsvJ0CkJHalUSnmeteSF8fhS/3pmfvJz1Q==","signatures":[{"sig":"MEYCIQDvWoLobycnOkwNrHx8IWoTwK4JmKT8pV8/7B8d6CEAGgIhAIfZk/Ol/8x8vY34wr39qJt1J3yVueTd2zq/MhlNsN9P","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPFlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqE/BAAgaY6+I2tRcGXx+VP44kg9YsP+tcO1XSPLS590o3kP5zPARKC\r\nAWDNd+LrCTS2RXp7YmyIfeBPbsvrdcgnVjEs6W8whdtjUzxKF8QAkOdHb22D\r\nPghPMMXab2T0ZdmW7t1vtDY2Nu1rfaUjtIqQEM0ISg+UOBnwJSdYigvkfeYy\r\nawmqSaOWnUYxIAMK8J9QEVxBM4yWhEPyA798a1lf3x65GzfrrDZC7hpLrSS8\r\nxzPpaIeP+fgG/T9KTACNQ3uZbh5BAkByIbJKIvtKdcmA3uvyHoEU672wY8WL\r\ntPMuqkOgB4x78OdQNAocwe9aRD0jZPxkPmpzehlAorexYNcoUU6kTwd7+vI1\r\n2SsWkZ6wtuMl7l9fRO8NV11FLs/9gNFXZwXdpCMYfGR2G7s//XohsuBbv0AS\r\n8eZBVRAmtAMR6n2tLlVvQ16SD0EIO7rk+meMNkPkS3r5+N7pMzOEgXaN3QaO\r\nkr4F31U3mcrL7SCMO/vAeCmVcFJxe1tz377PPvYYcr7ZMkoxVbenwxIyySkd\r\nx83i+h7kCsFraIMSVVqoc8xT8hHjcSEgR/SK25/ARWa2cn1Ip0XEM87thij8\r\nLLJljbaH1XGNrgQ2c70B1VjgtSD6UZRAspSOLF/YwsnzMBEHRKJS/iQxBWNx\r\nmkJiSt57KafMYwqPMXkgZzLew20QmrtaCC4=\r\n=niG7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ec45f8559f1e4b86c45b15955d031baf64e92a7c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.87","@apollosproject/apollo-server-env-mock":"^2.46.87"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.87_1648685413707_0.7239500317372278","host":"s3://npm-registry-packages"}},"2.46.88":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.88","_id":"@apollosproject/data-connector-onesignal@2.46.88","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7023add19f296d57526c202489e313da11c04fde","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.88.tgz","fileCount":9,"integrity":"sha512-3JMCG2DkIQXgwxLY5qN+Lw8+zZk9fy5o1ttns21qpViPc088M7r1WseH+r2FYJRimeTynvwR0v+zmTC6ydmA+w==","signatures":[{"sig":"MEUCIGegt7qjrowmncn41YXjan+76CJOO6RstvFsIwepQTdOAiEA0wUH5tcWVPVu5RdF8gFvMkrnW3LZQA1DLYWM0aAbiJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPJFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqE0Q//SdakwnEGiDeWIndb+BaU2uQ4YOW+bG15t0AilNOz16VepEDl\r\nq86gNHjdtwDxdwnfN3CAccQgsOX5gEW0dhBGvKtqvL/fXLZXlk3FLWjEpxUe\r\nFtC4HdH0/Lqk4Y8UNm+ak4fuhezr5NO9AShZmImiDLSjI3kFrUnHu3yIp+NS\r\ns3vv05GbKou4XZoCHX5SHJOhOsGqO+bYW+eYD0+xPM9qSXqZU9z2OJ6AdX2m\r\nXwsUF6mWpOQ0TD9la6Vnim5UzUPPl2pxXUovmH/80w3QpjQSuzq72B/FM0Wm\r\nJLQcIGHZacCzGz2S06VjLM57D83G/9y5y4p6ohpjilf9i+j6JZh8qI6esT/1\r\n1pd8G4FDf2cp/4z3ym6kz0QLbCqw7qvn327xXpO0uyLan5z74Ab9j+Gxpmnj\r\n0Xbtoe1M0yEmf2FlwORXBYZ3ZqGjsHKClg6BKM5px0PN8BuDneqz7CuI5AXL\r\nlPrtnU43BtVV+fvc3Wb33Z7pqyfGbfFaqtzhiycEjyg3p0ZOBXTKfAQwH5Ux\r\nssHL+d/xfzYOf+KOgsZz4QgjBLNbWRto7icidbOZRhgkXZnUYlqKKDUGkoes\r\ntu+BqR2/0o+AcPUQ/20cgryJ/h9z4zPmX8PX0yVVNoWV5AHbOPnaod43FIo0\r\nTMGU/XAxrUAB64J2dny3RPhRTY7rd4dAYjQ=\r\n=o4Ch\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"0f18ead3d3541c288630e10deece6d6b5827c8b1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.88","@apollosproject/apollo-server-env-mock":"^2.46.88"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.88_1648685637293_0.6568072705800279","host":"s3://npm-registry-packages"}},"2.46.89":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.89","_id":"@apollosproject/data-connector-onesignal@2.46.89","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"25029c084d41830ca1f540c6b9b494f6a91f58cc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.89.tgz","fileCount":9,"integrity":"sha512-mkJ1gExE66tFm1FeF/gqsVMR/hSeuwWLwFbacQYgn/vmp1NYmqPHrTBA63bHrvA8YU6k5RwMAWYuJ4huNXqZyA==","signatures":[{"sig":"MEYCIQCvB/NAmhmaqEZk0GeGE0Fp/4eScW0rrjjLKICCkkLf/gIhAPp0Q3ilqlqTdeCtnTTRp60NKQftbFNuo/iCoE2UMGZp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPMYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8Cw/+LTVMiw2wKM4KYrOwUtPwGuT3Evz+x06+GQNJlpGb1L9oMX4a\r\nJ4ej4DdcpF0qw6ByhHc3HL2J133ho5j8sgcMiviA661kKfhxbBMHQ52nTvA+\r\ndLMm86B1QtILmxu/CL8NQWr2ATLrhuB+IaHE5V4ZTku4HbFjGkmcJgWENYs1\r\nxRhFRZ1aa94jid3H9XRbIFXxD0eR4NOKuMSYsn6S1+xgiiEwPaIq10TATpYN\r\nw9CGwi/7+AZ8ztIJBsy2EZspWg/BL5qYXrLMeEu2Dg2wCS6WwFJGx7DQvMyf\r\nL/F8+qL9G0FSgRMERkSpz8aNqTswjUAjbqImlyQTK9cttf6tvkFttdCbhBb4\r\nktEO8ElzA2TTaMsztu1JPy7gQGkifU7tyGvEcwL7QebdKCvVTSXGKWXPftDJ\r\nvXY42A4Uu0ozwGkGwzYTCxCBLTHV3Zw7ZBYB7LqVVhnDHUuvkVXkMwPqtOvZ\r\naCNZ4GXlZGli2wPcj5N0QCwwF7xfVcewatL0Jv2TB03tGcr+L3gPuGfnP8Vt\r\n2z/r0iYL23SfRPo4dXTvYJywJD5slz5tOBMF1WpgDJOPq/E9Yt5KnLF0Q7kl\r\nbPhp5LBiFe5+iQh6tBMYP9Zdw+0iA8pvjAeleD5MIE1fO2/yXW3B3JrDgD2b\r\nlNAsVun2Tup9ZPTZ7d0ZxFu4/Z9fapAiGOw=\r\n=WzG7\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8b56fc0d8ef506867467465a69eb959a5ce7462b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.89","@apollosproject/apollo-server-env-mock":"^2.46.89"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.89_1648685848238_0.20919497445682067","host":"s3://npm-registry-packages"}},"2.46.90":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.90","_id":"@apollosproject/data-connector-onesignal@2.46.90","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e33646ac02d36b0cc85c3e24b2a0eb435dd153d2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.90.tgz","fileCount":9,"integrity":"sha512-GtPlN7lUNPODwjkdcEynEVOY6oNfLh0JhwDcAkiOCjL2ZpV60hfaRMlcnhru+h7taRxk8QlLdSqno1aKAX/xTg==","signatures":[{"sig":"MEUCIQDilLU21ZRJiOC2wXIrB36rrj6hbV+Ns0X+JdANuJ+3uwIgdQ+wFR1SCfQCvQ/BjLmyHfTz3eDDvcNh2Cg3FHIt9xQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67723,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPQOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEeg/8C2UgTfL9IvLq9rS/6AOSIexbUiJ5Bgue7hkMQTh88dULpJZL\r\nyc9MOC8D9y/4VZ6try/LnnQ70/+ny+e71wwLcti0nW81p3yiO7ZZc6uSRI70\r\n/2aoH4TgY7csep1ahaUGISkdcxY0mW9OD27wwyqQcHzKq1spaBZGa7sec+F5\r\n2+mq3wEMOYTuZPDi/bDor/m0OXL5PVT0vWXwvtZfqN/rq5JL44402pzxdFrM\r\ntNmb6yBU7nmnTzretkTJQMvMOq/aaxI5l3B3fV/JMAdC7fMKItySzy5JHroZ\r\n267IpbtiNX7J1MG9mBQq2TBf0VL1mKyu8wGy1TAI5DGwhj55oRPneOzcCmOp\r\ntr8Uywy2CoNeFpNNk+gZ6dPNW/rEbekjdfqjwBohjY510h+wq/lBM8MhbGPz\r\neRbdFsslKpfB0K15awgXwkyIZYzuDkwcdo9DhvhD7y3Le81LpqoUUVXV6rqQ\r\nC+HmtIcqNjZz8koGonotrJzPl3DfvMe5udNdDQDMrCFXJu8BjFywgwuPt7kd\r\n3fw8KG7JM0UYzQwPh+9YFeDztrCsndPo0X0WpzP5aqvg8I6CssYcWncUMCJ9\r\n3i2E1Z3aj3o59xFYITvVP4zbAc1ioCi8+Ds8/pZjOad9QC/sehCB82d/UheY\r\nfPAMzQmnm2ieL/EevyyweMzaH5I2Yi9boEU=\r\n=b9Rb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"07a077fe623c177c8d35acc24d474e8a93151511","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.90","@apollosproject/apollo-server-env-mock":"^2.46.90"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.90_1648686094499_0.8981457590614812","host":"s3://npm-registry-packages"}},"2.46.91":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.91","_id":"@apollosproject/data-connector-onesignal@2.46.91","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"47f815a8c77f5b03c42120294c96799030c44ead","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.91.tgz","fileCount":9,"integrity":"sha512-JT+/s6NxFFV1ZSXCOmrGjmh9B6+edDm/wlkkjWQOhgbjONCyIFsmRnL4zo/We5oBBW7OnKaUN5Fh9w12vkh2ew==","signatures":[{"sig":"MEUCIQCKV49q2FLaEstNqP/qNYbkYLkQBu0a9gd7VpZDFKvDFgIgcsNGHwRLle2RnTyOi0S5N9xFaYoB+A95krEC/RVz2eg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67913,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPT3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq6uxAAmDaNl2NRbTEXFe/vLIJv3WoDyH/cPo117uPEBsKZFHFAebly\r\n8kr6tKdYlUsZHYETKorOjOrEG3zF5Jetc5Nn3zRCHKw8TTYwviFxmE+/W0yi\r\nCXDCI+q5fK5FQzjvkGdVL0y6ZFogtjMNhistXYvBaNrp4a+SSIH3Fr9M6UFC\r\nTM149DSbmjj1sBu5lrUB5LwVjDfxEvaPv752y9OO3e11KTQgro3ZHvKC85ol\r\not6bRFBKrYw7VcDp33/1ew26Kp3awP2Si9HT53RNWA9BiNMr7IW9L7CguQt0\r\n0nIaBaaIQR5leHfw2BQ94PY5MRxuwMfZ2dwulDg0KsKi/ealFVMDubOTJ5b4\r\nfEp1SHDOaklllRDiIR5cBuU6cq3vzTXp6OFol2Dr1akI462rB0+rgd2acb8d\r\napD2pPJxyyv1LHuS9yIwviOoj/29KZFwmgVP3LHkEEN+1Io60HdTVDqakPei\r\n3Jir0D0s0LdBAZ2y8rZyGVtudQMmSqFxo35TfGGFHbxwzFWZ/5D79Iyz6EMb\r\n9a0sU0nF2dWspidmVFkkD6NQsH5Zax476073xgZoJFLwccZWhAFndjT8cdiM\r\ngSZkhP6/1ZypDN5NzDzrgbRb4PRwdVPAsWcfQ/HAG2J7JNnMy7+4SKed3NvN\r\nK3A79wZHFrYyamd8UnxWhBB4kS/sc29WA5g=\r\n=05mG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"0928ce5b1ac8465bf7cc1f71bebc014d19d3c254","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.91","@apollosproject/apollo-server-env-mock":"^2.46.91"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.91_1648686326545_0.9655803033237169","host":"s3://npm-registry-packages"}},"2.46.92":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.92","_id":"@apollosproject/data-connector-onesignal@2.46.92","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"cae06461d7403cf1659f3c340893c3a596e2a357","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.92.tgz","fileCount":9,"integrity":"sha512-4v2kD+VZ6fQ2c+M0WEdPavGryCs8i6suVm7EbwhOm0w2LYmxhM5FNP8UHzJtyQvIYBajyctO4I3luHZq1zXHAw==","signatures":[{"sig":"MEUCIQC0oZrUdwN+B2WXfhrWqiI9myVkYdboZNej4dRd9q031wIgEX4a/ERKBidt38uSgNvvclVVhxBflV68DHYi1mjk6O4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPXXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtdA//V7Ggup9eil1t08DOv9y4gODNJwWLzXD885PZbkAgRzEe98b3\r\nMnmYG/LTpmZx0EyzFP047GERdGUTgC65L46E1+L95o3IhYd09e6ALVdfds9c\r\nqhF4JItjmqyd/GX/Mcb7ftWK3OstNnclaNJv5fjyYTMxg+JgZRttvvrokabe\r\nRUWs2ijLBBsyMQQjoCW/j5cUaXmxU2cOYHKOpULE9SnGhtZYer1IdU728zXM\r\nX9MfCqLCTLLJsjKbwmkJ2Wqd5a6oRrzt+ltPb1+/EZzk4CFtAJPVnYAA1Hcd\r\n/VLPomt7i3kAP5Gz5Nn6BN0qWXVoqT0g0FA7FQMad2T1qDRlEBI45QVsjKKJ\r\nroTHaZSaA6r/7nfMXMh0PA9c42N3ZRf6kS7912n7cjKgmWGKl0+DHBq5HcWe\r\n0zOOxU8Qp/pvn4p34WySS9y8Rj9anfDiVRwaFF86Y/4UT7jPUy2EqHUqf4eZ\r\nR3rB5dvijn+4+L9Q3TXdQQVnMMHyYZL/KNx/N0safEJuGEQmR1XNRWXDOory\r\nzgW7Drj09BRB0cWuiCIn/joQIAua3yI3cXhjck0EfRdw401yRLfVUKZOHYxi\r\no0UCpI10kdbZxg5OlGfY6gSj+8crGXXBwXa/jeniC4riRPLZUna+ZnqO1LVX\r\nd7LIBqqTyu76rBkfEUrTaz/cKNuVgJuwNMw=\r\n=X4TR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"fb3a956fce5dd8758e92604c6624dcf4ee479a17","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.92","@apollosproject/apollo-server-env-mock":"^2.46.92"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.92_1648686550804_0.24319646884473634","host":"s3://npm-registry-packages"}},"2.46.93":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.93","_id":"@apollosproject/data-connector-onesignal@2.46.93","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8c7e55871bfb510cc222a9504b04469e80348cbd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.93.tgz","fileCount":9,"integrity":"sha512-62LdFB/4ioxYZ24vR2Bxdi/CZtD8k5FonhdWHpkhgVCPF17Tw4LTtxzVBp1g/ep1O8QzfgljYJMVs1b2RsCbpQ==","signatures":[{"sig":"MEUCIH9jjc8HfE1GoUAPXAzDS+HBD4gjELMaHRaJAG7zhVAZAiEA2Y2RO3kP5Ad1ebsZWajKRBlGNeNh5PgzdR8lt7TEqA0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68293,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPaIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7rRAAoPCBLehpFw2rhueYqZ3gbtjwWU2exY2feXb4tBiYf1NLf5rb\r\nDK+Bz1C4eQ3rpFVZeA2dzm96Q0XZKsJHKMVP6y0bKv20d68SFBw81VPdtfs+\r\n5eYJfYZSRSUvjgVvOEivsiXSURFpitXkNvVZjX3cCxb65FLANuON8U9qrGKl\r\nA1mclu1j7X/YaRdsdZg1IkurGqlceEIgMo323eAMGZTp+pghLe8tgv92umxm\r\nBlxV+pf/VGSJFHUmhWSTxHDi5y+rn4P0TTIiAYE2ANIxqTh4jnudShA7Q2iB\r\n4vYagu3CHGAKZ3015fcozJLoY/ec8kRj8PenczxE0OcpJLWy/l+BcqdIeAwC\r\nuqREH9Sj7/7yZG6OPzhfBNhbMGqKZmLV8lX9A64Hz5vLT/JYoWLN+iHmV0+S\r\n7Cu0hd/oSVB43ZYK9zZFOTbvOuemvdOAZa64mi1VJcXbZpWA/KA5C8dzKawb\r\nh87evX9D7b0FZjpe1uhY0vH3o390efR8CWXevF9QAVqrnvuSrt40Pi55u25K\r\nkBYtMtsG6Ximz2u11f2m4Gxvr1CQGSZpq5eNNxQG+XCeWA6VBiLLtfDR9cWh\r\ni/aWVZAgWo0Kdwm6rz02T3w5H4mk3nFvVch3Cy89ned9DanjYpHnUL6l2h+k\r\n1DDYYM4RKVmoFvhm6xneKG8rrfpYDIVn/cY=\r\n=e/5t\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c48ee270638718bde3879a17e12423290b57c051","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.93","@apollosproject/apollo-server-env-mock":"^2.46.93"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.93_1648686727691_0.11443259478760326","host":"s3://npm-registry-packages"}},"2.46.94":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.94","_id":"@apollosproject/data-connector-onesignal@2.46.94","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f1cc1742f3ccb5bc7f791bc125115b12ac8b88d8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.94.tgz","fileCount":9,"integrity":"sha512-wtmvCwi8H1B2wJVIEDfrHAIwCfH6ZalPs3/DrT9fxAL8n0sMnzpVJ5ZBy/AVm8vLdy769wkI+GMrv6e0B2chvQ==","signatures":[{"sig":"MEUCIDCH9KRfWKWsLdgG5OlGF0UWsvcAGsD8o56GUbi6HmjJAiEAor4kXN2M+iK31UkAUbPdrfXPvbCiazbtjfF2+Kmw3js=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68483,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPdoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrndA//Z9AQnaspiGWzDeOgxKlbGiM7KHyaPrcnZHf4Q+oCpG0Q/E62\r\nfpODmNbF48m/uWdqRH5BMb0IcEa/zE7JIeI0ffRXZft1XPibOldX1nIDOw0B\r\nOQUswZqGcSSgJezG6fzN2NW7JIc+vGbZF3MFfGqGLGaCZORLaGUC3IwtJ24a\r\nHLnoLqvhIVTfdQL73yzN61NeoecXzkfAA3Nc/gtAwrJ7+MH6GKQIHIhIWOhl\r\nqGkoyKmQeRF68w2DgqbDDl29MIYHDjxc+EEeaojkRtKgkWXSakHGIGPhofh9\r\nYC4ZhCr3uS2idiNXkuqY9DSAinmNbaFEV8HSHuTOO87klsKVc3ghaFpjgoIR\r\nywz5i3JLoAmKUs+oAns/rgSnSav7appVna4Y7wFTzQ346RAkKf6SvGIrztA1\r\nR7V7KlVVLpzyIRSgyK8loC0gGKKREmaemSU0Z4TUJbuePg5GopboxL6dD6Tj\r\n4ff2O8/8hVy1i6fA0zln5JQfQgK26D59eBQ1X5GdqH+g95xAuPv0pOWiSG0t\r\nopOCrxKk8q6+P7qNsdvKNrwFhSrkPXUI1kwZIWpbO4YuRgZzDNxHh7w91Kpp\r\ni5Y8ycGfUkz08MtoTLST+skYCOzLC16DVqDXGq2dokhYTSj87BCSeSTZZhTh\r\n4r2vwxPIgroz9rFTmOgr8FZfq47HNLAba6o=\r\n=ewej\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c13aa8f2ef1f353bf7c1e9a2606078ff04b029af","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.94","@apollosproject/apollo-server-env-mock":"^2.46.94"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.94_1648686952517_0.29360510374822657","host":"s3://npm-registry-packages"}},"2.46.95":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.95","_id":"@apollosproject/data-connector-onesignal@2.46.95","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"92d7dabb8f1b80325a8409a8ab448eeea4d25246","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.95.tgz","fileCount":9,"integrity":"sha512-t/6rGFjVcJWPcS/BPecSUQ8khZb0k7ID5/MO3GwuCU4HZWGV+wPae1yf2GJea1QMawBb+SJf9dTF0L0nZXPv5Q==","signatures":[{"sig":"MEUCIFu1X2ZABvkSPhO5MOtZKjPiCLMgtBqNrugaA8O/JzBVAiEAraLwCp+bZCGuGlTY9AW8EHpQs1TWrwz5naXTMyGRV5Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPhKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrfxw/+MK+vsSwsz5+bzaFP0rmZubZu1v5w8SE1JECjP9KJgO6RusRk\r\n4cqS5HlBvGoUYdpAycOghYF/wihY8qvR7Pu3hmHIe39Pq4YGuU2k6ghs42Am\r\n7xACoDsiKAYeIlGiieVD77OCehyw1mp94kKl4PIUucmK/XJjNAH9m6VCie9D\r\nM7E/gYVQt7qN97Qu4uct7Fg9jWRZhWkNdELh273dkOR/qKAFWHhun/SjyAV4\r\nTIgjg6+KcVYh3wTdZ/yZ6V7Vj5WQnUbh+ffWKetVBr1JYzNmMkEzDovrjkOC\r\neBc01Gf1GkRhFkFCTgzcue8lSMnvtz0r3xIHFPuJXdElIlUjsyTrJawreWpY\r\n9Mog9hLAc1p7S/6wp29Bu2ldWCvQTVYYLfyWIEvqVm5Z7QtFCmp0gUX31mdc\r\nRWcbPxxpDNPqU4zSFMF2/x0L3td/FniM42GlVJlN8ciGxykbneam7FWPpI5F\r\n0qs/Y2x4vSUzT420Kzn6GjioUDqsAQZmACss5tGL+2WeP3ZQft7PlM0ltYg8\r\nn5CGFuSu2O4y/y1d0+D9eWUel478+WanMtjjCGbt/bGCD5mjknrsZQH0+NNa\r\nviJmU8+V3ZYsInivRczPsvmmcFCytR3NsyTqGIwNcg9RWusCJHbi22V6TwPq\r\nPs7zdS4cukCR33aX/rm6yV8QGSONdBcgh7U=\r\n=rvqP\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a1bc4acc210ea73f166fde940402ee4ec8d2c024","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.95","@apollosproject/apollo-server-env-mock":"^2.46.95"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.95_1648687178051_0.39260793676262007","host":"s3://npm-registry-packages"}},"2.46.96":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.96","_id":"@apollosproject/data-connector-onesignal@2.46.96","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"065c5c7d8679fd5f77fd39992726a9948fcc479d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.96.tgz","fileCount":9,"integrity":"sha512-0ZoKBoHyoaRFRFeGTVUc1Xm+amo5r7kAK48KNkPPY+fTq4jB9HQOhI4j6opKJkOj0du9O2sC/ohd18uSC1j7yw==","signatures":[{"sig":"MEUCIQCumE2wq+kfVH7kttwxrjwk0XOQT/7QNcIKD1JhfXZAagIgII7WUzSghIstZCyAnbfLKAeETAw/88fYup4tgannGHU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPj8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXwg/+Lv/kC7z3Vc5R8IGp/4sXysTyTrB8o0MMLHcwJz565qaPngsK\r\npUQZImvijtloKHuPlrnq/noz+hP/hXi/JkUKB4tJYpoY2FaDU5rdDQEY+JfF\r\nAIkJu5uQVBk1vgt+o3m6DI78ORFDJl6Uv2XaP7DEYTZbVtDU83+Daf8jptMl\r\noJ2eqIa5rBz58PKosBnjogf3Wr/9nhU/4esJzyQzSKiOgtMqWxUh6q617ORg\r\niWUQWrgBS+4ec4apwBU3G2HCtBGzsfYgi4gSdKup+wyzIbBXPzJYXnCqOLHF\r\nBNlAz8kuUUjBBE1DOroPLWX0hqyDG8uCK77DyVy6zy5ZhP8t7NyAOJL2gTzh\r\nk6LgC0BsAoXp3DcY5cmLYTk8C5YuNJBOJDoZuqF3Wt1WfSTXt1tlcPKdqIR8\r\nEo9AVHfdsjzgGCTt166FFsChT2fjAA4gOQ8iiYVCCwNSgu+qn2q6vdj4Vmca\r\nf9JrHPPhxOn0gRr88uv+sxlOLPvDVTjJX/Ze3RZVJv75HLaha1toELRaKSRN\r\nX5Kn2Ar/9Mz9h8wl0Czyn5iMHEBNheaM0jvuYVTrUZ6EEHZXUntyF2Fp3qz4\r\nWy/bZazI/H1StGfPjksDKvjAa4pE3Cwm4eBv2sUfLY7DgxbI4ah6kmho+jMs\r\nDjEDrT/n5qA2W04hFR9PfU6d7Q6G4owBS+Y=\r\n=Zjny\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"151d38327fb3f8722fddbb5721cf138bed92c371","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.96","@apollosproject/apollo-server-env-mock":"^2.46.96"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.96_1648687356244_0.6253157956503388","host":"s3://npm-registry-packages"}},"2.46.97":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.97","_id":"@apollosproject/data-connector-onesignal@2.46.97","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"559a543cc66640b3bd7c96925deab349b10a4fb0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.97.tgz","fileCount":9,"integrity":"sha512-eZbAV8mcUb1yAaYrT5pl6EGtm5PJQJGIXXUauI7x/MRn5PWrNAm1LH/rcdFnjcf9UWYvGpoKY2zaBigsI8Nuxw==","signatures":[{"sig":"MEYCIQDYCmK8jWzoAF3U82+j/Q+Wf6C1jlRk9RgaIr5itEeZIwIhAK8pZK/rR8eElPUqOhoVucZrPnVoE82S4nqsgrBJgTqa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPnsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+Ew/9Huz4y/oR4yG9mI/ODc0VaJhG8Yo14XxfxMVzlCi0Mj1/AYKQ\r\nB12vugwiVT4771L5QRTuyASlEz6/xuegGZWl4qn5yQtjaMMOQVCyroWjpU+E\r\nHlItCGXUJDtcQbzs2ZHC2H9QeDzfZWiSTSDBJ+DOZaueMtIs64P5xaOepHBR\r\nctFTCcv3oj1V2C1C5gw6h+Nmw3jVM6byOKy0hdqtl0E6wlc+jElvUnQdBfZn\r\nICPXnSc5yBLQfzv3wBElWnp1ZLEoNF4k178UEEvIYc7UN1hd93QYqOTub9pj\r\n9UZpQKzDSFXW89eFVwILwNEfMoUrkYCWvbTX1r/aoQkMMo/z/j/G+DM+XlGO\r\nofwZttVJc+2+tPFwUVlsfmnnwH+NNHdL2urJwG+ZoGqmkyhs3ThvI+DEJNcb\r\nVHCN4ibZ4YmDk7FVRWV3wIH15oGPGlcZAQor1KVV/MKJ6/ZTKH8Yx9S7LXbu\r\nyC/Oujg1c7AxB3Sbtlm4lNa5U/SRodBrYlG2v1YdXAKJBcogE8/kkEcbuNJG\r\nOhLywarGM3EhsmUFBE9IauHt5l1+pLHDC5H36CxLxXkDN2CjcC4kIQvTJi6U\r\nWxja6N2QUmEYTBqDR+AeD7CFDZ2cgvgRRKj4rAUJi6N93QMhcjw3zk68F0yG\r\n1QJarcjo5nCTarTw2lviC+Yj2KHFHFiD+1E=\r\n=3GoD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7c5a4e80eade4699de2b8ff825a036b6ca623d15","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.97","@apollosproject/apollo-server-env-mock":"^2.46.97"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.97_1648687596783_0.577803238299879","host":"s3://npm-registry-packages"}},"2.46.98":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.98","_id":"@apollosproject/data-connector-onesignal@2.46.98","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3b7cd6f274d713b593292719617ccbbbb89544e4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.98.tgz","fileCount":9,"integrity":"sha512-sEhqjwe/ur+F84HPJzxYRiLHMC15cd+OCwfjPrrhpPRu+ms3hvH6G7nbyX7NafQvVL8feFNzjqeX/bpuPRAhVg==","signatures":[{"sig":"MEUCIF/5riONTxEu1fr51sDnDtPJh/cGuQxscYGnxmHWZwshAiEA5y3WCk91kseDQNE0st0XNwR2q0Y90abmOFICGpnGFZE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPqoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/EA/+OcJ9PEDvHbBTgPvbmLJmauc3dcri1/wxq6yfPxnUR0d87aoH\r\neVMY1DFJ33O88zOB62TOj5Whh8reyyMgMaov4+TeaJRO2cGyWJR05w8edsRO\r\nbGK1ZfthHrMmwrT/3gNzkJesbN9brfXZ98HxA50i5cAc8qQfT2Bnhh+jDlBZ\r\nyaw5d+rucu8pNhsc1VQqwEiddMwqG/jBVYGJ2HqeOCdgyGdhmrr/YgAMklSu\r\nzYpNxDm3QCJM/WOOMUGU8J3mgpOovI1Tw98T92JC9LpSeATESK3lk3/QQJum\r\npELzl+8xS4swT4fI2VdrlpS/91bcoUbN2OfXYdIrrIjAa7tSshVwSuBfJi1B\r\nGSLSYgwoFfulmvaoYiGPZ100X9cfFlyHxZIgOIQhd7HOc8EY+KSDwCzYguKM\r\nbTEWO0RFhDzf7jIgEO7mX1WD9L+IAr+jazkbpfXH9RY5NQNZt2WDG3sA4NV0\r\nnDPd0RC7zEQd6SuH5cvab4u0tR/Fk6JZtVoGgKxwy0WqCSH/mlyfu4W2ueD4\r\nOSDmWtJBPQ6GAKlgmsv84mpQrzdtfC/FpiyXylDxu75PK62ybBK1pyj1aGMI\r\nbhwEO4HXFFZvMW/MXaJUUoICfDENVgZR6nHjocmuipMKh4sVDNmXevC9y6P7\r\n3vkt9XBC7IhsA+lTWcNSSx3rycu8DbbDBB4=\r\n=5HxL\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"783a8f71598196f826cf37891256c514923eb998","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.98","@apollosproject/apollo-server-env-mock":"^2.46.98"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.98_1648687784089_0.5835200925242461","host":"s3://npm-registry-packages"}},"2.46.99":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.99","_id":"@apollosproject/data-connector-onesignal@2.46.99","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"36516ecaf0749c97f9d2e5158b2e075d91c3d96a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.99.tgz","fileCount":9,"integrity":"sha512-G8W7z+F9b+1PaVz2YjQG/8cfy+OVsDEDeKwzk2RqXcYmbHfQTb55mOct8CmALTHJOwy5AGRoVirVmEUrZVnrjw==","signatures":[{"sig":"MEUCIHif8sCv5AWpU2lLbukaue0zRsKohLVHasS558hYyXkvAiEAyY8dJJeUgqfgp9AYANRqZU5AWGH0uVHAEHf7cSKRZ6c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPtoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMahAAgPrmZ1+fyioTziitcATVmIjVPNcXU+2E3CakT+DRKYdXWs9q\r\neh/Xrx9vyP4pYTj1AtOI93I4aVhVXs9URYzQn6dqu7cEsduQ5C4s0H7P0JCc\r\nxBHld7xYC4sxv2XNFA9oLD7q2yq44mrj6xNZKPu7ln3Md3o/FGCBIHq3JiIj\r\nBXBMuX350LKFUE/CfLotIKLc48YUq4xmSpFSGAXJ2lc3RMo6lrjl5lNZrfIO\r\n56FCEsbEHdIT8UduKcG1hkhdKdl32dHBiNOFy6BT0fOq/W4ijSc8NgM3cN5e\r\ncbCj80+bT4Lc8MkVDc+XK5VtT5UoAWfRkkTXwb2jFvAjytwh+ySL8tb8GYFn\r\n/3h6KlBnMClBKb6gEvnj51oKgdKkA2CzXrB9jVf1qUmeWMEdP2y3bzhgpFu3\r\nicF705EWs8Kcv1gIxCv2S/J6u++wLEpI39v7cJaLrxt2027dz9D0Gi9BQzNr\r\nRxBv8cga/kUIQnoWtDEWWHD4kxA674WomZf0TvebTovfBPynA7thHjUsreOP\r\nvfmpG5/wAa8qdtNySLWmTnrbNj62a+cTbQY4s4JPob1v9S6kojAYgwIhWb5C\r\nD347QK9hc9i+kOXFLcTs1HTxpmJokhHMUeJojW86ozZqdtiRPyHwPcrtUOsP\r\nTbxH3znUyUk/Ct4Ow8OhHZrkUQmJoEIbjlU=\r\n=OmAi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c1abf33052521aef21299884edb2051be9f1bb90","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.99","@apollosproject/apollo-server-env-mock":"^2.46.99"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.99_1648687976570_0.9392320051420306","host":"s3://npm-registry-packages"}},"2.46.100":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.100","_id":"@apollosproject/data-connector-onesignal@2.46.100","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"00ad9e84ca5aad8bb7be60d36a30f820e0029005","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.100.tgz","fileCount":9,"integrity":"sha512-rVVS3GiXGlpxt5RIeX86FisNdRDui7GKFlt9hjY+nR5NTa24RIlsCQJnqXgFMstklJAtGA6ZDjZt8JeqrT+ukQ==","signatures":[{"sig":"MEUCIQCxpJkA7+HHC6906BMlnI+vpCqT9KBShLvLcvWR3QbbYgIgHAEcDU6i/vdzrPoUtJ80X3tn9y35wY5C+I5EcmrNHeM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPwQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOUA//fm0Q0eEDOOwR8nYHme/Z+PuLFYZycnEul7p+2fmuRb7Qn1xi\r\nViT6un6LhYcxDXJishm2mp2bCtmdR2KSBiPzyhYwPsqBnbqq/M5CmjiHu0A8\r\nVGG+ImBwt8AQ7UW6igsdbBh/d2tXC57D5Zs0DqijL/eVSrLrbo0dGDrScK7c\r\nK6+YJfN5CAkT1D7RU3zD/1r/oRlQ7H3NhJ699F95JLIYmxdP2sYsjJifRuu/\r\nwSQ8cFvdG1sF+YW8Xt/AMOiThHwbIcPTBNAnn+6c08M7+Ce/jrh4EBPkeFvV\r\nOp9pbK+pTTgC+DxqgbiLOUTeaSrMlcVsYLGMWPX7D80phw1eQq88X/lDGogJ\r\nWEjcXwE8u6ZawtYS5paRhxOzgNWF9KxNqlnn1nnX8KreyHSDmuQk1EhMu4L7\r\nv8ZFSN98rV0iNDzaKySEuXtcDFPLtUSwJWff01vWViS61OS0uevDOfRXK0cR\r\nMktmD5s2wIB2zKJmM0BR9ydUORJKtC1BZGAsqCAzBjNu88XNH2Y3CbAbdY9S\r\nRXHKf6SKD8R3hq0kGJKBRS9TVbUH0q1/i7IWIYzZhZSDf0I7ZRjKVZI4hMHI\r\nWPJG/QtEOjyz7P3PKrLgyBrnweH1bif5FJmAtYecORXpnzanWkVlYx/crpQ2\r\n2JfYw/sB5UTzdwuvN6mc0CHIAaDTZgKicls=\r\n=8LmM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c2e500b4f70d564425077febef10754e3b1d92e6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.100","@apollosproject/apollo-server-env-mock":"^2.46.100"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.100_1648688144147_0.9229552478009526","host":"s3://npm-registry-packages"}},"2.46.101":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.101","_id":"@apollosproject/data-connector-onesignal@2.46.101","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b98c531b3a996dcdb7c668b061a5819763ba3f8e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.101.tgz","fileCount":9,"integrity":"sha512-dVax7V43IFvkC8wGZr/b5t0h2fuk+bNwtOghdEaOoyXBDy2tt9/vD6iarlpXenz9bDzl8V17ZZ6799cdYuebGg==","signatures":[{"sig":"MEUCIHV5vp+mwigQ0PrIwvu3GuRNkyWxJUdBpjURS09GUuK0AiEA85M/3EwvF6IFfc2IXrAYQJwqovYBhi9pOI4TnVL+o28=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRPzgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwVhAAi8ZreP5v//P/nR2w9BI82jfl4czBf9t/9ZWh4MCG50NSQdrC\r\nXaUNB4r4r4wGKao8f38TSHmPi6TpV1yWvVGqczz5YQCS/DZdbe6bhAeGbz1m\r\nEqk/+3tPgVx5IdaH+Y213Kve6qmUmWJF83dUJ4O4/n9diY3ipb5vSnOP+mGn\r\n1WnuqCCvWfznKm6qMYeW6kGDm8o0TRbHfcXXIULR9Ua0n3pUil1QjZ7mz9o+\r\n2lcpmLQZbD0gkRaoWk5fjtr8evOrs5RlUGPFF5YwabDvwKO8PrgnnD4cfFSR\r\n4izSk2L0zAUEIQnnWJf86+03vXeor5LWMV479OojARvAXCEc+gpBHkvcQWfo\r\nE5hqS9PpMpl2i1+I5iSadhtUXnyJgxpBmjFfUDaX5TZ7aZjhYlbZJ4V1EURv\r\nvcF5MCxgpu7GlFox6AerjHRUKXOOD9qsM1Oa6oE12ErF2AXkf2Bgx52Qx9xi\r\nQCsJ/rfljAlzdg8K8pk3d3VJx89VYvP+Z5fXIUCOZsZ5IlyLHdNUMLnOc6d/\r\nQ5BqphwmjN4BcPPyrOPKNuj9TSDnuUmFafuOgWkWdhH6YPpiMSpHK05vShFw\r\nduoG0g4SLEVUAcL9SJIMWbozEdhVXZ90ilTM93CrXz4E+0OkwXiRJeAhNPhp\r\niEQrRHf/AepCuyq2WftA0JHNnzLzopDFEoo=\r\n=AhYY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a5c3fe53e3ec061bd8d812c51d3ac831a6dc89f2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.101","@apollosproject/apollo-server-env-mock":"^2.46.101"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.101_1648688352235_0.34219910488435157","host":"s3://npm-registry-packages"}},"2.46.102":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.102","_id":"@apollosproject/data-connector-onesignal@2.46.102","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a1796675f2bbbe63be08ddd6d5287e24bb463683","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.102.tgz","fileCount":9,"integrity":"sha512-Q9ym/NRnHK1SXp2SzXwkqS7KIptRBSu5IOR+cMZEJCZ4Bid8L7dVcNKzIPlLqOLsPXPur92QlE3phHrsWVcNCw==","signatures":[{"sig":"MEYCIQClSiE91xT4Pwp7G3qWNxLae47zeYwNZZVOPi0KHxQoJwIhAKtSMXrryFHmAjrg03PL4HSiPTsomSL0rgxau7WVy8RK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70014,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRP29ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWqQ/+L9/JxsALsXShtnC1B+Sc8ZZVL1lAkm/+GQ5T15S6WWF10cUp\r\n9HO5YojjHDVzqwEAA+3My/tWw9q996KxHvid4wKrzAf1gP457bw2q2nW2vqw\r\nU4KW/ixiA/qwIwr4HlScbfwwM+0RI1rUXhPFxNX73GC8n2/TvhQRDiloigfu\r\nwt2neo8eCsgo5BnYR3qfrH6iJOXbcj0BaPvfo0awVQWvYEza1cqT7Hd9kuKJ\r\nnisE5Vlk0k0/YPT7+qxXHtfUChp25EYnEZ7EBqhfyhuTK3YUYS6v79jIqvRQ\r\n8VaVg/RKAUZ+eQ1Ee36PwPqpl1CVlxgkpZemZD7vQbdQHlzQ1BllwXPWB085\r\nDaez4k8Hcw9lWzJinT99pQE5l4ZRrUngy5wH2daqEVpHr7zR+K5/IbYc0sjs\r\nxDwTT2D+Wkst4zEdj7/U8doKajI063LmCE7CVn3dlhWKLyb7I/oLaLtOuHX+\r\nLbsYEXqERcpD45P+owMCUhEcNUb6loUz5zyzNzP9NeAJsr4pqDhpD+ldrpAO\r\n6NQ8/zXsqViGOk4UxBEDh32NDVgrSJq40jyohKB0I2ku0fwDyppNzpnrBNX7\r\nx/UkvQRZjIulv4UK+hfM4hCVFOkiJ8ieWcLOyNRiG5vz9CYQFoVrrDqh7PNx\r\nHyaIyGGk5gWhauOETs1/udR1QExfh7itsNA=\r\n=Fd2I\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c617d908069d063ba38367e10688a9a4923c5d12","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.102","@apollosproject/apollo-server-env-mock":"^2.46.102"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.102_1648688573624_0.3792004553251287","host":"s3://npm-registry-packages"}},"2.46.103":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.103","_id":"@apollosproject/data-connector-onesignal@2.46.103","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8beeae6fe4177f9aa901082c6fc098a14d8468ee","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.103.tgz","fileCount":9,"integrity":"sha512-Qm0Ep5szb0VDmqDxtzBNq2FQ7FQHSyyLUsKTq4G49ocCb3pUsjuDRjoRUb7g1Pa68WQe2WB3WWYrEDqzFuTRUQ==","signatures":[{"sig":"MEQCIC/csRIihaJCgn5hJ5vTWW18bZYPu9K1miiSjBqiTmUMAiBFnNUTEQE6e4M8fPwbX2fhiliCRC5nv8NsKFu1IjldVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRP5wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMfQ/7BudJDInSnZSTxDoW/FrHOxp8t52lQHBXk7qBz8lLjvMZrsoV\r\nGoNesZpD45GNehqFVK0APSv0aSfFBMg7RU+LdZZFqhS/SRHh3W8X4ptrzw/1\r\nnLuHlz6VGruV9AccXbcSLRc6qhcI13mD0+kbXh9ox25n1Xap1n6T3ETaYGrz\r\nH4BvStb0VMsWncn/GX1pd5Mut521OU4wRiydKBNysR1207W7NSWcTWEktAjj\r\nlqsY3xReJefYo0jyyPYwYAtDRkaIAN7oSKeIg5cURQYpCz98cdaPKuWleFDN\r\n9NirNqxb9BZkg9NYMTSJSCxAB+FoWvh+++tS2IU/SiwXV8NfCOsoZXJNwrgU\r\nWwimCoplU86RW/KPbYkwDdzOXQ52lqMEnk3tWWRHkekglCdP2Cgg0yh//lIq\r\nKsbyIuuk1jTM7bUS0frxW6YIr50mjJqUtjjsCYlKWlwUhr1pCWFhoyrbE8fc\r\nDd2mwNu7pXTplTx7WiEiHFdrLbiS558nQB6smITPmA12dnS8/rpZB4TpBzC6\r\nx1LGh2pkTXuuQ4kTEBxosykUxTrpymaIiUgokf2V/OGsbIMHxMXLeEyKogvY\r\nqPAxNrVDtSQjeu896D3bW7eFlA61QzuK4mmYIDAkevmYcGqJ0ZwYMiXZOl/z\r\n1CiUaNUX5kNaHmKbSL6VUN6dBErTQaHbvhs=\r\n=KXCj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"56d0e57e574d027a8446b1e783db535338121197","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.103","@apollosproject/apollo-server-env-mock":"^2.46.103"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.103_1648688752397_0.3456688365314118","host":"s3://npm-registry-packages"}},"2.46.104":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.104","_id":"@apollosproject/data-connector-onesignal@2.46.104","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"44f06dd93a12dea63edaa49b6e003bc5f257bb37","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.104.tgz","fileCount":9,"integrity":"sha512-HTLvTSTp47mzkvzj8eW6tkym+ENQ5uBoE/MlfXENOGcIEDU2n4ALdBkVJ/tbnqM8Yk/Tgq2VrCkJQ8rAmII7hA==","signatures":[{"sig":"MEUCIHnbDI4SWrBdre10N0pAB402Mda6DGynbIsSRalJEcVoAiEA6IKlmLVgMtWdGrqGw/xI9duKBuHbZkX/tc8Agp+4p1Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRP9JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgQxAAiRBHJ3oCkhuEHO/utejZ3LfT/NldS/N5oDU3Lz1uYM5OjMT6\r\nBD/+NOzH1b/SiA9Kp3z9dpAMSP+kD+3cqtF//J3trUjCq0Mesn3rougpVvpU\r\n7fLBV5l9x0v3SwTRWoJFv9GAhcRGXxryiTQ0saKPuRctKJI1ZNNWZe0exBgW\r\nxbhSJgXziBoHQNE/UM8VcxOz2xt3Nd8KpYKVjOQSfss3cihVaHN+MDF7yUw/\r\nQoj8Xm3kdjSOJcqwcJrzZvBo79ZnvNm3RVuiAdtdNq4c8ulePClgaOjn/wwH\r\nFOIg0tZhayS0ol3Xb0ZrHEd45PjKhIyxOPTN6BHbcsmT49PN1Z+20072fSSZ\r\nc7x47lvwx3rSX/5spy1aAZ/zHdO11PDhQ6eZ4NJVovmvMcH1AQ1V3wwdjxJa\r\nJs1Gx4H1fsLxGLffU9dx1k06zVv5TOe3Sh6PpXr+MhtE0OEXUh5NzGaN0nWj\r\nISL5hz3xVowLZOXwYjw9oqrSKhi2o52Glb/GfYW6m/cz5Dtgkl3syaSW3/eJ\r\n69pEB/OhGi9acoSnvLc8/kVcC4BsLe0Z/StyGwdMcXpZr7cuIuwROUO0DlRJ\r\nsGa7Yjh3jdwhXwOttHgpLccYT5LJY8n0Xd0wBAJaS2KdhHE/ErrV6tA7yrn2\r\n3ntGdrgbGF3P5B9PLvt5OGoCkUEPUogRA1Y=\r\n=HQyI\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"127746c89f0da806ef5337b43496e09c882e5cb9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.104","@apollosproject/apollo-server-env-mock":"^2.46.104"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.104_1648688968920_0.4448084640405232","host":"s3://npm-registry-packages"}},"2.46.105":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.105","_id":"@apollosproject/data-connector-onesignal@2.46.105","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f86b348a1da9648cfab0e1481e86e030907151d7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.105.tgz","fileCount":9,"integrity":"sha512-psCH96NFd81jeQsNeKWNQ4+txni5GcEOBtdyCY4kKKTMizgtV/oG4aqXutaMuoELLSJdb/0tDI+I8MgYAnW5+A==","signatures":[{"sig":"MEUCIDwV25qOV9OT57WsBNquHOW/WWMBKoFPq6BWTZakF+cfAiEA4yvi2T3geFS+VjRC2f7g/n30At0Ay3vi0rcnPG855PE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70593,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQAVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQTBAAgxBrqVB1TA48Dqfs4TZ6ha5eGMAALBqhFnqMm0o4yjlhgsdk\r\nYn41F5pCQVn+PRAZYAf+eEEJyawL+qPey5xQvDT8gXQrikjtwNK4+aPJyNNS\r\nfNAyBxusQfN5u6CZExhgcoWgLWyn31WS9duM1YLivStLHQ9q7HFoe719tOFZ\r\n4/+6j9/YzA29PD1QuTOLRhOVUO9IXtgUMAHn0Vfpn5wtCjTSho9zcCupVNpN\r\ns1SdjK4mbDxPNbqe5SlT2pvoCZMRwmZKST/gBzQdnLIAGWRKxTRdl854C4ka\r\n6hY7raZn68CIgpK2owScwiIcXM6EEXp4KAr3XbYppe1eQE0f1bVXGvQlh4sF\r\nRE5+y/l71EjH/oDtOJ0byEFgOtxhHY7jsC2d9iQ31R/QBCA7UGiOQRxrr2os\r\nJVB7oBSYGgVVsjkCtscgnxXV4fSjT7SmYq5/9gPwI63BkAHiPmJ3+Mn+SM4a\r\nbI30KIIujW1gjvgEvR3UzWAkQmOzIJGZSPsb50RFY+UkYup3LU1h1ulMCzij\r\nS8FtUNEsIIlIZXXaoJXRKBRL1tM4vFiNaKTmb1bBhv/WXhpYgPUVWgPh5pdR\r\nYeTSsDURjAj9vbeiSomxKDvLr0TPW3hyMbfGOLFGdYVaRiJwsxYOfu4j3Qjj\r\nhM3a6p2qe0PsuBGoaHQvu57NWaKQhqfxy0o=\r\n=LIKB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"725483cc961f97bd88da5304cdcb3c6bb6fe5802","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.105","@apollosproject/apollo-server-env-mock":"^2.46.105"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.105_1648689173687_0.28144425761996983","host":"s3://npm-registry-packages"}},"2.46.106":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.106","_id":"@apollosproject/data-connector-onesignal@2.46.106","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f540320b2259132bc7a244fd751f13ea6a586311","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.106.tgz","fileCount":9,"integrity":"sha512-gfIlXKaSYYwh11GmtAtpc6LLI4ycP/auXFJDdD29Yh8b8qUXlV7Joz9hof2/w0jTK3W+DjZ0ZFbMZ5JvrD9XhQ==","signatures":[{"sig":"MEUCIBeOcEyeqaELEfW3ExL5YFgWMXG8OVp0jF2U6hlmdvp2AiEAtMc3FLrxUoflgnW8UgchYLNO7J96O8nIw5QouA93B6Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQDsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Gg//ad+VM7STraoeAWkMbfXbzQYHi398aEuZ9J7bBVaE6V4Jh0Gu\r\nLSRfOToGLhBw6W4Q35oL04qksufFntUIY1vs8vbpr+hTPLz6DTM6cFVgTFia\r\npbOHr48i49tMTds87c3XyjLM84qngzUkhdHGVxdjrGZpIQSp7dZuN6xT0ggz\r\n4LSQ7azmZVq+03njnDlt5cnBUvQbBjlmqysVIieamxQPbtJfPAYj+wBMa/W0\r\nqTgZZB7tkI6OPqg5bqVEDXuRrTy8bvxC35whYz1dGiXXtjfgN/5kIN71x54G\r\nKcVWBGC/PROIUXwef2WefW5Om1h/1hYjSLiH6I7cQvkFr5yUEBGskswKH/c9\r\nG4hA7y+lIMUNTH87A70Nu2ILuviPaO1ZdBNg2sCExvX36gfM6M9JRRHCT1pZ\r\nMRTZB68crY3Sl+VY8SKGwUAT8BO6+i0AqtiTJbaZDp/QG5JyYAsbLYCmhvHW\r\noqmlb2yRQaHxQX4PeBQHp6v67vGXnDNMW/jdWzOQ3CNAIKGgixiFGeC9nK4O\r\nb+oNJl9m8UiaBJMkb/pC80fpV72MDqyF+xHYe7tX+kJ/auRBAU/zC0t80IlN\r\nhGeYjdfYV3gDL94+XVUmhS05V/jV8AszMJUv0sKUfG/e/NAu8veo/qlgncPR\r\nYuZsl4tq45CnX28phRpHPE4ubF7P98SS1JY=\r\n=IUrS\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ff681a492e28ca04557e77e88ef18281bcfc6b68","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.106","@apollosproject/apollo-server-env-mock":"^2.46.106"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.106_1648689387966_0.03616279898832264","host":"s3://npm-registry-packages"}},"2.46.107":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.107","_id":"@apollosproject/data-connector-onesignal@2.46.107","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6cdb093d0a49a24e4f6d4b7b2cd734d3b449df57","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.107.tgz","fileCount":9,"integrity":"sha512-OylRNmml3IGcQBhzuwuTNcf5JqwGRXpZeASKNMLeXwfDgSJ8cTbGJqxeSLKS6HSkOx7hnJOXhG7n1zpA7njbAA==","signatures":[{"sig":"MEUCIFrc+6A71caorsqiON4zmKA7SaL9tHKOFkaDOmaw8GWEAiEA8b0sDprst6KI5403FyLEJRP9LB3zLN87BNKOEMfeSqE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQGoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBMg//ZbygQwwjUWrfITPaHJNId+ZpoTkxOCp7wzs9tJG1M9h1eCHO\r\nXdUSeMWvP8sYqSyuTxdHHNTnwQBe/sXG7uXrBr31cxUlb6gKkAn1Mrj4DDs1\r\ndTS6xk65IrENaZu+8qAaFmxXhpD/STIcKGo03iboluGJxnvZhMqRGsei5uN6\r\n9e37jxOVpIjQAqbzKK/nS2yrlUvy+ihJKFJx4llRVZDwamCEx52qoeAywTcW\r\n4iVBDrhTfWxMM+CxWAfh8TC9w0ekwcBWbLq4jrKdHcfn+QSacdP771Kb1ZSS\r\nhCqCO+/n/XCHJcLBNsZJVC7syVswWLaWpSY/zDuL08Epyo/OCOLI/ji6NGGE\r\no2FiokCSVKn6NhLmqnwyucL0F7/eNEZC0WIfWqRaxRbUU6IB4QmiLS1kN6tC\r\nJmFcItTqeEmZdL08WyAwozpgFGGju1rNJQ9LHT22V/QykOb8+b+uyIFcoUH8\r\n1DgmQVgEHTQA5sRKCMd6xJKATsnhJe4embIv9BtIpB7vLt0WyorZRav2rWkq\r\nge9StA115o7rKKBuUZNnDy4ehQsEVtrFopiSp96YvSoJOv8gUGhAm7+t//p7\r\nbBm6wNKNLRAWO6gG7iWzBtGs6+fx7V6qv68hpW/J/6DeBQGQA+Qzdv2XLRvG\r\naY7+NWi4vnP7nOo7APm5zBObztQQCA7+TCk=\r\n=4W0e\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a083c6c8b8b42a057b722bbbdf420f487fbae85d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.107","@apollosproject/apollo-server-env-mock":"^2.46.107"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.107_1648689575926_0.4308425129337712","host":"s3://npm-registry-packages"}},"2.46.108":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.108","_id":"@apollosproject/data-connector-onesignal@2.46.108","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8990aeb17633cc68ffb4614180aaa353f92b39fc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.108.tgz","fileCount":9,"integrity":"sha512-mbBgsyzQ6iQ2ilWYE7t0eANlBDim8Y6u3B8t769QHthWoIGOR/YOI1X1/LyzTjaU5Dr33CqCRW4TXIpaWvKRcA==","signatures":[{"sig":"MEYCIQCw8rM04YDJFapW5C2wlnlmg0Qo2lmQXPLjiY5kM9taEgIhAKDYmnse65bmcrsJ1M8eNrhjX/WIFCh2K5n0A/h8+6L/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71172,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQJlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrERhAAjuaN4iUbxjDGpkjc8xDQK9TcX/cEx2DXVpJQ+G25XqPiutJF\r\ntgUCRZyja3rJRdgRSp7vRzVH4xOooZuOWrPWgTjD+eBq5RIqPSE5pt+PUu7Q\r\njh7G6IxkLot62c1gzf9DFe9+u4QnKlfmXaeKpsLj6lvmq0skwF9cTx1UDYb2\r\nk27lF1xVgoaR4nfEtxEYXJzLf9QX9ywR7fNxR72/dMp62HsdvMrxjT8ZaYWQ\r\nknrL8GLemVv0u9BwVnXqyBDEy+DF9G7xDq+u0JzLirkbU3VEiQgaI5PGGUO8\r\ni/ZWgPk4cAbcsxH+3dClWm5CZKbZzpcBDR5vsaHPh9IejMy+/aUswaUuvEkB\r\nQcYBBNbw2YaAVZ/llNkGSS3L00aOnh6eKuFjAJ+ScFi9oT3eBzKgdK7/WvRv\r\ng/I6o+h8D9l83myaEKVsrV9CzAGBEZReQdbTrZyqiS5rMOBfTIJvYtQOgZg/\r\nKhyzwnm6Rb2X1qk2/kPxWqv9JiT4CJ0Ly5xyAPx6uRpA2whAMk4Wbt1eklDl\r\nKAJga7TpPMrlenUjghU5R8tmDr93Bq8dq8Qc4K21LAsl7dWUfx8Ixhixea7x\r\n9uw1TAdbQdKuKOuv42pPLjqXC3gPQkPKwG1l1cQnCQwkJ7dU1U+2abgmkgfU\r\nmhOfP3AEApenjwR9+tn+6+Q//QYvUxwLD0E=\r\n=qxWt\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3fee7a66e777ddc0497f9e0ce651872969ec60a4","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.108","@apollosproject/apollo-server-env-mock":"^2.46.108"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.108_1648689764933_0.97041808011718","host":"s3://npm-registry-packages"}},"2.46.109":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.109","_id":"@apollosproject/data-connector-onesignal@2.46.109","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"783f3c8e3442c814b339357c887360eefe8455a7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.109.tgz","fileCount":9,"integrity":"sha512-j/UymvpMSGzJuz5DALrVc7EbaWSId/mEjms1NfMqaG8on8wIo7aSDnncGj6CyPteqQcZ4trG+/jOMHpfVqSAOA==","signatures":[{"sig":"MEYCIQCmKq2MkbJC2BppO5/3tkNCrJpJDiuQr2DRyViO/Xof9AIhANnELCNML+evrkuBSczBTmxcZwowSbv4bKL0ms3m7/CA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71365,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQMsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjWw/7BEfcDU7o7zQKdpe9KxgT4UYhao6gtC3v/Tm1wXTBQWzmQ0E+\r\ndfjdN1MSIa47132TehEXEdAt0Q1SWCo0KGu97rt6bHNcggcKxIjY1zgNDH7B\r\ntOOe45EAY52Q6aqfej+veBldlqg747p6a0whcxh+ygRv1iqSn1/BIagm9Qm3\r\nOXDExrmWx3NFbW8FRYjl4OWv0fZlrt39dy+C8MosdCWxUCjM1urUW9JGkdIj\r\nFI0zSLqswGp0bWvQXpmQH3z9d3HPwQHMegKpd9yF8XICpajJLwWaBtUWeb6J\r\n/iHR4ZiK+WnJTLnu8LKR5FHs1QGiPYLhQ/A8L2rUFxVMcEFSj2dV+BfCGEpF\r\n0yDlPfrXhXh1wv4HORs42AE6vQQgXdYoYGyLh4QtQkPrx19eBr0oYxm1tmIb\r\na5frZ1kA+FNkIgief9ss1FQg2W9IAZdVoALU1Vq/poC/s2UlkrKWFKACALH7\r\n0u24VKRh0kjy+ZKtrnhA8MN+aAba78PvxjR7LfO+FX97tLSx8E7g2yoBpYY6\r\n4txP5uF1vjsz2o4qt8MwUgNu7HeAHxxK22FNuzZQDjxtiwIa6JFJeC5OP3Ro\r\nFpLTlQ1JTYZVZ3SZaOjU1MsstAMD5+lxWwo6Ld/UjWr7PqlwLjQUTv+ydiHb\r\n7g3MKKpEyo5Ph8igfyNoixD3RVIRqKpJYj8=\r\n=WlHG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c7b98ca1b30d6105d8ea394a36403089e94d3fa3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.109","@apollosproject/apollo-server-env-mock":"^2.46.109"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.109_1648689964019_0.5501787836418415","host":"s3://npm-registry-packages"}},"2.46.110":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.110","_id":"@apollosproject/data-connector-onesignal@2.46.110","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"33c1aaf3562676e19e072d2034f8f1052989e192","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.110.tgz","fileCount":9,"integrity":"sha512-UuuJHIjhjTMwqPLKfl1qGYw2IGyyO70YtVdoUCxoh82PEzgmph9ZzG/vbvpjIBXr1m441cY8yZa9px+c0h2uoA==","signatures":[{"sig":"MEYCIQDH02ilbCOCNbPFuD65/L0Whs+NGE8OBb2kUxr078eGXQIhANs+jsYHghQoEcQ8gYdHi0HgKAsJBfM0TtjnPzzHzx+W","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQPtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnRhAAmn4Pnu6eP43vKLJKTI1HiABT0ZTdtVsGFLaebQOGRBX4RHy+\r\nLEaVIIKoLojKHTjOJMq3l1FMybKNVpPc8v2CCVrvlc/4jbhAYnOdEQNETMf9\r\nK8kO8xzBEyWVnKLLWLYQkAh70A4pN4R04qlWdX4rfhIO9gIqZnVc1YbdszOR\r\nrzu6T6G8DWaphGs4HScL+8T2RC/utq4bKbGDezk7oytDHxpX02W/gTCqaY3g\r\nwe5QrC1PZw1rx7bRdAEuXqTREK9k1nDGpw0WQ8SdPNy9GPqeuJWmAtTJ2LGp\r\n+HOb0B7QtzHAgzAgGVkTaTqK7NWIE2NFJ3A9KIpLqGdSEjpqlyh8JiHMZcNd\r\nsYrRIFeUZb+FvlGjuX6aIFghCu96HTKkWlbc4C4gFZrHFCx4aeJBRNfK370/\r\ngNx2DeJurdv3ZJuUYpAm1Ne0awpVgA04xUlnjYNCCZC4dWsVrTENUuqc9IlM\r\nEv8tHjZ56EmgLFHvfOJ+EhTquwlVwLWRe/daJ/RVJIsDbZKWacBmEbWCOFnq\r\na6ia4teot7iQHrHSz9twbDbbB3biJL+TumAbM1fJ4cRTIXqH6uoay2WQ0ApY\r\nHuj+hUL+H36hHZ1jKxmY93aqKMAt+7OvPVEJ2aqhJJZ07krWYZAXG9J6xc5M\r\nf7mWmruAUzpxouZpsiYYeIJkOaWILOXBMCo=\r\n=xm+5\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"56a3be402b4b26ec1deb29ba99d7392719b2a6cc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.110","@apollosproject/apollo-server-env-mock":"^2.46.110"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.110_1648690157247_0.5701428531217871","host":"s3://npm-registry-packages"}},"2.46.111":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.111","_id":"@apollosproject/data-connector-onesignal@2.46.111","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3c497dcb692d3a5db604e839760660c3655d04fa","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.111.tgz","fileCount":9,"integrity":"sha512-Bv/Rinhi+JEZs8WOoikkxy2Qu03Zbv5LDr5TKzh6eZRQvXdwFqYJh13aIvmwSOigFBAJA65zAtrO0/fvB89sXQ==","signatures":[{"sig":"MEUCIQCWIMlVMJYLw/UAIvcabFnY52sTay5Zg2OGRZSPgGkYAgIgIgEG1uG3JJi4q0VpyFOjohseBYd4EjQnqNi3ZyL1tVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71751,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQSdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3Kg//Q4gxN6thxv5jqaF6ofMKgLW2x79VWBZsP/ARbrb0nn7VpzAF\r\nHHvC/V6Iyodpk2p1512UktuqeArZjfP7AEHNiuUcQkV1sUr4gQ+4yQ2wWbrE\r\n+Ltp5R2AdeLWzI7OMn2m4qGrHWrrV92HnTiw3Wej+g//34NmlCrDff4iFK9j\r\nAU6D1klhAddP0Bp1uCuutiuaZuauXCv/zQaY1uBKtvOSDE3YVXLulPETBnWY\r\nq5AM4mhXaWsulVakDKvg5WWVaY4LgljtQNzO3H+wdgnWjckceeR6fQnsO5Gm\r\nLQNDl+4FrLPo5Ao38H6/haLsbmHp4hQYUjdTElpxKAjzWrOM7Rvj/MbMkmwd\r\nWh5VPG6ZwmX6g05t1SZnYDy/SaGhyupLC45GzCav6VWRB+n/XmJMT/hx5RUq\r\nWDmEbHiEZj/dlhCEBFoulFQif5mMDwYO3BTzQMWwqeHK2bQWWHeaiUnkU5k/\r\nXIxowOFFVjiN3wnvj05R/duj4UFWEUxbwL9t+oKAj3IwzzcO4IvAS64hJUSw\r\n4EVeaKkJfVScZxJGyDAZnDLHzBoFcRS5MJhRAbFlDjQkp59QBmEeNFHVfafN\r\ndlmDbqWgDIExkyYjrwCvt8BJoY6IcOS4YPJXf7oJU9lGs7RTHOdR+R42ifJ7\r\nXrPPiS3Sd8p5FszQf2WXq/JEvsRHwSWc3mE=\r\n=o6Ex\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8566f39c943929f508c0ddc0820a0ec611662312","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.111","@apollosproject/apollo-server-env-mock":"^2.46.111"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.111_1648690332814_0.9615134211097764","host":"s3://npm-registry-packages"}},"2.46.112":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.112","_id":"@apollosproject/data-connector-onesignal@2.46.112","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d9b2d37b999b9380f35a270cb2c3c1fa52a5de4b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.112.tgz","fileCount":9,"integrity":"sha512-QRcZuVV32+2pNxBOky8ixTqR1zdscxMEh+2aKQBQAROMxBSzzHJKfAedVSa2JyB7w8e+erJXWPjS5wJlyO1CAQ==","signatures":[{"sig":"MEUCIH0aL8rZWMunY0UEfQRYOTLqdgVEh332pTUJ3HOjF4mjAiEA+RvhyX0w22JGRkan41iXIgxRUZ+ahspgYfCa/pn8d2w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":71944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQWAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqORAAonsws5wqnKT12knImNobxL7992JQvpW6wJdIe144TDXycaup\r\n4RIgnQueZTzQ4jST2DQ7LKT6BYkpKJLdt/JK/RUZgImfgIVs5pV4mf/jljLL\r\nR2DAKXXJ7wV6OAnbmaHjiME80IKcOlcK2NhDjS4mqqrMrx2Hh+NL7t9Zl/OK\r\nGnfEFW4EjYTKuCI39m/qAGl7L0QM9fCczwxEnFX+42IxDIsHUMlc0ot0ol0u\r\naXVv495vUCGu408mVr4XD2i6CgTrdT0yUfHsGshA/WYy1JulSBOFGSzgbz4F\r\nlhrEumza4e/UhMRe+JgDMBIYFCb3utOJ8L+iS1hzvaiGAyj9fgHkY5Z1KjNU\r\n6MJEqTj3EZK6M5Zitr5CBDjnY9CZddTfifdwmWE1iGx3L7HilqwYKtCOEHGo\r\nf1NjTysUkO1/oZzOxECwIk8Nq+9N/kMNt63z5FKGRQiVdSCe1trOIqViT0sO\r\nnKBQmrA3NyTp0Obza6idiJwpBO3cO0hscZfZCDPbOpkvhAi8F87zp7rJuAxp\r\n57/IbHi3uz2ak58bhICU/Iu8jKzW0ImcavbdnyX6B7XfpmZDshjiJVdaes4p\r\njVI0pkMWUD9U7FBqK62Njptcrwxrk+zUVgkzScIDBXNla7EKfBqMwov0vai8\r\ncST6Xr4nFMMo6YiTNoMbp9l3f68QzCCvJoY=\r\n=yViC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"37e16e4d639ed40fc26b589a6116391116cc227a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.112","@apollosproject/apollo-server-env-mock":"^2.46.112"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.112_1648690560646_0.30813287273733847","host":"s3://npm-registry-packages"}},"2.46.113":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.113","_id":"@apollosproject/data-connector-onesignal@2.46.113","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"06c6b0b8e8518720192012b1b57b88c7226ffc7a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.113.tgz","fileCount":9,"integrity":"sha512-eWFz1hRmeh/ENbDlH3lJb5YYSU4CdPjlRoU+4R4fRyDFMg1b9Wf9znxU+s6z+aIc8Hpn6NUa/baFlq1d5Yf1Zw==","signatures":[{"sig":"MEYCIQDwfQVBaYUya1XFzqmR9m5sJZx/nVQ3NTUI1CpAqbBXHgIhAIivxEAGZxO1bzSGC4gmFm1/L+yeuwF+y/zl9xbENaw5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72137,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQZJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqsRA/8C6I8th2gP/0eqS7Stx1uMbmnzRe8VYD9EDzOOAPlWJFxq4Zq\r\nT6nG2gs9wfF8vv70l0uMg/CNXxTQgQIJApAJw6m28yC0P4XC22WzAJJtCqip\r\nsvdO6fKgtCx/WgA4U00n37DklK0IBEa3O99abz8Gw58v3diZa3cX3ofzl+N1\r\n1Y798qMpKPQZvZwef0To75xrUiiXmzMIERroUggM8XDuBWJ2Tqym06oDSIMB\r\nDjBICek3owYZE8aB8XLGkILSM/o5PlswngtilayFlFg0lx56TeYMPQfKkMy2\r\n1/cKeAoJjOHT/UPbP2g+xD8pP9QWzzMZArfFKf5DjKpPa8S+bz8FoiA31pBn\r\nNcz3OpxDAfwtyKkrFO0WJSzxoTRb4TDj1PeNVuBkYtrGY2fQdUmWMgZfpsem\r\n8Kqwk1IxsNF+ucIBoWApckZRTUvcJYZMDEpWRUTWazTqSTb7UsppCFRGPy1H\r\nALpHjKGRALqhkqFq7S5RL39F4Ijl5NHmz57bE3usWUbJddknR+LSyT+23vQh\r\nMJ/ljoImqrFc3d+rsuOx9xuY/ikOj4Phdd1iDMylyO4YNc2hWiwSIBjA/dmA\r\ntatymkBfRBoIqmHi+AF4pXIwyLgN2zKvkskClS/JXLFY2TNR98VtpFLtspN4\r\nra+N2hmvRWlf95WWOmCwOwyoSU1QWIPkEgo=\r\n=GzJ0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"835aa1905fb50ed13adeb263be574728c1ae004f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.113","@apollosproject/apollo-server-env-mock":"^2.46.113"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.113_1648690760836_0.6071727243714904","host":"s3://npm-registry-packages"}},"2.46.114":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.114","_id":"@apollosproject/data-connector-onesignal@2.46.114","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"608fc57d87a1c508c74526b4779b3d1897d0579b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.114.tgz","fileCount":9,"integrity":"sha512-zLadFgvgOxTLWquRcL03I1SXXz5+Lp64zmgp/pvxsm2B0XbmumpMmlm6GRSlAiK7JEq5RdJ4vJXoodKGE+ki1A==","signatures":[{"sig":"MEQCICgIiNhjgTEqfBVpKdZnbT+L0hpVRXvW//PS4ultHrM9AiBuo03A/eUXgWuYlC3FZPgnieGFygykCLQfmBJ5E1Z1TA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQblACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrE8hAAmnV0uciL4bSd41Na7eGEgCOak8PXNBzV0axNACqITKvqTSna\r\nCKzuSYdT604vw23mE9irz7ZHaNvPWBpiqx0JKISvkEgU2EExMGfTbmsLPC6x\r\nACRIKgvdmIYB2rW1x3zEJjjLhigan4wendxXdzOyMqH51lxYDYsB+jm5BIoS\r\nbSmqaAHpApF6ix8VQNk/Jz3gAj2L8YQqJ47nYDE8+i3FVnAsl1vjjjci3Om8\r\nujE83aoQjJAwBJ56K+mEKp+jtLvZccC96z98PV5gmINXvWkEChvfOoec7HT9\r\nySUr/XTjiYPY4T2Cs59+qhZLruKGhymiW6hMT/zeSljMqSg6ok1ztU0oBSfp\r\nfoKndFeaNEkGVUwX9Yho+Mp7bV3I9WCJxnLsLAMCVCv1ceH31JXBTSArkU2I\r\nE+lqlL945B05ePs+FhF2WXt7wiJ4C/jJWoxxd0ndDwUHFOLQ0Hbw6hF7vEoq\r\nG1UsN7rixGIgvifoY2EehGwHQA/Y/BD5j6O+kC8s64D4tBmSznkAF2fRXMAO\r\nW7qyOf9OwrygUQi0wkPL09LHML+Q3DVIx7YbjjCDGrYtIvickVgPFXQlnQ1f\r\nPnP5DuZgtWLVHPivpHrXSYN61YWLApAO2CKT9vxHJOkyQV1zAACyRoVMA5iA\r\no/8LiCirlT1x5laXaHS4gJ5GB5gfGnXXrh8=\r\n=rTGO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6779956ccc56a7aee839bc11468ed4532fa05628","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.114","@apollosproject/apollo-server-env-mock":"^2.46.114"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.114_1648690917786_0.303212859172439","host":"s3://npm-registry-packages"}},"2.46.115":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.115","_id":"@apollosproject/data-connector-onesignal@2.46.115","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"aafbe11e3f1e8d5dc2b25f4bc13beca1003d0f99","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.115.tgz","fileCount":9,"integrity":"sha512-9gX/gJjNh0T9XmlwzT9SHxOVNPPKZUeOnPPq0gf+IAvDt/zhzSzGhae+F97yaZd4ASM5HLhctbx/OJTon6+MYQ==","signatures":[{"sig":"MEUCIQD7LUbWOVd5XdIcwJ34Bh8vg4r4fp8yu+jlSheFuDMkAQIgBy/nvVHBQN/9eMevV7EO01831qyDzo445MeFCrB/PdY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQfJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+/RAAo3N1Tz07lYzBDcWKYLTKr3iqSVL0mNaVaJpZnDR2SddQpP2U\r\ntFOlSyM/s/Or3Y8vlpMXayWeZtxEdOOHcSrEY8gmBHu2J+c3kCREqyIKKPnQ\r\n/trreUskabQUkhbz/FMykLDvjx91wP1LxickXNy7zUk5Ritx5vfd7HNN2oEg\r\nydHXWMOczclAWZaW2senemKSW72IdGpVdm24oD6M+oa05U3q7yVO9RM24nMg\r\ny0OckBV3tlDCCV777r8ucRDmTjA40p70uEtj+CubG1aFJbsHL1kUbnBlKYr4\r\nVNKCg+hQdV9LoYfp13mLtn8dS6q6vbfc3XbwBDKuqUuWT7/xE1ugufUWT7me\r\nn9/SUHEpk6Z6IAigQEgy1u/SiWM0m444teeAvEYCgE7nfmK8B8Xd9vPVIiES\r\nIJzI7hPK/+6QoiKXtpHYfODWKEijBGKTVfn7cXHqNbeOfwRQmWtOtM/Z/b+4\r\n/Mss4XgvaZYnEc0hVFDQU35EamcJ35joSOunpHdQOXEe4olkJA8JJpt3iKM6\r\nyZ74JW5VLafuPIvmeeAFgiKZRnTgLLKKOw5p244efJwF/7T6kTV7Mam53elT\r\nHAiPZv9wXCpYLw/RduayMCeMjta4QX/xi8SEtHgRDxEyw4K7vVxPt8j7/3Md\r\nXXjbzCxijGtclMR9vlU5P2A/jvG+kHB4M/M=\r\n=U6lc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8f57a64938aef605d5369fb64e698e4c1b09a97c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.115","@apollosproject/apollo-server-env-mock":"^2.46.115"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.115_1648691144828_0.6539779107527643","host":"s3://npm-registry-packages"}},"2.46.116":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.116","_id":"@apollosproject/data-connector-onesignal@2.46.116","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"213287677c122774d9ae20b7f9b68109e5816e4d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.116.tgz","fileCount":9,"integrity":"sha512-/Q9cjQLdKLEvbQyZyz0lttQXGwsoixjHz6nWgYSf89/OAGStCGibEAz1u4CGRrGp49km7i3TIlj9U8l6czENwQ==","signatures":[{"sig":"MEYCIQCXKrANEwBg/B8hBmD03tkYbGFNHyr6GHQbIH85YI+yBwIhALLDi8ljR1P0iNxIgnHtk/G6fh589xNuPSF0CIg0Y4a7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQiWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoctw//bi6TTz0D+Lcbzvh0rqX0qRmKjnLq77xD6iOC1DyXy1Hhexre\r\n5KdaYSh4fCL9wIrsNz+j4HlkLjI1ib0McI+2ARloky6X/TuM3TL4Pc7TSZ9S\r\npqaHYtFKutH1cNctZQLPM/4fQ+E4JRPT64AxikhCqKGBvgreQFdHhfHyU6vd\r\nL0AAEQH2pQNdQyGSI7Q1EuTcA9eg5B5pey2FVnahRn/MywFEnVTr2e3P/Rg2\r\nQTW8oQ/KiNPLMqWXuCoRNgcBf3A93xgtatyqUD3iFkiUh+HkQeA4WalLdroO\r\ndmsdIGCRLKCSthZyWsH4sr4f0ht7zPPVd5sAf+d/n89HIltMWqPpOmNLcdCO\r\numyE8mikYXpMfrZLRPKA7vQSD+soWn1sHjVOFrewmJ0aEmRNq73MHPw4ETQW\r\n4/GBmtaMN6tOZe6aKPjr/ykD7DflGx/+RNH+EEbEdzX8Ac7BxRpL6Lpib7Qn\r\nN+BwhSzo/jDhymlb8j8Ar1nCtj9IaaJczYwqZs54ccYt8n8NPa7HIVEn4bQt\r\nCNAhpYqC6h8AxoVFr9iMrOjWWGKFYmugcd0NZKICDlBrLP69NADhTNsEGEi3\r\nQPBqhlk8u5QGCQwtEN0AGKqAaaD/MAChWXw+riSmB7kJjAEAirKFuUi1LPPU\r\nbC2sHSN5IWu8UzQbXL8tZ94rhikCoTazxtA=\r\n=sgHE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"5c350ac88b59b1b0ca8f5e04e667e227411fc929","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.116","@apollosproject/apollo-server-env-mock":"^2.46.116"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.116_1648691350508_0.02368597304889941","host":"s3://npm-registry-packages"}},"2.46.117":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.117","_id":"@apollosproject/data-connector-onesignal@2.46.117","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9090613df1dd612d81578499d8b0a11804153a09","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.117.tgz","fileCount":9,"integrity":"sha512-DBNcnL9epubUiKkd9JJxaiD1PlcgysHllI63vuxnS68F9yV2sDp+Cl7SBMLviyqObCX57x+4/EXnYHpc4daWew==","signatures":[{"sig":"MEYCIQCrTzNKXY7RphA/WqDimqXgnrc9x4KrXS+aNfpCbZw+8AIhAIaEoFfq92o4SZkie3pgkd/bKHUO+DvVvTjZetTRofYX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72909,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQl4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEIRAAmOABf8Fgtx2q3ZBpREWdn5BE+dNpOHC34G/k74PPj3Pbcs8M\r\n4ujtgHcevlw6Da0rowd83qx5RbxB0QK+vqASncVdwYCZBskkBJ50qLdf2kCM\r\nraNDbo5R60ghAOxMSLdQYy9A13thAjUnCsh+NQavNM4dHQLTirfJMYEmp6NB\r\nprkRF1THH8BxI6LdJJfgsh9Gg6ejJYQTcSiiE0IOCUaANHldZND2zC/E7ilc\r\n28mBEURQF8GDiOTCBCnL3WK/rjLM9VUOjaOfPf9+kG/eUaQkgOMdP3d7br0K\r\n/IYOFq+qeu3KxcXnfutvAs+0E1UvzQcMgfgB66oQCCloQ6f+RxiOpeDC/e0Q\r\nlVxhuuvc0oc7MRrMjfaVAWJKGhDXoxvx+LWEXskPGR0i3hGF3B30imBoHEsv\r\nH5QTE5zOQ3khGBA1xz2ike8CC96+8TQ2NQyGF0GEsd4e+fE7fAICPjTdu7M3\r\niQc8yOwXasi9ZlZ3sc3hWa9N013y0f88sT++wXi6Clx+SpJmevwufcu2nGLG\r\nUhHr9RG+hvwzApRzxz/Elivl9UJSpezj4etpK1zDiPnT37wA9tKnzNcXGWHb\r\nX0YHZu4dI3hXPm1kkFKscew10wdCIQgZHnuMVZpbC63XGQejFZkXVvRZBVL/\r\npVpOJP2fsWJWCoSnEqNv4k532zgBksX3c78=\r\n=OrjK\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f428b79ff9fd9eaa60211839d8b703ea360cad86","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.117","@apollosproject/apollo-server-env-mock":"^2.46.117"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.117_1648691576196_0.37479697246166843","host":"s3://npm-registry-packages"}},"2.46.118":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.118","_id":"@apollosproject/data-connector-onesignal@2.46.118","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d7966ddd02653aff62d5ca70499dd5f9d7f4dbf2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.118.tgz","fileCount":9,"integrity":"sha512-QLE2ZRY26HUO5mq/7myavJjqC2T1PSF8Z+Xorg8nqYaPQ88Sy6URuhXGuOVuiIadFBpS2MaJaFkrSghIXtsnXQ==","signatures":[{"sig":"MEUCIQCDWjZ/bfA5WoNwODqMo7jTUV+ADSjDCl3r7iKqvyvU5AIgD7keouiscwm4SqFxJhINGnn3D8O7ZcTrWX/P/yQ7ewk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73102,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQpMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEPQ/8D4HJ0vRc1QdEXXiVB2pDFpj/XDIrff3PVR9LjmUaffr3+00A\r\nVa9zIvcewXtrOLb+Q27qCFIBSHPZMGT/5ZORCOjdi6w33uXJG8LqzrE0m5aL\r\nDs3wXlKyI41EXlXjoMtrk3AUUv0JdUqtbLnqhhN3+NbPUdJN/wpFK1zui2iL\r\nA5F36Iz2VfuTUqS57a6xDY7S4EB8pCXSw+zn/q/NS5vB3UWuuHqacgC37Jb5\r\n8U9SdmBr3+FVil59OnL09sb2W9LcauywFhRY5nYskNVDR2i2nEU0iZ5PCAnc\r\nchq10ig4L/Qu0fnBfZTELrRSzJDAxCK8p0kmDZ3zmCnC69R5pSKfn+KS9MWL\r\nTsSlZClD7+uZuCJYjlwkxmJAScItzKFeLww4s61ZjK2Rc4TndtnZSWZQ/cSt\r\nHQS0NfcEzhtP6eFKh3nFnmoaSMGMKY7TBcrmUbtvryyIQjnohmRTF5AChlEz\r\nD+oo9x6d76B7FsvjW5aCZtDxeMbcqaLBu+s8qtez/jMgsZq+2hcqo0ajanuo\r\nbxIfDjCDTMrwrE9kMtv9Z2GONl/Lt2kVJij25CHe33rs4SmcnFzRqk+EfR45\r\nf8nAQwQyAqPTm+c2XTOqefl55DbBAB9zP9q24EV31e+LbKE2LXbJwKo/4iKw\r\nqeuVQL8BZg91YvqHQjV7ToAjA5wQRgWRCaI=\r\n=wiK+\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6514e11138e54c5a64c8f20b6d13b36bee6aefd9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.118","@apollosproject/apollo-server-env-mock":"^2.46.118"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.118_1648691788379_0.3485040093074576","host":"s3://npm-registry-packages"}},"2.46.119":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.119","_id":"@apollosproject/data-connector-onesignal@2.46.119","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ac628cd3ee09ec817d2385dc52aa5059e61de20e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.119.tgz","fileCount":9,"integrity":"sha512-azWE1Dnav+l9kDgbbgN3J1riIn0cOE8Wr3sw00/KMLchjWU3RXY7LwJQyMcZQ8yT8yZCzDTJTeZWKEh/6/2djw==","signatures":[{"sig":"MEUCIQCEcma8gk1aoLmO3n98Nec0eY4iuV9hWK1HCuAp83SjAwIgdUkhxVS1X/SCyzMQkpXHlCRvH2RMnYR5I3VEljAYgFk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQsBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQYQ//WElL0VHDdwEXRlw1sxfYMQwnKKQKg2c7ZdKukspfjpSlvmoB\r\nMgXwMA2Z7wWJI0MyWN0gtaEHahZcORE002b5jymC7cs1IeRQAhX7iY+RnrXu\r\nFgdpgGCTEGUL8LWDcp8OMa6v98h7iuaUVofl/YPtMPUf+tSw1HaIB/GsDVlj\r\nTE63PYGdWLLndeWZhyen558/CShYuasKvOXcMFxRKyXGtbml8VYlz+nNev3G\r\naRqaHJc6etEr0P+ksnn3fUpBWQDaIs5RcxRxe/O0uWLQoeuQqqmLYh3eiMGl\r\nvQZCFGDIudrSQwsevnF8WVRSVuAwWeRy/5I8wWiPZ0ShQ9F2afRVqhIV4i5v\r\n1V7uhaYNiwNr2gcMtPV7HpTcxOKco20KkQ1qSlZ+9kiIR6kgVfvt8PbNJOCb\r\nQGLwiHe5q/QxnpN7RolaWgOR2OSZw5WhUL9pHQQ8SNM9+lgiuXefZvZKE0+n\r\nn4jLqIf+gMZ+CDsSNSIoZezs6mgcSC/IBHFv1LEzn9luKr+NGglZbySNc/mv\r\nyF7rpGJvLDsZd1b1QUulapenauNZspM9K8Mn8lBxpeF4JCZv8AXQEysotxu7\r\ndWqoraCojMSa0XkYOlj4TenaeY5g6g26AjRm58BKcYsrxVQ+c2qrkXOUUn9Z\r\nFi2kOOUdcolopzcCHlnJmI6XWITGNUrCymA=\r\n=YBGv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e8e0b762260bfab1dc67021f1d90244a68e2ef82","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.119","@apollosproject/apollo-server-env-mock":"^2.46.119"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.119_1648691969019_0.7221541647732796","host":"s3://npm-registry-packages"}},"2.46.120":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.120","_id":"@apollosproject/data-connector-onesignal@2.46.120","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ec86447c4b41edf40fec1b5076864ed34777c78a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.120.tgz","fileCount":9,"integrity":"sha512-P6p/pFd1H6xWy0qQNVaCeTQxCm15IDGxTvBwQBadDvx1k82NeUOuVKplN9ug0WDFZBj6Y8bcuDt31e+FJV954A==","signatures":[{"sig":"MEQCIB5rpVNCEfr/phsJVvDlcktKCSlts2A84dAUpPy0JSncAiB+zMsFbhHxwy0pVnnkDTn0sipMpUIpd7JeMR2Z3kP6bQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQucACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYag/5AbJip89TZADY1KSfV3A71wDkNjlLtb9RMOIFBCsk7LEQrCV9\r\nfBnxi9fpl7iEkqS9BBOvuptt8IJCbNS7sgkFFgeUV7bl8tumqKFIsphmFd0w\r\nJgePBGBwL+aoswD08udFLYjRjBg0o6IyXh1MmIINrpd+CV4yk4HMQXa8nz3p\r\nAWYCHmOCiRSA/P7SzrxqI/MXsOGAbG/XNo/4isl+PlRbLF9x6A73l//3mur4\r\nBoxPweJiFrMxoFUlU/Jqlc8QgtEOTv86kyu/lMoOduUAR8rugkkzMe4TCcK1\r\nsV2bQTLRccTl/gV118uOHtaIUF0o76+SDiGC+HL03RQzHoEOAlTzWUjieqIs\r\nkXTxz88dDRfM6haqIoG0sCbxR61Tz6I4MDoqx6vf58cy9wKtbQeW1xINqA3n\r\n5VpkrorD/5EEq+SXxAF45nazQY6WAgvqeg+z0uNtMlzFJValDwDD32KQ7iVV\r\nv4IC580pXwMwnFNZsiUZy8zMlt6kS+hv1XJ4zbJCa5exHVhOLKCSC+b62o3B\r\nEHARRxeXa4eb4N99uWsUt0a9FyGHxSaI7dmMB1azbfyRmy5zrHZIiX7gvZFG\r\nsiv6jgpAYFG/kF8wd5yYrxTVkEBlCNr1QL9231q4er6LrrtEY6Mv9vICFZtJ\r\n/0Th5XAeSw2cc1rwMdpYSe6j3xz9jVPHE8E=\r\n=Iz2f\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"24ae043c8126b300f712f71f40ead46b634aee50","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.120","@apollosproject/apollo-server-env-mock":"^2.46.120"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.120_1648692124252_0.44588248195116287","host":"s3://npm-registry-packages"}},"2.46.121":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.121","_id":"@apollosproject/data-connector-onesignal@2.46.121","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5a999ec0bcce7900afd5f5b98708ac635fa0dc20","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.121.tgz","fileCount":9,"integrity":"sha512-jAyfosyTKwEmNbk1uM+u7J8bmA1ZFqEy4kIzdUyWrdeKdCmHCS879jkfHrTTkidhZJG7YsPXwG0iA3ImhB+AIg==","signatures":[{"sig":"MEQCIASqCSshpBlz06aVnqJsoi/Y3RMnnz1QNaSILV2o3QtyAiB7FEXUfoZquUljG3UVDnoqYxQMShekhgP+s7nq89jxOw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQxIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpelRAAlmZHN6a2N5SgVDjHBT3NRTrI/Fr/y8z3CnZkk6Xcl8PycH8b\r\nEcSP8xFVTU2sZ4nKCjbyuClFdJRI74cGrs7rPXNjF/O68jcZeHV8bno4nGtz\r\n8c2UEnZd6HLcnbTvUWjbRX2ewuZSwfmJVLfOnHz6GeMwov7PT+I9gIJPNA0o\r\nifoPkJjqn3fopv1enPK+7ffemzG5waksuISOCyBCcr0AjtTrZ/y4LN9t4feY\r\nJwZyykEw59HaTmiT22kgz9v+XrghElVF0ErbCTYEdCP8LEUXc18YCytliTk/\r\nMX8zhzLl0KLA+AYaIMeKRhqFQcmWHmvxZya2eMFmEkDVok+O/Kps992lVhwK\r\nNbIqnA4tgxV8UV5p2lT0rr2iVGeYCHby/0N5wGn/1wYTZapihzeqNQJFmQoI\r\nXPDSZHQp+G0xovmgEItFwOrZqoH46ATGHsjKxtsh68w/ty/QU6k1IEeTyhBe\r\n0vUHd3ivmSudd0tDWRtGcPeqs4N4/Bu0AX5BxNZMTua4VTn7In/an2agV88p\r\nJwXYwGmJvAJjXhibJFgYCdzVcs4JbNxxWZHhFRgyyuDHtozJD//6ZVWombTE\r\nH95xCwY6X/j6f5pE1f5LIcgBjqSv+YfoPMwIFlrciQEZJ1uSSNkoH3K/oeQ+\r\n+2ZdbIlHOJPCww633cn1PUtwLdQBXMmkBgE=\r\n=2N6a\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"157d311be52279e45f1683cbd96c68bdfb724de2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.121","@apollosproject/apollo-server-env-mock":"^2.46.121"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.121_1648692296070_0.8855039188105227","host":"s3://npm-registry-packages"}},"2.46.122":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.122","_id":"@apollosproject/data-connector-onesignal@2.46.122","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1bc24c59722b7141a9a4fa61a49d3e9c9052a0aa","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.122.tgz","fileCount":9,"integrity":"sha512-pDDb+Vcp0W8P99m+KsoXIeL0csTU0WaiTInPMbMnTlg2ujkbp2vh0Eo2ko+HcGMHWGAJAWirZ4pTWU5MmCsUXA==","signatures":[{"sig":"MEQCIHZHMBeB46tGj7zqPMSRnsJAAqmvQE7fFedmKovZP99EAiA2oU4lbARHNavb6qputb9XE3pLgKXuA9WLPapuY+XGlA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73874,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQztACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpq/A/+KCQcmELV3xw3jHLrDSorhNzcPiO4xrFNp1742SFKFknHp1Z8\r\nCmUg8/FRm2LbjFQSNUtCqo/OBt32Jps6KoQHQojATXenXwvixFz3bGrnH8cP\r\nBGM/yiQlikw+cg/w48sNo80EU8iyIhRcDJShw32sIUmTLe8/XlhkMsH0ii4P\r\nNBrI5jVgrIYcgK8x0nfn/oyE5hj8pKOWj9iqHNlN8Sf8RmO9PfVXK5bLu9RR\r\n5vsjreJQLPw7OzENp9EUPgkELnw56jeGULytC4hd1HSSkW7en1vYmB37o55j\r\nhP815TaUO4qwfMyQFAScO7vwClbl7wYysVXyRJMlyysF4zifwmMtiv1ln0lW\r\n4Yo4mO9B81Gp45WelJ/rqi3eZWHHntKggvFqut0cfY0n8olld0iMMDUUVLc5\r\nvjhQcHJFoTyPg0kq1INPbpwpTSB/fhoBKLgO33jL/sdeSsXKzNzCYQ+d/cK4\r\ntwVsRjoxFB/s9HrTqFJ6o+9IVynQsZ96g3OVuiPnZJBpsJG2D0r3M1PXdiak\r\niKdqYCpCb4g2uLPRhHc6w+VRiBOofUsGSkydNB339Q+ZNQQA4/7BnsMajoxV\r\nto28n9sIYKfYrIfs83EBM6WsTGizO6pFCmKNrf+w6bHm5AJjTzN+Xu0tZvcY\r\nHfXlchYGshowasBwnAou0Rv07Dr+dYct3hQ=\r\n=oOqR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b2f789c85072330715ac09d2bd9b64aa22776569","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.122","@apollosproject/apollo-server-env-mock":"^2.46.122"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.122_1648692461338_0.030408482389404412","host":"s3://npm-registry-packages"}},"2.46.123":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.123","_id":"@apollosproject/data-connector-onesignal@2.46.123","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a715692b2da4adc6c0479fff9b098ee08ba3a420","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.123.tgz","fileCount":9,"integrity":"sha512-xV87AFd4PtdJ2ADfA7wr6SfLTX5gGMD6ahpO8bz5sSuTHJNObNUMMLQDefzUwp8sXoioZa0XiEtfV7RlhGJDRg==","signatures":[{"sig":"MEUCIDXyZGPImL7pN6Bjp8pPQJYmWR4VnFXNzqaMP10NOHLKAiEA2mPBUdjiVB7lWGpU74dHRN79dA12HIF+WDCqCig33Nw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74067,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQ2PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbRw/9FJ/Wo4TozlzhVXVWJxcfb/P+CfTEh1Hal3VFYb26NSLkKua0\r\nQHG6ToWKQnYElRR/q9pd0uMX33SHFoJaHNFCnlKzJAa+znf2bHPeOXK26CQZ\r\nWdAsbAojJHoP/m0YDiUc3Sa+O2nzNw8Wfv4lrUI3uRzT7D7S7LoVxrzZ0hh0\r\nNd1o0b7AEec0Rh/hOB5koPAeVF9daX9bJr7T+F6C1oBEMEWYqYfrzC0MpDMU\r\nUcZLVnoxO1x2SESxSxyLCPJ2GqaN5PQPp89168kKxXSx/ruYcxOTEP13ZYik\r\ntKc9HUzB/S8YjyN0bylGazSzS65pKkQ4k2P2HDFbu5tNGZx8XYspeuMrnf3S\r\nNKkkB6Ro+WIAe6uM7K81pFhmjjNSl7bWHvYdfgk3juJE7pJb0W5fNq4haot3\r\n90nblUXt+E6By8tDIkPiDDdgwY+VVTtCFo3Fb+IAtTQ8AJOg9o3j6g6gkYYn\r\n15a/yu+Rfu/AXbVPkn3ogeV0Xm+uONt4AVasSfhRs7V0gEQ7fiKfvkuJUyl9\r\nWPyyju8L1nkYlDYN+lDLEzusY9G+5+kRBfktPdYiEdG0ZWxcGqK9SJgn0/oA\r\nVfbTUIRw2wgipY2rU12zH4gN1UU6bV9nWsZAktTpXbK4cQGykqm5QwedC2gg\r\ngBT8r4EZonYkw20a+dh/P4HhmDlKB+C5TMk=\r\n=S4K5\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7104ba9463c89a42d7a7e9ff0227b19afb13a687","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.123","@apollosproject/apollo-server-env-mock":"^2.46.123"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.123_1648692622847_0.006529159038781485","host":"s3://npm-registry-packages"}},"2.46.124":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.124","_id":"@apollosproject/data-connector-onesignal@2.46.124","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a46935264d5bd999bd73b90c0735b81a9d96be8a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.124.tgz","fileCount":9,"integrity":"sha512-2SGF910Ge0GV2U5muWGJDXQsn0jUdhiU9VEripGAyw+uPZkAB4ln7toSMV7/DLsIUtYUwB7pa4YuqekkBYefoQ==","signatures":[{"sig":"MEQCIEDYeNqNMxJFlqucJqQm8seLIXu+oliIrzCyJaUbhPQIAiAxHLBlh8D3q99WEOolZU9HqygUFK7Wqwa3JtgRCsO3rQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQ40ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohdA//S+YcWsJwHVR6emXLhzzv5RYyKL7lnXUzNOohyxR8Vj8cLdXS\r\nnYMicZHTWWIDn3ZdIlXiAf5Gi8/LnE9ZNJbj+eY6MsDQjBSJZbPo0vh+AN0e\r\n2LEPZ4/Rd2TK3t0MwfyqgECaDpZ5h3i7vPrSoMQCe5KkOP3lTvMprAAc0+Ed\r\nugu07Th80XbI8940kizyjSba/n/We1ymcm/nZbPLEQ291QtwibxAW3mRT8dZ\r\nsPeZ2dsNXit7E0nxFYQKgCYsacYHbi0/uA3xdqBPbf1IiW0ndG6mu2WIZr3V\r\n77EqCqvXfwq+x+FPxwI6voiQ4l/h7mOPKHd6f1WtFMdQCTvdbYVNPsqdNyLM\r\njXaNxL7X1DOCV504J7356NU0tusMUgCjLJHcaDRX8ThSJCaKxdi5csIZNL1K\r\nlZuCAsEGQbw7Y3sAQK8keqlmJf3v583+lvDU47RQPf6LjNy3KTVbbvoyZU06\r\nosAkkKhgivA1nliYIXa8UpjrvRcFMlPHTzoIxOUPbWup4CrrQUrU86Y5Ij4w\r\nC4HUFqd22m0oYpHrlompm/QkiYkGcxSWrD85MNfAWU1v1BCJ7zyN/cYURAdV\r\nbbDJwAbm3AHGUl/7lb6JbssoTFfjfduzNgfd8MMAZhwjz2sgJsMKB9Qrm8Im\r\nR7sy2obR9Ss8UmvRMhSSn4On1eCM+k8pEV8=\r\n=aq2N\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"4ff4eb4ef52501cdfae66dea4defd5c7d8951da7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.124","@apollosproject/apollo-server-env-mock":"^2.46.124"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.124_1648692788052_0.9322459413750375","host":"s3://npm-registry-packages"}},"2.46.125":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.125","_id":"@apollosproject/data-connector-onesignal@2.46.125","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a31fb6fed166754a41941ae538d82085c8b90925","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.125.tgz","fileCount":9,"integrity":"sha512-8CKSlxDOU+P294eGTKYhT/H7hHpKkQVq3Q29TW8AczKvSjyVgAf+v6SqgdYT6gOAyx/qKYr2QM1rawoXni8PeA==","signatures":[{"sig":"MEQCIAsmIGmyjuMu9YJo49ZdYeOud7w24J1BO9gBAK2oUBsUAiB12OImEBrj1J5SGk7nZIhhEf3rA2U4zNgSa9PklmwtHA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74453,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQ8fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrq4RAAkmLn0L1PX0/fjRvznwvyBSyq5XOj2wmEbyZ+DH0dJvoFd3N4\r\noJEnB+BgH/MRxfC7OWLb+XQ1Ka2T5WFq2NBPmaIq877AD/XuKTJj9e746XdF\r\nk328QJb2x86DzTNHmzdhuUrQfIf3SD+g4U45LBmVvoehtmG2TkK+2S3C7+gy\r\n9b6n7CX/QOWPZWD6nKvN6Le2fGplN03WrPi7szut+WdE4OV6IDHEj7alSIfY\r\n87meU9NlEVIeVZyuNB5AP093cGBIh9nwKY6b+sXJbiuZ/4DwP73PkK4/1soB\r\nJ6uFOOHlWt55cx309wytHPbe8XwjiAXj2LOVc3SCUD7d+4SjqcdwC2DpmqSL\r\n19A3j/GwGNlXOEnTbw5AhCoqBWnf5rKcD1DCR0v+VeV9opT0QklXY2jvYG9+\r\nm8dW+BIUvvO/VxTm7IJ9QkREVALzQgXluXF1//t2qSHlzJRLVeVhkmtwijAu\r\nDqlkzS7wr/Af/gz61GfsyjrECQjRqchaCsPcOpxNpQwwJWMvqmQ6UJwnnTnu\r\nX2PBA2nZWfF3zvhtTTSRiyPXbGzhc2+NDV5+JI8MjTa7bjr+uojdO6w4Ul06\r\nxA5L4K9Ypb5Akw8X0F1Stp8N3s2oZ1iZYq3gE7kZXhivmeqnmbypmrOAi9LL\r\nW9HuBzcHpXQvmAHkbKQoITKNcqKMM7dNb2A=\r\n=fwVY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"170df02db7a79aa10492d2d1b180b12be51176aa","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.125","@apollosproject/apollo-server-env-mock":"^2.46.125"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.125_1648693022871_0.4347937927425296","host":"s3://npm-registry-packages"}},"2.46.126":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.126","_id":"@apollosproject/data-connector-onesignal@2.46.126","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5cd21eb74d7cd49163ed120ea8a9237cfdf1c0e0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.126.tgz","fileCount":9,"integrity":"sha512-xAlx45McdLPpZiFMETYqTUlHoBlyFkb/9LTrDboFFBSgt7IPzqol63qiqzzimp2if3NHkTFpaYgpyQc5l1Om+Q==","signatures":[{"sig":"MEUCIB1Iqs1B3EmVGDuHOThD/pqa2wDMOgMRzAmDl3sG1EPVAiEA8kDJl1SPO56COcydtnHSItwNHqVnTLbgzv7ASMHBHfo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRQ/ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmodrw//X0aEz+l8KJWYsj4XQVfpH7OYZa4STt/4evpRjvJ4B17L2O9j\r\nKai5bnS4zjZYpyUyuTWcFO943CJRCZSJwGH90VcqdS8RkyLWJhfd99I3KFaD\r\nkc7dNKgAXuvwJqYHVR4oGp0kUtLlMmW3UcXKiWbWsPmXrkzaTs2/coRPew0S\r\nndbeX0j6LfyAV0GMDlk+REd7YBBFQiLMqxbFYuqL74n7Ub5ZukOlEf1lCf/g\r\ngzHf4Mxp8vBj30QLyyebj7Qp0ROhlIahlbnYjr9KmtW/qt5Z6s/4CDJVEPkh\r\nAfoo5tq7sJUD8kbOxGiiECXtCZnv+95e70scUL4Vf6BZWvwcXSIaIiEzWHMW\r\n6A6oHCxkheIjbx6aD3Tv+TFJr4+MzpdOkYLzU4tvYl6c0EZ8ZlNJ5V6UByqQ\r\nNM5HYl9P1W1zx4CnniV26QTFkoqhI0Oz+JJ/6DnwcGmqw77kEcKPaJ13frlS\r\n04A8yU9VKui0dv/anCplxneBLkjLHDFJWZgHhkXh2GTFXcoW1Is6IOr5q8RS\r\nyJIsB8iZ5N7JoEzzdQIfa9Jejdb3o5/l+/1+WVf3+gnQcY4hiXWCoBCwm0j1\r\n+ksC49NT9dlRpj4Iq/tFgUM3qE62ijmfEo493kw4MwXofmnG5VtDheYXoeXJ\r\n5zWMoI8muJFlh7mLaOzaIsGQ/UqJpvcjCQw=\r\n=Ef9n\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cbdb155d987bf7e478f16854244138baa215e0da","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.126","@apollosproject/apollo-server-env-mock":"^2.46.126"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.126_1648693208871_0.4950757414800844","host":"s3://npm-registry-packages"}},"2.46.127":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.127","_id":"@apollosproject/data-connector-onesignal@2.46.127","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c4026bf51bbce46ff4f35b6a85c514a4b1a3d808","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.127.tgz","fileCount":9,"integrity":"sha512-q+qbkFWa7jLaHkv2CtKYKzHIXJWYcBtaQEScVMXNy0Ar48wYmm/iV6aRN0p94n/dyhyupCKOkpou2VV2l/YSVg==","signatures":[{"sig":"MEQCIHpq4eVwg5mjSZk+4kIdO6K44hQVbssg2U6b85xmeH96AiB7vYMahS2cqb4iOLNyqTmBhoHDZEJGqr8TCNuO8gwlXQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":74839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRCmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpdAQ/8CD2gUeTwfaNjvCE2ecVeht6HCvxdIgVr7nxY9xdmCycXcReM\r\nLs1KyjI7UZFcdv280XcTi1Y+atfYUaaAbd1ld1QVxtrCJsZJQggRCefGC7Up\r\ns0eljL0SnVoTIugbLJdXpy8SpcKTzKHQE3tUt2W5v/f63hv+Ywbp1h60tdwf\r\n5GtgW3BnHx3Una/EehXv0Pefyk/fo8hW/OF5IONSdRm/qNewEd7oCn0wCUFw\r\nOt12EWH/JztKqq80y9or2UyG0RhuFFr1Mnpocqj8c0ISOcVI19mBS8Qta1an\r\neiyyQ0UawcN8LtOoOvQVdAbSi1m0BUbSuqPhvrF9zaROCZ0CeO9aX+np9DRe\r\nYWhYwbLtvAgLGwaK7oblyy3Pf1ITK03w9gxA1IC7eIogzRJtpwPJwzhmFyNn\r\ncmWWupG6wKqvzYisYAxyz5dNEJ7OEM2axx9MSEURW9ApuMObTYBHJRhbeSbZ\r\nFWSeJdnJRe59Y/XDU7KGzv+jyPvey+JsKSk2KeL1VNbovaLlDxPp0pqvKElj\r\nPGX+HgIKOENVef30v8+/QJPgYhAe3cPBiHTCGDNw8T2T2aOXJDi48aAWm/CD\r\n4hiNQx7pxFgzhVJgCT3bxUj7ViirPnX0vxqMH7KpiOd302jSItZ08+NzVF2G\r\n4bF1m1U4RZYbX0ounJF6jnMEC8UW8HbAb4I=\r\n=XYUO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"9af74da94ba1f98b472962187b26a2390ddbd954","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.127","@apollosproject/apollo-server-env-mock":"^2.46.127"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.127_1648693414565_0.267174760036464","host":"s3://npm-registry-packages"}},"2.46.128":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.128","_id":"@apollosproject/data-connector-onesignal@2.46.128","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"723a2fe3d1689768cd7debe077a7efaf9f5dfa35","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.128.tgz","fileCount":9,"integrity":"sha512-5WqcbWheMV2idLg6dG6+65Z2ia/wEQO0azPEMGBxqaZAOhSQVndjlGinF+lgDcbEJzRnWZG8r+O5snAirXq8Gg==","signatures":[{"sig":"MEUCIE2O4r0vFjedVdYDRp9w/33PYQdK4GUhH4pGwVUC5trtAiEAsE3Jlz9IifFrb/arj5Ygv48GddZnJJmZCISqhu3Nx2Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRFnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQaw/+JiRCe64dVVVUoJTu3g/jxTTvHH1I3G6p85RLw30vfH4AS0Te\r\neRbJIvVVWeDEEcEKqAHUTVDHB332CDFVMiOAXL5kTc2PR2YPaj6i6FD5Tmoq\r\nqbkdH1rQDaPcA0bIs4SpY34po1CqTfczdyjAJRhRWBHRtrPV6MLZUmHzh4nF\r\ner47XF/ZFWr3oZj3hoGcgblH+c5oUNeZyJTjVDqwDzk2cpbzgqjG35HPySGl\r\nnHEyvAMkJWtDI06XlNj0yQRAKRtDSTl4cYcgVlPrfAphj8HIXrTHW4ptdd4w\r\ntJyE1xR3QV5AYOCQrEioNp0QfYlCh2oFLo/llov14RXlbhmWhIcnQwVw6En5\r\nN0/0Ipycz6dfiQ3dbNvBgvMzRWyYoQF0KmcS60LAfpFInX0iaYsJFhnq0AVB\r\nhi/1NangKjSI3bkZQ/I8SXJJk5PAFYAob0nJ8tvg6QaeEIbRpBPGi9+XGsqN\r\n9sXjKMLvK658Rc54016+LMSRVQrPdnNCLahk9vVw+oukrUKm85EqZ5YyEMUy\r\nJNxa6ORInc/MgSl9k49aLgcELj96W6OON/pq1PlNYM7PIlZB2ZDXnX+D72ER\r\nhk8cA5WhiYDDQ+9I610VmQ3g+InykJ6S59ljJODOAfcUiFvbMzIDP3Q209/t\r\nVnq6iy/rcZhebODgxUG9SltTk7+F54UgUls=\r\n=3nky\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2434bc07d091f8756829c94eb98251b6b21b5dc8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.128","@apollosproject/apollo-server-env-mock":"^2.46.128"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.128_1648693606846_0.38675960891669203","host":"s3://npm-registry-packages"}},"2.46.129":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.129","_id":"@apollosproject/data-connector-onesignal@2.46.129","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"56d11ef5303922e08379ddf629cd8214a03b72e0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.129.tgz","fileCount":9,"integrity":"sha512-13zOP/GZItHCxpUv1dfsaRkfj104N8xMJTN0DikI7c1hNt7+1FIVgHvLMpCBcJO1Cxk1rNCFp2bsLpDao3yRNQ==","signatures":[{"sig":"MEQCIBXW2SYrr5cw1YRlLOxhPOEgfAxaUyGT0uH+eMfubiGHAiB44SCQ70caMWlLhcN/P4ehqFQz0fbyaqlGLfabFt6x7g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75225,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRJNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7IhAAoM3siHL8DYKjZV/GfnWWoGhj8+AdEun6wqcuKM49ZZuk4rBy\r\nmtrpDgjsfquU+rAR7vszmwa7QkqzIyCQ916LJ7hIS5/WSwHwJv41Y7JDODP0\r\n9n7qyVn5wkRogmOaTCOpC/fuaZixjgUpvvVpqRphf/uCUQVKrxHz2dd3xNZA\r\n2Lbqfxqj4Jy5KpMR8Ch56QldY4xoyxkrqReaMwOWmezlOeJZyu1Hv2d2aGso\r\ntIQVDmxb5E7CXReMl+t7a8wubhFQIXJZWM61v4o9bfzTpkoDP+JugJ1NLKtd\r\nITFVNZUm73tVjNxvrYJ0/o33p6UPQU/H29CXRarUVONGLXUDEdHKvqOQWRi+\r\nsJhDrV24XUyIEyOOkCM3cmQzLui5GvMSPLuikr6AB/tyYS7iAqKP1IUIGJvJ\r\nqzioGNF//RF27oYMBD3dCCsGaF/4la3YOGvQxaZE8Fy2HN5wzCLz8fgjkCQq\r\n/WkHH9S5DxU/DiT8NrO/JY9eCRBWB+b4pmgOh7StqkqxRAVh6VP8Rbr+n3Kg\r\nRPflKe04CIAMU0ViXZhJzKk2Phhc1RIyt6d5ULobNsamCosjiMalUJEb2UBM\r\nUDIKjvWVNpyIvGVSFMakNa5ws/9pTsxunLuXJ5a/L9k27KsB4c6v2LqBXnht\r\nN2jCWmA9ZpA7UxCxNC0A9t/1hXedBwlABSo=\r\n=H/6a\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"391bff8f6273074ed6a4c87222dfe83fd200e4cb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.129","@apollosproject/apollo-server-env-mock":"^2.46.129"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.129_1648693837545_0.6414177500065115","host":"s3://npm-registry-packages"}},"2.46.130":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.130","_id":"@apollosproject/data-connector-onesignal@2.46.130","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"4e18b9e0f818d62c73cf06e63c4a3ec3ec839aa4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.130.tgz","fileCount":9,"integrity":"sha512-Xq3AJ5GM5xIr26yhStpulcrCjGfO4AyEV0Uqvh1oIQB+ZiREK30NtDINd+nVuCuPgmbCKo+wuKXkWn0ygojTPg==","signatures":[{"sig":"MEYCIQDPQLG3g523S0ltPzErdPvyB0vgc6rx1DbsdmP4AvnuWQIhAP/ihszMe4iR9jwS10lBZFL+TxVQf5Oqm2LkXAKQhW/B","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRMNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqU5xAAhfiah4mqH7BQdiNxXh3uUnLpBt4PwenuOsTjjmMwMo8ECQ7X\r\nhRD/mR9D+RqA+Y5nb1RtUy3RBV+Cm2IVpe1i1xyS8kEnIbaE+z21BhMwP15y\r\nEdEXvL3WLhzbQK2rl8XOElK14LTAYhD7ESsFAIW4W/MXXpDckFrzcQuKeHXj\r\nnf9WG1k7O11Z15NTRG0M/ReYY1M1lZZ9snm8jjKAj1Vkj2H1TxIMpXsXQFy9\r\nNi6/daHEUMycsoQuxc3FDoVGYH+HibZEqVlrDEaFzOvZru78OBD/EvbRVjcS\r\ns9ClVRXkEY3uMrSfakmjJwt/xjD87b2f1LVstfWTTw7zn0zfuemDdZm+ggqY\r\nnIbRaQSigvCGx3tNgudfy6WqYSxTY/CJCwKbpFTC9xICoM/xO+33JCdJDC3s\r\n5eJZBUb7ZC5hoK9vAdoGTs6vidix0yuWiIlYpRtT3+fyD5z0GVFELxKSZvY7\r\nm8efVTW9wSMEGGZiECxIQ1HvcOJMpvsTKCKtuwmKIcdOSBeALo8b1rHwzSiv\r\nra30MW0R/xIi88Db/YrOU6eDI3arc9+n8ryUjYTfBsBmONqtzIgLgD+fJcyz\r\n/FhvlOPUvOjBRjIgzw8C9iSAjNVYFx9GChbvinebbze6zsl75ijiXpwuPOA2\r\nyFGzFYFUDPdz4kJ0oPU6XKypvC/eeeujWGI=\r\n=13m3\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"247aa37f85ea5d4fda1b24ddfc61ae1e449ff19e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.130","@apollosproject/apollo-server-env-mock":"^2.46.130"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.130_1648694029557_0.1989781111836042","host":"s3://npm-registry-packages"}},"2.46.131":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.131","_id":"@apollosproject/data-connector-onesignal@2.46.131","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f1fc04863a9cc805d1490fc4c3771f45bf2a2347","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.131.tgz","fileCount":9,"integrity":"sha512-KlALcjIDbj3+1if3P5M9uOMRgQn8Xg/IOVo4VAMoGVJu7R0YJ4TYBrfc82bUspLg9M9vCVWhJp2cPm7JYn1Kgw==","signatures":[{"sig":"MEYCIQDP6omws4rP7WLrz+T1p0TCmjGEsOCXJwNJZItXrb6qGgIhAI/F0DVp6MojTNiodYlJuObjv0JFqOFzD3jOXN064DU7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75611,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRROrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLbg/5AUXFJCFI/x1fVQnh5+1i7cUeYgD/caCr11UMAXP/j4akmqz1\r\nNPOszs8+fmnB7ohPmdJTpOSFV+pSSGCDyCkFHpzE7xSZP62A2HnzhIRc4frC\r\nELzOKg1g6mKEwnpx5UvXJH0wkORWFJ/NPqyKSc2OYclgyX/fdy3pByzNYLAg\r\n5IL7bopCUCrflBIwCFXBSvXvcyEO9oVmdNJQIslBFQcBKVJ+pDYgVMolopWa\r\ndYHIa6zQ0tVmaBefcIf+xU3KXAXuKr/jogbtMkVzwLElWKs0YaGTkwDs3ki1\r\n0DiR6Goo6pp/TczFdIbBBKyObBewnJc261tVeYr1mtlc5H6JvDbkwmkAKh2g\r\ncnurHupJDocrA+FZACOEHrGltJv8zObnI7uMvT/dhakHiCc72oFURKM1n5Gv\r\nhIc/TdyqP5ZmUW9GBC7VlhcC2NeRDAtp4x7TnL121ZS8ou4edP1IABL0RM2M\r\nXsqzv3poIiB9y7W9PVdYH2raTTvqY+0APlyMF9YaBFGSyAVSrdIw6+Htmqci\r\n34sTIAnpb0inCDKCN3cHiiVrwJ48SuSRJ6U7xUAMd9lNs0s8Vx3vhwEKjzxE\r\nEvnfBLv3Sih5sQeqp92ZSiAaRgY4Zzku74jf3Sf9UqkCvFNmT+LMVIK233Uj\r\nfOctdS0yts1J0XPhTPzO99uI41uqh2wPCac=\r\n=cSTW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ea95511c2da3016da0d00b21be0e1adbdcb36bc1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.131","@apollosproject/apollo-server-env-mock":"^2.46.131"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.131_1648694187317_0.6450001474624261","host":"s3://npm-registry-packages"}},"2.46.132":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.132","_id":"@apollosproject/data-connector-onesignal@2.46.132","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d28eac2002470ba2a80dbf4316d0ae0ccc227f91","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.132.tgz","fileCount":9,"integrity":"sha512-XSDVoQ7ht+dF8foy5JM8sp9VFRbtxp4A29jUH6FZm+AXa6a/o138i+Vb1w4HDHGqWK5Yl+mUOBnHrpmgZ30XMg==","signatures":[{"sig":"MEUCIQDHolACwf5GRIzajVHMWty3q6QXxmulWILlTG5R87mPPQIgMPOPqMGkVLKgKARobCSNoDIqFYcHSaaIASTACwiSE9s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75804,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRR2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyRhAAnUhfW6NPLHf47e4u375bCH1wnJPYtw5j3RIMFVzO/cnCiNLS\r\nPDqHgMM4SspwCO6Ewqg+XhekV1n4PuWsX9M5CvszPRSn7kXFdko6tYsQv2ij\r\neAqZ/QlIys1ZNZedk+slS+geus+QBiGPYgydx2oIdrBbQ4s+cO7M6FhJoEM8\r\nxSgoagAlleOo55tFhxLJ8sQGYxVCFZZ62i/588EZMVca8K30njiKnmCi6QH8\r\nCUdlGwI9erg4ClTPLDEjQjkH5YpwyqRZ/BgdObL7b86mjUcimcZOIMC2LFfT\r\nPgVq6pd4bIzLwB2s5pB7O6K9GHZfWCkZlsLRdYhdhgMfr+gp3pC4Y8h4/Xh9\r\n04XO2UPykfQ/E57eODH/pbpPGQ7dYxIVK6YF2SzdxFq3MVW5ZlJEsx3x32+S\r\nk1adVwzI5FZe4LMygbzjVDSjZAARK7beEtsM/LUhrGy3gUSecC6oOt/Nf99N\r\nowYmxIBRu6jD6NMJ1I+One5NVFm0uSrT+aOMVcbOYizxpiihH3JIHjPcKnFS\r\n2rFV1mV0uUFUiNI+PnB8dCD3q1I+HYdQ4fe8l89iH1IQEBymP43HAUUxMT2S\r\nuQxR0KEkjnehYeudWn/VdIaSg767/Bu1l9nKEXfpM+EsletbuGnR83K5JqVS\r\nhL0dMer95AT/piApnnJdAznEEzgWwB3nAQw=\r\n=DATw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ab807ea52cf2f3fb7b9573acbd079c87d8cc8f58","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.132","@apollosproject/apollo-server-env-mock":"^2.46.132"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.132_1648694390425_0.968663657198273","host":"s3://npm-registry-packages"}},"2.46.133":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.133","_id":"@apollosproject/data-connector-onesignal@2.46.133","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"10670aab1eed53b3fa0f3962ba3b336d92adc628","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.133.tgz","fileCount":9,"integrity":"sha512-6sMrrQvuvlAYcFskRUkNqbz8JeTWSYRSxT39K18jIg0yxyPWpeunyspTl7LXvQA7X3W5AGaXZbaG+TaB9MxmIw==","signatures":[{"sig":"MEUCIDWTOcXNUt39ri7knilhoWle6sIun/uCF+/fvCvPYZ9CAiEAzoG+gdEdA2Dne4zfoy8fCP5mH4E2DxRhdf128w7W5Yc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":75997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRUTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVFQ/+LB+u/Y5CMdcqqQRYNjU025IhAi+EG72TL4Rm+9sZos8e5XGJ\r\n2Qiq18fn6RYTHdHbOp4xsuZmqw4tINRxYnvr17hFyAJurtwcHK3T/w6ZmQaC\r\n2oPS6n9UrbrNZ5DOO1kZcchMYGCO9cou8YpLFOh7p0jvpG8DsbL0Up5WefdL\r\nkFK8mw/xBnLiglwpWLcDugXzxT28eU+9Bh/7i+OIKCkKuLeF2aEG+MOYoYLS\r\n0kLubnG9nK6lC7orxcB6lRgwOzmLI+hXWvCy/3W8U0vSAYS7cWzkW6He4H90\r\nr7ztxAl7jH3MWtgmBzUfkaw3qDNvZnUCAxAjH0CQrtUJmNegnxgkZ1+gaI03\r\nEF2Er0uyFxb4fZHCB0vYWX9NZBpsqHIWVS2ZEJf+ChvPrBMzca9YvUzhBhoT\r\n8wt2BFf+f/KwMRHXWbLkM+w7/YvJiWMN0vhoGzexqKbdQOOLZEz2JDSjehp8\r\nPK5ZxN6bTq1jInsrvVPr2JKapZiByRRlmiZyv+12YevfryZO03o4ZcetcIUC\r\nvsGpfe6sJjnSrQ9Aa6bS80Gkh8vjnKvGfzlb+BlyR/twQX6rAl1Gx5rbv/GH\r\nGN0MtTlmFCnlo9ERwXG3I5zz08aSNi04Msdsfr53Xf4wkmln++uUeyNxly+q\r\nTVqhxiw4XYD8lt1mhbLsP7Yg6HRefZNjEh0=\r\n=HPUH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ae9b4f4ac59f32045e76e678d0ea13fd23d86f3f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.133","@apollosproject/apollo-server-env-mock":"^2.46.133"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.133_1648694546983_0.19155367739774842","host":"s3://npm-registry-packages"}},"2.46.134":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.134","_id":"@apollosproject/data-connector-onesignal@2.46.134","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ccd1a82c237439a1404aff35e4022fafd0397391","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.134.tgz","fileCount":9,"integrity":"sha512-HOyMlSfh2hNix744fHUcmpZPVPTmP0Tp05NYq5Ui9ntNS9m6ELy1bWVXd6n8Qp3ddZmIemVFqDLZLwxy0aTG/Q==","signatures":[{"sig":"MEQCIBHFXXStRH+161fvCh1s/sF6dCKsLOulbpiTDy8GM+2SAiAKNEXX8TaJFO6eIDjHgueyPZ5ucq6BGz+8b+zn1zf2rQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76190,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRYXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq15g/9FKSza4DlXxiPwWjjUhOVJ7ok2kPdmV2iQ2FhE1QZImFGlz0V\r\n1I0aeWVzzXZPQkdo3yxb0UR0fpB6ggN2cPARgiJ0Ij0pXuWQ7eNxmhJjcy8C\r\n0/Y7djpH1PzlXMGk6MoSbrTB2BYxLVo/sNyDeuHndVUrcNrrXwNXYbBu7+5O\r\ncRolGwAitet3/FzBh9dVmDdbzGfCJPbNTzjWGFP8pACEJ8tuLS6fFuZgPOVJ\r\nileycugiCDw/SfxCsdD3Ip6kV0lSIa7LtGVDjnVocGrR3e760ncU+vGOl4S3\r\n5nG5Am/wgYEIaqRm47ahVVvo7j4JZnvbw86sg3WtbV87AY9k8FgL1nLArGYT\r\nDwGNUeYXfA81yVQ8SWyNxJV6fxTxCLfdON65l9/N9YJPEwUFaD01g7UlDCjn\r\nYQ4AdihW9qJ+plYEAo3KW9fklRO04RMbHVMfwNtDmqFnrAldgniyKPlNamf9\r\nJYHdA4TFn1MrXXp/WWvzUD0vg367eY+j+XibCbKd3IN+/OiEvZx/0ypFawKB\r\nHdRLEzZ6a9aCfChE+CNIbOlKp76rsNSJ1TX67xbofseWia+/W5PnEMps3OXM\r\nTAUPO3TuGQuEd02VxIANZY1k3r/SPoXQBpaWTSMzlD64vXw7bMiqtbTJH2rH\r\nBPvIy/mIm0RT56ihMggMvhbzW7qFPnBkn1o=\r\n=ekRA\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ff0731aed63697e11b5640726b00d7c53a5cc1f6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.134","@apollosproject/apollo-server-env-mock":"^2.46.134"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.134_1648694806963_0.9978621732245376","host":"s3://npm-registry-packages"}},"2.46.135":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.135","_id":"@apollosproject/data-connector-onesignal@2.46.135","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0a4a3a8a7d9028fd9904229f7be8e6751e98d9e1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.135.tgz","fileCount":9,"integrity":"sha512-bYB+05uOSD/k8H1IQqkIwTK226EmcvHpYCV034+4Mpj/fMCl87Owwklz19VGK4gJuuO0qs3FxfJ4qx8H7PUbWA==","signatures":[{"sig":"MEUCICgKQ3+aONbb23ZjCFZA7xPCWIaGR9+ix4yHWa2E+d2DAiEA9Tgc3W9xzkhs6XRvrfUkKyzqalPp7L4YdlEhAaDtrNU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76383,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRakACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiixAAoefaykpYvRTUeYBgoSciDhgsBTrR23RGuAPEdvSu/zgq6NNa\r\nu17CSZMKUd9DV7B4zPjJ8l1Tfi1in+Y2UexLAeg3qGTwMHKXz7oHHOQovZrl\r\nOaYzPto1nEN8Ai9HYed7hwy5vGsYZpYRKk2Kfdv+s9emqLipiqXiNyoF8tGH\r\nwUQlCafCnhsuFpToz6zRdOO2WYI9CeP9mBpeGXY8MUvMT0v2wsPsneeFfYZt\r\n62CJhrOF/nsXadmZn4OSieLVOWCBmux8aSYsBuDjtEkfcllz/FTzMTO/JM2d\r\nE9gsq8Jk0kjmYvqpNky5MWPe2BzyvrT23Z0K6B1T5BGQmKoDUSaO+SaXJiuw\r\nMWXc5DnrFQA7pwddDlrAj7NtuUWCtMV3tEMjuvdHVeGsqM5RkZYwHXrdqwZg\r\nnUEVqA7mCogIwk9g9x4ftxpcjHXmwNIURDJBb76mVrpqnVAl7FSBCRXvwDUJ\r\nI8JEQP2b3PRG66LwvMHa4xiddLnREKuWHdSQMlFg59qoC83LnBQXU9MXwZJY\r\nUVbK+LNpOdfUKep3BMKL3o6+l/h8mJEi03XCtDuftwMLhypSis65KiMl1GKl\r\nF6sw8XwfStDm9n7Rr+AjCDxSBcJiwwbHdSN1ko4wydTDRWBrJKRRyGVteYP5\r\ngjj1anemcd4y5+ATZZOdP1Z066dpzHdjJtk=\r\n=xmW8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"847f7ce9a1e9443bbf5921dcf4c59ce9056d7b0e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.135","@apollosproject/apollo-server-env-mock":"^2.46.135"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.135_1648694947924_0.9132455682993534","host":"s3://npm-registry-packages"}},"2.46.136":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.136","_id":"@apollosproject/data-connector-onesignal@2.46.136","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9bd1106aa03257b1343028154aaf59d4c9346253","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.136.tgz","fileCount":9,"integrity":"sha512-xmm6xZiIKCPVMjLP1WXI+62PUzeTMcFVy+ua2xnkBFUTaRlTSMHfkGYlFkQgiunlY9ZZlJgn8xUXEJXaAhAHuA==","signatures":[{"sig":"MEUCIQCP6jrEXKHZDnRQ0E3wDvdJxoQYZhG8N9KYi8BERxBThAIgQQNLTKsn/x93vlKeQs1a5ykhxT3OC18b+o0TqmVfko8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRdzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjERAAiBZ3X7ERfC4FlZcv4qLx8EdLbll+T9/h7ImYtPyHeH7snXgW\r\ne7S8VsmAQelI7T57YtiPgLvcvUYtFnpAsBGlvpMUzjajjUqBKzhq9275J/Qh\r\nf/JiHUvq7Bp0HpHdZkDNMhONy639pJ9DeRlHQGzhGSOSQhFJSBf79NfqGzJX\r\nijjqPgAgwfM88Liiu8v7DDqevyXSXgjQbpVsnHBZ3qfu6lSG/PLOfYcnCx59\r\nPbZCo0Mn+9bh8JOrWdT+Lcv0ruKaL+SpkL6XW74d4yQoN+F1Nbt+PkxPyxIU\r\n8CFVPhnJUJ6melpJX6xcoM3405uZ4zt2+rjwFnVL7AANvfh+d/Gn1zE5nFdw\r\nLJkix57j+tzwpermAI3mCwuaD7bL+gaxDygz2IuwjsVZfRsYDTD/hCJ2/p8w\r\n3A1Oa7dNzLaoxDEBKYdS+kuGTzuGABUskf8TlUiJg8g1z70eJZa11dOTB588\r\n1UOxX5Ok0H/54EEWV2WHw5PZJnk1lngVCCBTTPHqN6HxmtdJYZ2i11RBni7D\r\nsWBEyiCKlYj3X4WL9boM7b1s9xUbECr/olisU+M0JoTz3+geTHRR8KLZjFaQ\r\n3bzgz2ebw1cqEhrRVnO5RVffV+m+1a9AA/dGS0Gjky6ABAqPrsQRYl97zDYD\r\nTriUJJ2S1vNgCJixSSH/s0qrYG0F80Iwm/Q=\r\n=4EPG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"4ce0e27a1ac29199bac0abd3ba9c32cfdb29f864","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.136","@apollosproject/apollo-server-env-mock":"^2.46.136"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.136_1648695154815_0.11383423240055413","host":"s3://npm-registry-packages"}},"2.46.137":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.137","_id":"@apollosproject/data-connector-onesignal@2.46.137","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7f1a5d64aa0e29fe4291cf7b5635cabf37deb1ca","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.137.tgz","fileCount":9,"integrity":"sha512-I3vRpDlhyDOVICRIgKUzqE2VLVSXx2PpzDAbQon8A1rqF9XoO6/CYKhsPYlP7XLBIT4bEkL0qkimMmUtAN07Lw==","signatures":[{"sig":"MEUCIQDhKnXr1xh7WIkzAtbzrspfCprKjp/28hmAsnsh+yecgQIgPSrJ4dtPoVPy+jYabLV06ewbTiMHGOx5PMZxvxgy0tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76769,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRglACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzIQ//Qvdj7bzJkhIyCk9Am6tP6zhjCAVNMBas6PjUQ5oKN6cCcvWw\r\nkmKxz9bd1p6PcIcNOgeWQuZ713NYYw5jadSZSkoKx2aGRfVO7SpgLJQ/M81O\r\npIa56/T2LBzbrPPHen7Q5A56H5FYjEdMjzdaQClyWHc/8uXf2/7TTseQ1cg3\r\nRdzSUC7YU2w/DzVjKXzgLst+/g81r3WIidVrC+lVjmi2W+nqJ+xZ6vNK1X7o\r\nBvz8us+Qu5nJn5/fvwYJW4TF3379TiRl88snClgR8qTbHlbRAwgNEuYupRiL\r\n6sQc5mxiFPZ16ZmiMvEORLh8vuf+oyGLDtXEmSDVamamlayGDb+WnmBMyhFK\r\nEqUpI1jswTPka7fvP4UsiGdOcYfrijGH/KknxrKeQi1BdI66xTmWnk5McH51\r\nFh9SC2Cav0Vg0PaZIJDDjW9ZaczZ0WRpPFx2cMXyEKwOIkaXKzl1N2n+il/X\r\nXjZo44GYuBNltSKnuH0jqdQs3MmMNVVI/WcOxz9yMADSCI2PdKYfS5YBYnoe\r\nRDKk1nUK+gQo7LF9kpCWE62YjsOVE+mqBrSO42wbumlJQ40RfsZNjeAA34Fm\r\n0RSmockqODPIfdI0blp3wdYFrvxhjqLe5Sp3khRQn33VplgMil44QERCf0hP\r\ngxXOgbqDf2Tacq6XYxQp7WEG9prr0rqf+hw=\r\n=ZPZ6\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"89efbeee9d83b8bbc2f75aff54798cb7c6167b7b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.137","@apollosproject/apollo-server-env-mock":"^2.46.137"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.137_1648695333394_0.719463056218016","host":"s3://npm-registry-packages"}},"2.46.138":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.138","_id":"@apollosproject/data-connector-onesignal@2.46.138","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f37fa3d470cf82e4d19aeda88081a149b51fad2c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.138.tgz","fileCount":9,"integrity":"sha512-xNqEa9gAeSYLxpJVe1iS63i5Y0nPm/+z1mQCsTRjhwR/eYVoNVR59kP6RGaWjchxQ1/uMLdygsIhGloR+0m1PQ==","signatures":[{"sig":"MEYCIQCk/dCFRaAzLUXVPjnxBfzn4o6+tHjUDOGvMUsLiNih6AIhAK+6MzBCx1nsFuIfMP63FlL2n4+H0pCRLVU3Qe02tLYk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":76962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRjDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolRw//TK+XolnglJxjWYMiD5wmZsjQCqFPIDOsG2V8OFESIx62s2uC\r\nSVK6dj3ZyCHK7qiptzurCXPcY1BOgNzYO62R7blcsM3zjTW0WyhD7bdhCwQN\r\nKerJgvmZd1H45ObTk335Euk56KmIefR4XfJA49EhMRKkenBvXnRh3+QqgjV1\r\nkaHSPzJe7sUkRE0gbbjzDWSs/ua0u9XoJZ/hi7bsGUtOHZRhTie6ARczaDIR\r\nHUMleypWGOSu8IrkXdxbNrEYfJQ7Wa+RcaINiz7Z01HwEnx/2m/llcDztqzX\r\n/ut8QFer1dqWCs9q7BZ/xOXtcxdPARXANcAIL0EOKGccQkt1IJq9FrIHBABi\r\nR6JlZMo8YsmzDBv9oCfY7+OMEir4lutCabIb/ojFZ0k/qnGSa0EVamqb2/ns\r\n+uZipARbCrM/18vqYKc2tPioChQzlf4/2LOjXlsmFcf9pnWjH9eRZy9Q5QEy\r\nhovipKnk+bmx3IJXERB2uHryKF1DDI16ImOKYm2DJrWhx6B6TGkmNiXE7G6W\r\nzXk6Nm9v1ezuGZ9jXmPo1a81RYSGywTnVSh15D+6Ts/NAKdUerbYLSi8je96\r\nnWHr1qbF4GQUrbfbau06SwODlcCoC9v6IvvesoYN8YCdglLZl9oIUrSbgkXg\r\n5D+1Mh9qB76kb4N/BlZm/h823I/DUQ2DnWM=\r\n=XTLo\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1f24c93d671542ba73fbc04896f17f58bd9a0a6b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.138","@apollosproject/apollo-server-env-mock":"^2.46.138"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.138_1648695491745_0.1746124110688878","host":"s3://npm-registry-packages"}},"2.46.139":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.139","_id":"@apollosproject/data-connector-onesignal@2.46.139","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1c09db25d02f7551a7c004b92ef0dcd73ca78b3b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.139.tgz","fileCount":9,"integrity":"sha512-oRza3G/kMdQGdC62ZPgc8rQHAlDvFyVxY1xUr6mCd9poEu+u+PYUu/v12z9uwFZQovLPfX4/A3HX3lF6dr1Thg==","signatures":[{"sig":"MEUCIHUMsrO9eUwyZDD3dFwBNZ38EPv/VbtLchwL/+0INh+6AiEA825g3CKLNXAciYWi5Xo78FHSI3++56NttkdEISZeeUc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRlhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoimBAAnhyefgSRYfiEne2JUnskrt5yRsRzGjtQK46YtKq3XG+zQwbt\r\nt6AZuKoszS5Uo+EeqjORT2iz4b9SX9Qh4nmJpWxd8PEF/iVfToqWAOyvLv4K\r\naLkYRmwCaX5qn0fSfBrNqJGPLwudx2hE2ffe8lhx6R85fODtbr1f/IA5kiNU\r\nFBfx23FrXlLg2qoVH6M322aNuMzPqYnAQwhUnfI+QrBJ2hxEKam1JsuTvqtp\r\ntOISZZXJHZEzm4tovHAZXMHEbxpHLRPd4BYoiAXuWNm5jBY4434GT2aJwvJ/\r\nWUmOdDRlB12dOb4Z3m2cHfYxNm3LfIRxWqI66uK66dbjjzIzP9IKu+pCEAOM\r\nK9lPL0zruEUH8mROnHmK/jsXwmTiJo+asVKq77B6tPqA6VmCYvrvRJpjso+S\r\nF1HCdDuYjyS/wGlYLL8OE5HPPzK0snV+F5hQkk33JtUJ3qnoXAN0zPL8EiaL\r\n19fOhANUgU3HsKFmd2tHcRQqbgZLPct4tqgQ2b6BvxTebcv6SHodiu5zUzDV\r\nac9wseAZArOyCPJXm5b+SlqqUNvmc7C6lpGE8XmdLckIW3YLdUbCYIE3qBrv\r\nj6WrR9sQxo0/j/53eFUZSueTwsjuILH3R2CIiS4LLTpqiU6BxTOBmpZjITT3\r\n6DPdL526NPDvgGC0vxQfGtkszErfgoTRoqg=\r\n=3zVW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d4abab01e4055734accb5897a4f53f5646d1fb62","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.139","@apollosproject/apollo-server-env-mock":"^2.46.139"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.139_1648695649513_0.14936916751634066","host":"s3://npm-registry-packages"}},"2.46.140":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.140","_id":"@apollosproject/data-connector-onesignal@2.46.140","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"5652e430439d69027d54ee44be21cd04f732c21b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.140.tgz","fileCount":9,"integrity":"sha512-gEtn1ngGGEDkVM9Hl5sjWNdfLD8M9rkXaX99doFvS0snVpAb2crrTHVPZMZhVzyiQIu8fH7IESPZ5Zn0PztZjg==","signatures":[{"sig":"MEUCIHJLC2C8N4QyWbHfUB6wa8sIndr6mjhtPFZ9Wqe/X7+zAiEAqVvlHp94IqTxpwW/P0nO6iEQka2xTEVef3UmbSMPLTs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRowACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpc8xAAnUxS1DCvAjwDFOv+gkF6ChHl+lzMGOa3cYjdlU6ZfrNjIZL4\r\nIx9FtcJnECEFzcIZcFbEO60IaicuSOy6q0e+TxT1/JvIoapi83rx6sc/3Bg3\r\nnnlrMT2W4g4U2qM5FY6Knjw1mYPJCz1PfeLwzJdhmNC5vjqybAUazhEgquhS\r\n4IvJR5fP62ceTYBRbHPoqbvC6Ky58Q6DqH0THoE5h8HhM8n5JDHkN1Se4B4v\r\nyLuUgJ3RwIlwy8SZ+sLE+YAC5hmpueQ/XSi++IBZzf1m1qatiuH8RL/wZ46c\r\n7woVxSOfDeYt9Ou0NUDeeszuf0kywByyux0WiqbG9iMGK6ordigfZDJicjqk\r\n72+a68sV7Gjkx1iXxcUpqWLc8qFPQz9rjWrEtLK0Wx3ebROXnrPxjsJF56CN\r\noJrbnEvsyhS99NvQ26cr3i8R6gqLfEyLjXyv7ORerArKXQsmoG1zVIZEgW0u\r\n+6wQSbWfHeLQVBnY8ltRKq73dlXyE36I9u9ApeuCUMEG0cpmuG+XqmR0YWCS\r\nwhwFmdB9+Ag2rbI8333KHFxiLuua21U36k2Qcd4ZPfAohcvsdV4tEk1ZIvhd\r\nNzW8p29jzwH+UhWPtT2ECeGs+6jDljJfLPOKgn6t03mr0i6JHRbi5NADEtbc\r\nDk5QJrYpor/Yoxqpl6+JFNyD2SWw9YEmwK8=\r\n=yMZB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d90db71eeab7f19ef15231d48549f70e7ef542bd","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.140","@apollosproject/apollo-server-env-mock":"^2.46.140"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.140_1648695856687_0.7442550938691743","host":"s3://npm-registry-packages"}},"2.46.141":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.141","_id":"@apollosproject/data-connector-onesignal@2.46.141","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"aee12e39259f9e785de3b547cef4212f7d9394de","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.141.tgz","fileCount":9,"integrity":"sha512-gXAD99+ZzJAGPOkToQVpY7yf8mhs0H58k9t3+fy1K5cHj0zMaGSBOrlRvwegb3PytL6FA+kZO54pvCL2S0/oug==","signatures":[{"sig":"MEUCIQCxrwRwhkCZVmpV0Ifp6+GajfIvML9/kq4Gi02XkIw//wIgFOphcJfEZrxBjtEzbXKUhfRS8dK9KIUMRLAltHf7P1I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77541,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRrGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrgpg//WzOFs8eO+en7G6OPJZ6Ds36LgrlSmVuB47bQn7iRBsLwG+Rj\r\nEGH5M968X1/Tn+TakhS11i/eDl63wGzwv3l/SpMZYTpXJktn/jjg0DdedlY8\r\nbwnlE5DRc9UcAAjEhUS26s8n1cmv6pQJzgh7GnP4/QcQt+ccTYuoF4vO6wIR\r\nUuaakP0fN+g/A/zdg98Clgn32mZxQPMNFDOewbToi3PogmgGjwICs8anhWY2\r\nZ4MMScJA7B6/Zu7UvnKdVxYIE7WlPVu1kAP72k9nq4vh58RIbzOFsSkleTPk\r\nywWAoO3c1/puKrHWsEhbFpNxW3k13fX9NnsWjXEsp7cH5N+BuSoGSL3V6Cxt\r\nlBAJjAhV9pXOtN2QsjxGx/Sz3s/H3qYd8CuCCy4UIwoyOAukcyQSYJxAK0Gk\r\nt8JmZ40nCr0sBtQTsOiEmXnyozzT2G7kYMKW3XM2RC+2XZw84w1h4gWrr6hy\r\npHuw/WnlDmFlsdX32x1snAev/+p6yvXskpjPNpCcbMxyy3nvN0V2G0DOW50l\r\nCRX1es5IGPHNQDMkYM3D/+bQVPlGy1WP0SZ/OQYc70M2AUo+pxD5Reltn35I\r\nnV7k+6XNbUQGbl5OuJOst2gQD6g3VhCgcDwNW6V5y+7EYLma2bcep6d3B6oJ\r\n8CAfTQQXC1w/B1gQPW5mABe42djdqKhKPKY=\r\n=az1M\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"9f9687487cf7db28f7638a3b600c627524e29bfb","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.141","@apollosproject/apollo-server-env-mock":"^2.46.141"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.141_1648696006187_0.20046619946624","host":"s3://npm-registry-packages"}},"2.46.142":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.142","_id":"@apollosproject/data-connector-onesignal@2.46.142","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ea0b8888b3af51f093689695c5d57eb794f7eca7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.142.tgz","fileCount":9,"integrity":"sha512-zc5vh584bgrl4w8G6LQF4JkmKJAP/paIn3Ox6psTHqQrty3Z8mlII3cLeTx/LvU4SC6CLndvaX4DTRyamvBtyw==","signatures":[{"sig":"MEYCIQD1RsdHzTqqKejxYiEjyWwBxTAl9RyVC1I3jSi5OEfHsAIhAJAufzlvs85/vNMCqtT1FIOeakhQZ+48LYAvGJer/wPY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77734,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRuzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaUw/+Lvy2uG3BtOvDomx8X0YItECARZ5I75/vdT/InfkSWEhNEdK0\r\nfFoxfHIaIB07tyNGaJLH5Svg4tkdN1JY8GT7TYfa8xI8Kl++OZqax7booR70\r\nbpfdeK52LjGR8X5kQiLcw4SXvOvJqzHYRNgC3avPlxQY2vPcxDcbj/LSC8Qh\r\nvDRuQIYZGbHC8qvelttPXM6PjNNH3XH1IhjD3xmWPkGT3f2Q3kyq6olWSXRH\r\n6N2KxFyypyGdba4Yzj1rATDeeP5eEnolNVggTZz2OQ09v3Qt6Ti2gfb5/M+A\r\ngLfS/dCTO8ABm2eHTPdEcdlnFgiA8SbgUqIU6UwHei6GL6uqy0y/hZuZWScC\r\nDuxzppNWF55uvklIPtEgeWI3HOAU8xcXEuDqTwYQ5Mmo+pYjQTFaZfKbW1ii\r\nEvUuwsQH4OR7jUH31iDC4kRghXYhvyv90kFLeL1rDuYSB1q3r9SmPdfMZo8v\r\noxKgl2+xnjOUI4OoQmV3B5XtszhvkOyQU9+fqxcxtDr3MV4ZY5rc6Ib7BTzE\r\nB1gMDrPRbNWPjmt7OKY9BLKgRGBCHAgot1qX8WMtxyqI+AXTJ24a8U+Z4tI3\r\nVGKe73q6i7/7Q+rcr0HWvza3w0921I8ukTKX/9mqXWdQBB5uXvcqxlB9uAaT\r\nGjAwMJJWJUIdEA8ecSg/1PXs186djUe+wXE=\r\n=/HMC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d1234592b55577d3c2a697fc5ae4154ab6f5916a","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.142","@apollosproject/apollo-server-env-mock":"^2.46.142"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.142_1648696243594_0.6230096269716001","host":"s3://npm-registry-packages"}},"2.46.143":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.143","_id":"@apollosproject/data-connector-onesignal@2.46.143","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"783148bc654a946605b44594e0139e755bcaf0e7","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.143.tgz","fileCount":9,"integrity":"sha512-0qipbRX020KKoxPctzcRyXnQ178njGhZS5J4AClVBMnAT9TGA+FURofo2fU52LOLmA696cTr93lVUSI0Kjn+nQ==","signatures":[{"sig":"MEYCIQDScmMhAS+/8uVJkdkhk8TfOhjuwROIRkx9FWrmVPEEWwIhAIq9IYChaF1A12SBh+LpH0SfytaI9O4LYdRXO8Y/l3dj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":77927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRRx1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl4w/9Hx0jELUo2xaxrSXABcGRVHlU66kzl7lXnr+EkV0o02zOnpQ8\r\nZh9lsNaiOBDN0iTM8yaqwwm5ggFspcB5OyaW6hhSD6alohvbepRLB4wRXciL\r\nu1jGThKF1EXGMuHG/6iKx1QIzq7DBOhxTLvIi+zfhCYN4iHncpgYWnySv71H\r\nBa3eJCHZNAHeeXcWiyWxSro7wEVDJ6isPwxXdoqb4/kXlk6k/phwa4jMBP6a\r\nyhw2+c11mqjqPIgy3wyaVQWZ4eBU/PmE5IF1/LP9/3GetyKSVlhE8OQWC6Me\r\nfGREtkc6haeYVvaOaSN8rvahZYJzhQTXdhBKuaQaIKfuAfkTK4me3MGRqm1s\r\ntcNhbNI2Uwq6R9PvBgdjyUGEtiDHN7y2N1uE7YEXtEwBSCocRHNrLSDXfdlD\r\nhCx1cKqb0osZxoJvexMyZpzCpU8+4ZBbaBQYLg2/kaUAB8lmui0KsjXqA99g\r\nOBBOJct+8Z8cw+Koao/yjJq+7MiWC3I4Gv7rt4mAEbAL7usGIrhZWctNGiAJ\r\n9w9vWB5XfxUopYLe2d5PvrW6jktm5whnuNUct1Hx3CkyBpTzhCwtH6ZzTOrV\r\niNnbz4Vha0dp7WlG9Z6uzjb1B1tt8DJ1zDD8ym3Ow31Iit15AG3woMBw5dvD\r\nN61ckOBt1bpgZgkVMwo+bghsETI9N6i3YSE=\r\n=qdvv\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d8f0fb7e1bb81ea11c772746319e5219f484dbb9","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.143","@apollosproject/apollo-server-env-mock":"^2.46.143"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.143_1648696437240_0.07209927228452684","host":"s3://npm-registry-packages"}},"2.46.144":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.144","_id":"@apollosproject/data-connector-onesignal@2.46.144","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"88baa44dbacd41576695c302387955d80f66317d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.144.tgz","fileCount":9,"integrity":"sha512-YqNLF/Ldh9JRTyRJorarc3x0ybondXb8FfJ+y4kuybFlF7hKdsnzvsOv5P3lHom7Odl8tKTjbWMZslkmyTqumw==","signatures":[{"sig":"MEQCICMSRPoGp63tEZRH9pUADl4GnWCjXYHHR86TL0umZZ3yAiBeFYJU02Z7uTVGJgKNoAQRmuWN4LrfomNDLE2z+A7A0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRR0SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnwA/8Czl5f/8JPLz+gXUEUiVvly+iQtSupqneI08FhL2hMFwW+X/8\r\nuJ8hTxlqw3X+SuQ8IZMNVLKAGC7OU2xwI7NgijbhEydBSMKMhvswu/EfSuQz\r\nS+Nsom8qXVCcaC59WqJCrlgU3gFn21OqLJFgGyauEk6kuMUjpUST3wFyEwII\r\nZnwsrbb8AK4wW/4McIau/2xN7girWSSl5PiGgT1zewAQc9sGVGbcoopFDrTa\r\nfMUTQTc3qDrz2KvIzCItz0olsrqw3HZRbr6xwzLaSnVHUtzV3aQiVjKHSrS7\r\nV7BE+NL3BUbxe1Fkwcan/l5780JvCWJJIh6C9v8mTU/yA/glveLLVlbzfF45\r\nG0dc9WRfFsaGVOZRCiZpv49PPGz4t854uf8G+nNdhuRbSPeKa+TZgaudHCQP\r\nncN/JSe7gvaki+1hsZFi8E8hYB2UpQ95tR3tJefT6DBHq930BZI49fd6irDj\r\nTeP6l5T2fRjdx0aHNIt2d61goGJYFksY/tU54qUuJjEFu/a4UgSDIaYSyW3U\r\nGSG3EX1FrZnzu3I+pDMedLDfuQk8h1a1paYh50Ny2mWJj87ZjYswZ8eXtm/V\r\n0Zw4BE1JiEnNq/4mQ6rNqBb3Ds1gOXxODa25mf55GB+SYhp/PDAMOWxiwYkz\r\nXYbIWEuek4y2jkgmNaFlfKVwXR1KRNv8I3A=\r\n=zERG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b1bb1f206d66cb240700f252548e8021b0a17652","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.144","@apollosproject/apollo-server-env-mock":"^2.46.144"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.144_1648696594025_0.744165643370154","host":"s3://npm-registry-packages"}},"2.46.145":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.145","_id":"@apollosproject/data-connector-onesignal@2.46.145","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"18824e3adf65f218ebaa2072fb100c06da6e127e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.145.tgz","fileCount":9,"integrity":"sha512-hq4wanU6ONxGm+/Ny9UjFGZlfj7aSUqvdni8SzTb8eylC/8EMZRz/ubJoNFLr2KodHY8fHa3fRTXFuytckxp0A==","signatures":[{"sig":"MEUCIQC1sFuwa5JoTjWcq8VlzlWFFcumMm3yZIvPFOwLF/qsVwIgVqTE81XZiZMMqAUWdzLf7XSSGxEf9JVZYE3ifQYI0yE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRR32ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqMA/9GRYtDG1YFdB6qO9yaaxaeqceuxbjgeNufe9896fZaB90FPDd\r\nxPQI0OlSNgIPJV2qbdDI6RGhMXu0WFzrh8ltu32eYAjRVVpbhL0AZbKzkmue\r\n1l4a247Pe0daE/BtxgzUcJul2XhVM92OhDM0eAf6NeiL1rghZ+sQE1aWts87\r\n8Y5gR1yeQ+DqkpK4mqQhU/rhxyLjxC6wxugIVRuSoLC0sOOwei+jXTXVxQ1n\r\naBxLXP89hulGVUjfUl5AAS66BH1bfMPfKFmyxYIlxQ7nYBH5iQilGkezGma1\r\nSxWO4a62PLmmQmc7utMhdE9sEDu3EBj1WclONlsoTNpGcjxlh89yLv2Azev1\r\nOgolKJby+gt5Pw8yMU+/kxxPVzs6unKW1+kk1n1W/Wx6A2HaVjZf/ePIQwl0\r\nglcE25ZUOzpsYTG7rJFXix0qijaQgyjIbxqpnNzR7Ne2E6Cy8wehQYU6qO+d\r\n1gRx64OKXjd4ZuomlEfYD7IfPj42VZv/K2OjTRiw/lcJY3ewUnpPqnYcBKsd\r\nW/JGLm4PdrQN3y3XiIS/4DPsx+yEeLeRC2jqAUE95W9INB1YFfjYqkrjrxYZ\r\nuIHqDLV/69ub2ekTW74nk6h/nF9RkHcw6GiWbzHTJOrYofJb0EbbwJSwpbPV\r\nAkOyFA0liUMQYaK+tVauOfIl76USRNLn+jU=\r\n=CxxV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7bbc217e125f890865f76684b315c296b4e55361","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.145","@apollosproject/apollo-server-env-mock":"^2.46.145"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.145_1648696822221_0.8684911522779362","host":"s3://npm-registry-packages"}},"2.46.146":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.146","_id":"@apollosproject/data-connector-onesignal@2.46.146","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"20994d1b7880218566e7f5eae141edcb30beb184","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.146.tgz","fileCount":9,"integrity":"sha512-tIiJWTVasp/rRmPApfICwqrIkt+UnFZwJrDzS4wdf3roi/R/vVTkYEppCWJAULNuKTkaAiaiwPQBpTw4U2l81g==","signatures":[{"sig":"MEUCIDBU7VI1Y5LR9sd4qm019SRWRTXv5cSiebppNg+0ZlDqAiEA6cZGAl8ZliQO7MTIi/wMQf7srol86jmKJ/dGwiYgAcc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRR7GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrT/RAAiJ9IjuXJ3QW7HJFX67/qQHYEZ8MGgtIciEv7sAnvm++flIRP\r\noByrP1HX04aqVGWbWhOKzklcrreYvNv/E6pbnf9tqJhKawWx+U5L4I2yOPeN\r\nkRjZFRUqW8punnXtu6Vc1goq0OVO8zDNyDK5QWOG9qoABFn6Frg+pzVidNh2\r\nQ/WelQ25Tk50AmsDM4J+OQ+Lhdy9GvcRlsCoitgrk9uXumoQhN7uD8g6Jjl7\r\nA7r5dr1vXS7e2okVEBMWd2UB4LpvTABY51t2/6evUqNcrgATbaCzgmF9lJJ0\r\nPH62zncikz2iNI8PEUfPuGf/I/+GDdt82ryzfpp8pdrf07+5IwOiPa68HCxG\r\nfEgMTua0xWNV+fRr4tGG8VPKMuV5SF9loPFJzgDyvZzpD+s5UTxwGHK2jaIk\r\ng9YR9gkgfCZbVM8Qvn0qAa+vy3t+e0EJ61iFi2re25oUl7kJOInGeicY4wPI\r\nlnQ+WP42gSPpS+srOCRdk6pvM3oZixU/DA/BFWH5GNIq+FISJFR1YIRBY6ty\r\nFhWjAuq8ZxfUw2/vmmlJM8v/1qa2fIY0TavniLEk8XXyQEAUiVcHdqFiXNx5\r\nLYWRSZILpBS7qPxMLVFwXqPrf1YhLlfvtGQ5OmpjCuST/N8pDpDHtyUqAs8X\r\nRnikvJJ9lCW+t6FOHfbQSqLNP2yNApk2Odw=\r\n=LdZm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"ca052b1487c4b77d24d491e6d7126b46cc60f69b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.146","@apollosproject/apollo-server-env-mock":"^2.46.146"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.146_1648697029993_0.11653777057346759","host":"s3://npm-registry-packages"}},"2.46.147":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.147","_id":"@apollosproject/data-connector-onesignal@2.46.147","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"0b3ff2c6cee44403fdccf6338e251d9da42643a0","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.147.tgz","fileCount":9,"integrity":"sha512-0NfsL0FBsniTi+OUf5ju61FUywYhA2NKIpqcVMoeQZ+TuSyntxYszS5i4QOLrBDCWyTfbj94O/cbVSv6Xb5QJQ==","signatures":[{"sig":"MEQCIEGK3WIF1Y7b9paFumYYzmDQUitH9/3kAtL/sJvG29/SAiBWm3xqzk3UwbfBG0VqVxnKeud/aFO05WxESgFoH3hBfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRR+aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogsA/+MmCCNVWcm2hqQtzJHjqivdWVc05onGsiY0gZCHcfSV1AapHY\r\ntUIr4y8h8pV8FXoA4YUs/13GmttJ88TygveOphAZBYvNK8OXNaGgfz2mSLXp\r\ncKVjdQsJ4k+tItjyIr4ioR+EIpFnB6ou2vK2EYV6sAxi7dw61/JUQEDsEsNt\r\n9XIE7ItIRMbKcvnNDMAfcyb6PCsvAFyEgWrIm8aYxVe+/PM0dQwZSEK2R+04\r\n1/fs60YFAd5kh+tgkHW7eH5GQAwhHsZofePLZpwimVnlAKOgSjZJVGpU/09z\r\n9IbPNvWQhsTWnRfpUOk7SuyPz4oT8izomG8GlTqNlzjfD5fDicIE0HE6zgqz\r\nP7mTwDZBgRFKk+jaomKEjuNGY3mnyxq8CQcxDCfeu1cgjKmd2ocE5IOvDbOZ\r\nbISPGC2cLbwDbyCCD5qCbbq1mlCRx3DkL4V1Ej3G30P5hc/ZlDwSd85aN9On\r\nSP30CVDUTciNGxXEcJkAHkz4GbeLR8Z39iJPncNpiEPAhpP2Lxn5EQeSbAwT\r\nZ/a13vmgVf1fGdSOP+XdBMPQtHXZckDoGZr3hq83cFIr4uF+o2O9qdBpDqY2\r\nxlbhc8/vQ4UKsUX28U+yxK8tHyEjqUIL8sQg13mEEU0v/Vhwd3QhAzuSVOdY\r\nGUuh4yWTtOY0d6d7+4EgeU22F39OHEvdUqQ=\r\n=rGX4\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"11ac560fbad7159656a3216598ae16ce032c273b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.147","@apollosproject/apollo-server-env-mock":"^2.46.147"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.147_1648697242570_0.3847380919654626","host":"s3://npm-registry-packages"}},"2.46.148":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.148","_id":"@apollosproject/data-connector-onesignal@2.46.148","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"48697d3bbcf38037aaf8fdeb206776607cccd444","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.148.tgz","fileCount":9,"integrity":"sha512-/PQAhjb1T7+bo08UtY3dOMoiIW7oD5JX2GEvqMVF54jnKu6TGTXofzMsXXTOqVBgX0HnuA2DqDkY5V/oNepH6w==","signatures":[{"sig":"MEUCIArZaOxUjQnV579279yrajGggFbUcSCaJg5xLaQ16HjtAiEA6dbab9kU00g3s6ACVEhzOON3685lrONGfbxk07GWfmc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":78892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSBKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9+RAAiWuLha4tmSt961LkKJfyE2fms8hEZdxDF1cJCAIqTziN1n3H\r\nWSRM9na/Jd19+6PW7l7+TEY6L5rNNjEBCveL5sv+agHtCthTp7ZULS4QlQGn\r\ngvw3rkBVmEPtAvGjK8l+3HLOS9KJYW7AGr06RR73O+x9taW2P5JycTnOe4wX\r\n99CIW8yR387mJ8uvV01k80zekUZ4vN8h3l8d6joksyOUNJNeNqQmVyGcVtRT\r\njjt6oBAenwg5QWAVQ1EAuVSFvWbhs4Drt1Ua4A67UmvGnemzZP37KjmeICXN\r\nXM98au4/3gG9vfxjwLye/W5Olk2sOykspeOBDanSiW+xiI8cqxw8ePsWYGOA\r\nvtQWu/7CpYYQB0zqGtKCreEPUJ6NA+WzrJI65JEiJ2uHhkcBmTgjMbbatn5f\r\nH7VgSeMwCaVeW3jFQ+KbWB7JZ3NaxocXH00rz7ET/yKS8uuch4IIYPXHhBFY\r\ndtJPoTf9KRGFS3Ngwr8zjpXFCwdR+5YlTJ0dihPILyyUCtj3tH0fdmuU9Z+j\r\nm7tFL6sUR1lWzfgzjPWlhxVcRVLIjZxV11ybBEAWol08P6VxHPLy8paErrlL\r\niYfRJi0x+bvw0IkBb99361e2bHJ3gWADdzWeR0INLdP/S7gcsbUIzdP0jinY\r\nByC4HbdjV+2ktuDO7dtF+c/e/i0ZO+qJ708=\r\n=ke0P\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"805486007e214002f8f2395a13a8d81cf8714752","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.148","@apollosproject/apollo-server-env-mock":"^2.46.148"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.148_1648697418085_0.2041987795608513","host":"s3://npm-registry-packages"}},"2.46.149":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.149","_id":"@apollosproject/data-connector-onesignal@2.46.149","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f01c2eb4961cc83cd4f8afc6f68a5d3c742b87c4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.149.tgz","fileCount":9,"integrity":"sha512-VbyLSh7VSo4zu8Z54QKQONoPM8LlaAlE1EnqS9oL0xJWv5u8jy5wqQ4PibVzNxR4TF356zDxzhmdNX19WKE96A==","signatures":[{"sig":"MEYCIQDEjtrrDi37i/44aT77Edtt99VbTtCVWDK/1DCBtb2V/wIhANLHYONndaXo2l+NhZQDLsdBy1vyC6XpuMU7+0jfLNR2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79085,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSEJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLNRAAl2Fj0rqZwInADGkyj5A4IPpZkHQPz0h4WncjokEGxBfnJegs\r\nicMr028soiWwSjRIJkuorByh6n0gvP4J5nVmOaeP6IRBKs+fEwqZoUWUH5rP\r\nBfh63Sr1ugcbhouTKPyc7iKcoLxgG52QpoCKIwsb8rHLUc0L3rwVFRpeUfkD\r\nJqdF42TlAH7yRpSf5Ji6QS/S0jQNHgfkjZy/awyNoxTGTN6c9YGO4ACJsKOD\r\nn9jaJJflxFklFZFYLdOCDmE1TXb8d1BH9UTp9rwQS9I8mk3ZJ+WdMFm9lZ4s\r\nzyuL8osplQHEUtH4oUYje/cazFo4bXPbxqAroPl2eP1kzK9rKjOpnXHe02Zs\r\nR20ibfoX0eh8A0VgD7GBAP8nLJoOOH5go8ONDA5oL+FnBCz5SoRXreffwvix\r\ni32SgtaxRf1EtmpCFAN1nP1Mz6Lv77/SmDMW9XgxsDhH3Q/vrlwGla1pe4Tw\r\nQXtQhwn54pUVQlnvmmUg/F8ENtZzKjOL2A49ndJZnn6zo5Eg3y14hx8A+XKL\r\n6jIQWlkkEb7kf9sryMolY2iYlabMuxW5pHH9Yobq/oIs4bato8KsHIHccMWZ\r\nTcDkWfgAT39DMIL28UjZcBPCD2zrgihcFaTf9rFQOynLYduRSa81WiIILaSm\r\n2R3pc1mzST9IsoYf3ExAqFuHt5rouBN38Mc=\r\n=xjbj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a05812956ce25631e9530bbe6fa7d72608acaaa1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.149","@apollosproject/apollo-server-env-mock":"^2.46.149"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.149_1648697608953_0.9573011938423983","host":"s3://npm-registry-packages"}},"2.46.150":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.150","_id":"@apollosproject/data-connector-onesignal@2.46.150","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"44a8a10e17a1505d14b771ad879d5146c707b763","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.150.tgz","fileCount":9,"integrity":"sha512-0XBCS0f8iRR3THYwUQvKjbB/YewEtCObB4kijgqrFF3VM3rzFrGa8YO51piQOpoWcJR3tcWcvQ+00Zss6lA6KQ==","signatures":[{"sig":"MEYCIQCsTeYCUQBg5Q9wCAxoixHWFKnA6Xr3XsNpwKki3lK7PAIhAJg9FTqVfyYCwG5MzobeegKP6VjdlHB8lq9KSPgh2geO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSG+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojHA/8DNxfY9LC8moV7PjUAjeuCWHQPp5vue+b8TEeyqPbFgUK4Yax\r\nZ5zXlmsWVNUOU087+Zf4wMZK9xsXKUXp2z29aOjxQgEooeUR4lxxif46Hvpz\r\n50HFK3ej9v1xqZ5WX5/spquvqojrGrvF/wvunUAOruBnZYQv+gIBTHj19t+2\r\nxWwoo8qk0URUm+Fc71VJRO1E7H5YNLiVtwQkw67sHoplnr4Y2HKlFeItmWBV\r\nhH4NIzYhiVeBM647Od434QUn79g/1E7BQUSbVofxomv7Jv/tSTChLm750/iz\r\n1FDNwfa5swFfdhvWXLtf6THq5J9j6QlIGxQXyUgomUxembVfEEGnINoX9rzB\r\ncy6C+f6QEqApHdXWeRhLj1rVUExY+vHJsLMV4+pWqHlprpRor6ZnasnxOd6T\r\nz4y/PHSQs/vkrvrRM4QZS7rDlFTG2nXyOUAO0tVZ+jDqdTnS+asXq5PJiu9D\r\nKAJgv1iYXeYGoqF6382zFNDcYxRFMFRHbDYUzKuXvkye23Kuc91ez6SbSmHm\r\n4NvFCBp5M3PJDdJB49Ua4xUTL5+tLVgqUeA/L5pKPnbM8LsHkbtZiKdUYiUV\r\n+o4VjHUtc7PzKExWGM2aXM61YgAiYEWke2Xaz8nuaUEryZ30Mw1yCThelQaR\r\nHOAylKnz9KdBQ/kHwHcZ0AXbnzGXnc7mlII=\r\n=GarR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f28a2637c1b059e39c0f6ecadd1fb4df1d43c8ae","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.150","@apollosproject/apollo-server-env-mock":"^2.46.150"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.150_1648697790281_0.5266200827151886","host":"s3://npm-registry-packages"}},"2.46.151":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.151","_id":"@apollosproject/data-connector-onesignal@2.46.151","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f468799c0bee8c2361a5567c4a91c626d0b85598","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.151.tgz","fileCount":9,"integrity":"sha512-oGL9k9h3VbT2N17ukLyLJV2RxHXb7OU4zmuZ6uuB/p03PSfxzuQPXZoWQPOVo5fdMxQmofKq9ZG9sCiWz56+WA==","signatures":[{"sig":"MEQCIEQUsufsewxxmJL7T4jaqoxNCT+KWZqzot541ghS/MvDAiAnr/N5I8KLsavh/wyhb/Ni/BeAizch0KqSE7iPU4DwWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSKnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR1RAAhuc0okLPmMoza1sXFkDZdJsVabF84iAFqhdHlq2hDNccPTvb\r\nngMdSPyTEHzZUEBHshYhvzkmpx3rps/5dW4jVkkLJCeLvL6lroQioyq/gEg5\r\n7O+hVhUwwxU4qn4+YUDaQYq4hGngMQdm3WDYBTWWqfhFCC2bfuq9kNQOuDa0\r\n2W+AvkmBoyoinPrN1/SvKsWblQ5ODgDGHzS9TXup6n17wRga03J40Mg30fDr\r\neJBuvJJd9Og4iDIemU857//VHn6DNA5yWibBuXrBKWjYzAc1hVcXUFLML0CH\r\nETaxAKB87ggLnzlAzfhoDax/t2/mUeFBYtDdcDX1mBiI+3IarbtJHLM5uSLt\r\nNPf2M3S2jv/FkyawV1bsjNAUCxpLQinMmMyqswdZKmRs7wef9yddykzY6hrG\r\n9ppoZdhEYOgHJuzPbdzwQS1jjywPyMH15BQU2PsMTHv4aR1KG7svjzP4goY2\r\n2xCTu9HRVE/U0/aY8cHo/gNUQ+aqT1up/ktitiAfwHN6ewwaRLeGsT24QSFU\r\n5bCE2V3rPSyrlrTv6RyWzJxHjmFsx85H89LnHQex1IKatcmjV+RUXysz95w2\r\nk7Tfn72TSk0rXHqOTmPFoweoJKyNHFCNP1Rfxm/0l0btqYxEF2WJMfBiGE9W\r\nwNL8G9RwtX99bUKAQoU0HrfOAT7MvACPxiM=\r\n=kQ+B\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"79b2343ece5bc3316b86bc9bc74cb383abf9c9d8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.151","@apollosproject/apollo-server-env-mock":"^2.46.151"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.151_1648698023467_0.7608874777230488","host":"s3://npm-registry-packages"}},"2.46.152":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.152","_id":"@apollosproject/data-connector-onesignal@2.46.152","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eb77a94ecd90fcf1e4adc87e1f4ea8b5576671cc","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.152.tgz","fileCount":9,"integrity":"sha512-qBd8/3h4OqhWlmQqstEtGFDo5/fHKkn311uMfvwOTbu2mE3ExV/LmJomS0NtISO07hzbdAqe4qamleHs5gwuww==","signatures":[{"sig":"MEUCIQD6D0gdFZIBDP20XiXPZLPrzaGkEFOAGozpINiXXZySNgIgS/Mk89ZB9nZpAGiZPXmKetThnvQUyerb7vQj0Uy0PD4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSOAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmou8g//ejJHg2/8dcYuAHN/dW5TScnaP6hy7FGRaZ2RnkDvYzzs2AQO\r\ntdEQUdITSHVQZK6X8Hyuzgh4ZKtk+78lIPVLXklOCCF9CHpbJiOg7camM1VX\r\nAUm4MNwbtMCy/AExaQfhicm75mc5OUnq9G73LKZ9BvnVXyxylA6gZ0vIcSSD\r\ne97SdJqI4lwgB8xLnfNdCw0AzyIMxk+zshzm+qLOtKfVfVErCdT9cVo9BSCR\r\nAyA8nBbEc+8vhftJ5m6LWxbwjy9KtgM3SS/1UgxfkSyV8uhUGeFjhiPrQbRw\r\nYw2BWCn5THTF5Z6Qz8DndmzvqvOG3Hq05D/0k0nwNAEmzQzngS+S87Z/xv6w\r\nF4BXsBoGDzp6MmI0hBUXe+5oTANJqNVVzUsD9JLpRXf59L21CAMCMrTtnKC9\r\nd7G31g2w5LNoq2o8U1z7mWGgcyjWBPdNHp6zRi5Q7tsQoygPuSp8wtqPfojb\r\nQ+QWFyZ2LOkWEoohXPDLBhLxWYRIsnPyE00b2pjPloqS22y18F4LqJKlZFuM\r\nU5l40kkxhKZ0nElpvG840a2mqEYAaTrpKhqdQXeh5MqPBQ2wrxJY4KHE4cCv\r\nE+ifYiQdBisebHbggTuXDlukzgbKuwTBR9yzlRLMPSboMEoIOUVEBtnbKC49\r\npDZ2YK5P6OxrNjdHuyG3EqasYTBQbGwsVkw=\r\n=Rm5J\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3529055e0752d9c634706b5efab72f2b687cbb6f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.152","@apollosproject/apollo-server-env-mock":"^2.46.152"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.152_1648698240609_0.042681986907303404","host":"s3://npm-registry-packages"}},"2.46.153":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.153","_id":"@apollosproject/data-connector-onesignal@2.46.153","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"473d0629e534d9b56829c5fccaa6bf62e066d77e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.153.tgz","fileCount":9,"integrity":"sha512-vdSYZK+gqcZvLfKgAm4DH6KaPhEWVnISSul5/XBk/1GNgdcuNANeireIUp084GL9pjJOQVXExhUSTkKI1eWJsw==","signatures":[{"sig":"MEYCIQDM4n+urop8T+0qRIHBZ0b2tyg9EQhtq/0UJB6r6YePIQIhAMMl2qezGI2zQT6qcyf84ZaxeIh58a1uKBTbdv7NYzV5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79857,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSQgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWjRAAgdu2rRhazZM9/PlffnrqtN0bVvCFrvKmc3D0yu8P7PmZ23Qz\r\n9opZ3+KXEQsYlP/WoX/t7XXf9qTLz2zlI8OviwvV+ekJoOtMviFaxK7dGoNM\r\nZYp/krCzqQxm7PNM836+kYQeln1zHiH0HvmhZJQbZ7dcsRC99eqaNhJV1AcE\r\nlqOy7MwR0Y2jT6UploloNkQ8aFF6lemIxR1tI9BG+Zj9Op+HqyBFlm415GfK\r\n7gQmWJdhWPc3aYWmVOq49g7EMayzOlXih3yy2scRxHhKbyGdumLbE1P9vmGa\r\n25ZnA9+5Y6/T1as/yQP3Yi2q4fUAy854H65jwwkrq4y57Zq9bblwHEnexd2o\r\nvzgur5BBn3FQThEm9I6OGnsizVgaGwE0eFzhdyPJ2ORup/jkHSZVgqXvhOI8\r\nv9e6KFc/SzRmu7cTjfOz+jc/cEiRQOEzxkW/eFpc1Dz93HjHgt7mFW+52BnI\r\nt8QK8kiAgJUBOFpkr2CIPlKSda0l3OFHpCBzpPxdMzpeYSRG3hNIzd0krSiW\r\nIKTZ4UxKKe0IOuhYn038JZaRVBZY2EJkmS5s31ocwUcVYQKqDw1TRQuXrdG0\r\nO3MpExx+w9Yo2PgFjsSAehSTXXsRSTqyc+akNN4EgkFhXQgn7mtJSmkf9+np\r\ny13Tgo5vy98NPSxc3MfYFQKhgpKwsfXcAjU=\r\n=sE7v\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f46a3bdf6d3e2471cad550bfb6f0651406a593b0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.153","@apollosproject/apollo-server-env-mock":"^2.46.153"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.153_1648698400395_0.1628338299068013","host":"s3://npm-registry-packages"}},"2.46.154":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.154","_id":"@apollosproject/data-connector-onesignal@2.46.154","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f4cae4101bd8a145ead505656a64be94303d8bb2","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.154.tgz","fileCount":9,"integrity":"sha512-nAeTAU/VUeZs7DyUPGNW5kOLgxqn33w4qZQBXtNVdCt3u0f8uqEUSX99csdGWJCof0YnDYJZI7Temh7/U4/Few==","signatures":[{"sig":"MEUCIQDsQa8TnEOr30VIIHyfRxH1ZuceZtSBMcbuwuKgJWqLVwIgES28er77p11sSd9tx/GL+Fr4aRlfB2ggLsPObA2brAA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80050,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSTDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6mg/+P4cPrB1MdlflP4xV+EpGsyxhqYMrYGqdIaRadbBUplQ8ErM5\r\nUkXyJM0j6Z/HYmHW0GLolM5PTNxKZTPWOSeBk0oEqogAstCb6ArWqc71aiMO\r\n2W+1zlLuWhQzXd5p7SLCL0anBoL4cOTQ9adCN57sJXYeFydtJXnzTNtNpJT3\r\nr6b5XkHzUL+ddUpGEXc6h01E35OFS+6dHtLDWtjVjyAvt/ucUtnZ02/TYlKG\r\nMqz7C1Ues0zNn4VXGqElgMTsKLqYofr+Hax3/fre/8Wmu9r+aMhZZoBYl+Il\r\nEhwtKnTmqJou+EDUQkoqyiw+eHRf1AIiM6tWkHi7wZvQtu89yf8EtryrkxMN\r\nUhLl8wyTwJ2J9PHarxOxkSULZhTFkKCUEnP/J/N1DfXrUVMlr9VsnOTVPE2p\r\nX2msDneEnRGjYUL0lr6H06ttyA1i+qnvi0aY3KTL98/ztSb/+ijg6osC4oKZ\r\nn1nK/pUiAlLa6+r3K5meZ1plOJs/n3jfmAmk2Wlx/5tIi7cn8EWqNZrOlcVH\r\n66pqPisjRppHNRlE9TpTK8OXyBadCIpLv6TR/8oCY5vh88g114tzqGrIHZ95\r\n5DYQrqw1abuoMlEPn3wGLrrbLYCvnWFaa8jbRCIwA/qCAqKQ0RrvpdvH3E/1\r\nf0g9NguzctNnptqsa0d/ySaldE4KXABTLKE=\r\n=677e\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"782895379e233c1756d200c51252be3010410f66","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.154","@apollosproject/apollo-server-env-mock":"^2.46.154"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.154_1648698562725_0.4442857421210402","host":"s3://npm-registry-packages"}},"2.46.155":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.155","_id":"@apollosproject/data-connector-onesignal@2.46.155","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"42c014244e0fc4db57b70482a5f07df6e7da8e75","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.155.tgz","fileCount":9,"integrity":"sha512-ruHMLU58XSTVRRK1Xo41PIplwc0s+uvIfs2QMfXMcpnwFb2dPrAJA/7/1xWdQG4kdGHJ6Hclu4eyc7L4j+v+Pg==","signatures":[{"sig":"MEUCIQDHFNOfbaNIOTHXm6FcYDJWHlzGR8bTHiwA12oJTWqpSQIgSXrneXUUa0bojNINoJD+ValfgH7D0ikfoF+VlMP0Q2I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSVoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmow/w/+LoRlC+y3+eWQ/lOyiZ4k1LQf//Hys1JeaLZ49B+5lB9/nVHv\r\nTf78w/i+n8Xs9PMkfZeGw3hutxldth/H5Swpt7DdRY82qYWP50QnUswc8dL7\r\nSlsAy9rsBICxdMPEt/LJZmytPPEhg+ZZ5Ce7987eimy00mHZfnmqHWt1Bu62\r\nhTElIO3mOHVsRmAbNWT3vPkG2ugpU+DwKQujM98C/qEcDrsYo6ppVfK5bbpQ\r\nmx1vPWDAFGKFcUG/QIpFxYL1pI0o3gVc2ofElOK8msc/ClES7dlnoToSQBVv\r\nkKbLnFm8OZSvVVbGoOcj+9N6UvdDYLaTW9JYdyvjhLQnOFJsqzixYtju1x1Q\r\nX15eZFHISOQvllvIorSelPwqrXzuZPOatUIKSdNH1LjsPJ9xuFsvv/TU0LZV\r\nDbUDr6esAQjlJfqBcc6+4aEZ9R+DUFECLpv3j4HZjVmdjl7IOE/1NM+O6tzj\r\nV7pDqmw5sOVmkOJtdQNQSy3gC76pZkckC+R4RE8v7BHiENmUcVroZ7cwTGc5\r\nspJ4Wq08k/RI2mGwta0C2yN6Ruro5CHFVAMlawnxpOnDE2pVCYPrekjw950Y\r\nkuIQu8hCA336F6jAQsaMWtmp3WKr78crWFxCg9SzgNMCxObO1kE/LyFtV94k\r\nS/VeJds/xCl/bi9QRZXVqcLrWABxkhYjHAU=\r\n=g+NR\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1877f771ea9c4563ed5d27cf7e28d8b6ba2498ab","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.155","@apollosproject/apollo-server-env-mock":"^2.46.155"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.155_1648698728546_0.960607395834697","host":"s3://npm-registry-packages"}},"2.46.156":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.156","_id":"@apollosproject/data-connector-onesignal@2.46.156","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"f53949c784c28a423305909170a8dcac66b98449","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.156.tgz","fileCount":9,"integrity":"sha512-nLdb0pcPhIdQDfgMwGBftPcfjHUUbQjxA9lHhtaHrercBiD7CzwNcgTC9faJLu9LJORGhVthPa72dHG0L3W6Sw==","signatures":[{"sig":"MEYCIQCkSVfibDU9vZTXCb9BIaJ+vv52yt1yMd5PtX5zhNc/8QIhAL8Xy844fb6Ke6RNLggGsI7zY2nnomGP9381PerBmPY4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80436,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSYdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0sg//YlyW4aJWjm+YN2lX0KHeVCL342ocncVKG+/QNBzhOGAaCWEY\r\ndOA4KrzK4JowBY38kYkUkzvqb5VuLRcv/R0n8ql3luQnMJ6qplrfAXx0wgrG\r\n3JxhMcYO2N/xivSJP4a2VzsyEqN87AVgjo9I2y7+/a10wWCpOLhgPRNeOJgz\r\np3TOkFJGI6LHp/ENbgvOWnVcKMAWqduIOa0yqHM/jjrKIirXVLtzGca36ld7\r\nYWx1yZ2f/IW5Uqp39ZuYd7t/dpIEp+hQ+Sb1I4j7LyKuKN1XGJc6Ntjn2TH5\r\nrzq8JKs4WC3jSLBQGXS6JQcPqL3ySc01njUXEQES5nYyCImJ3K/Xt5Pv/NKk\r\nk6xecoR+HfTYJmKJP9+s2A1VHjqvSY/SeKCv2s5vpVbqqtIY3bz3C46LJqGx\r\n9OJ8HFfNWVF9dTdM+FFQMAoaa2EFLhPxkaT7YTQxBhO564Uwp/nvTqsaF0i1\r\nMymNIqknIwhDCEWxlQo9r6rHggtq/Vu19EEIP32UAzyNRkVEVVsypCBw7uYr\r\nvFHsYyBKrEWZykr+Y7MmVYwENRvjdrUJyqUecFB7lIjtz+3TeFm2klIuEC6o\r\nyAt0kAC5cJMH9lLV6gYUqA6BHtHFm5S7etEOwPHN9FVD+QGxCRy2zn4axutE\r\n4peKUFEH1eE1fOaqHKHR1i6Pv09npyjNGsY=\r\n=GF17\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"9433c159b9aa68ccab833e16585acd82bb221a79","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.156","@apollosproject/apollo-server-env-mock":"^2.46.156"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.156_1648698909275_0.07944437391062165","host":"s3://npm-registry-packages"}},"2.46.157":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.157","_id":"@apollosproject/data-connector-onesignal@2.46.157","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"533f60ceb958a4f79843fe87128199b0fc3ed27a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.157.tgz","fileCount":9,"integrity":"sha512-iBTX9a/M7CCwCuyGtejJHPZUpYwt9d9laXfAQ6OGlZkMEMG6Pkg7CQLoxBQRWVt3e4IdqA4ynV6dWodAA0gHaw==","signatures":[{"sig":"MEUCICAwMRsCbVWGS0gahJDK/gkb9VYnMy6141ttVauOQESoAiEA4QuyjYjpQWeoVwUEWBOBFX6AIMjSy2MCZlAgAUMtO48=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRScNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrT1BAAieQz+ycSzyDQzIjz1XvhBefApYBIIVyQSVPYt6W6KXAVbYxe\r\nqTbM0idURE0GKQCDFMBkoPq/qis2pokidfsF53wSONlImUdmEdSIZpQ7kRlv\r\nBxYdr7xQBGufoKSjYz4C6ign5SpT72pm8waRe/XxGQE9asCOoN+f6K3glfyg\r\nw40P3GFiDLLaSa19rpWCCRL3MCPTsfjUBCo6t7rvzyVgOEkNRi/+5b/k94Tz\r\nv5jWfTjM0DHZdJctUP17Of9+/cKCxk01xE4U/kaLLmjy8GwBy1VC4U5PVbrh\r\nc2E0wl3XC0EpRyGHOXHzoEcNuwT4IMezoyRcEwK6GaJGi4EMjkKBsdwzAg3D\r\nyI8650LHEwM/zwe+4lt3Beu1A7w60Bu7qGNDNvgFPCXoxFyjfKz6kSO7fxAN\r\nlSyAMHt1cgVUFoYrAJS3okyTn4AGh73/XBvcnb0krXYFqXtvp7cBl52O4kfN\r\ng7+HdvIplrXN7An8BKLT57qHMmfVPwCscAJ4J978vNeiQuj5mBMzZdNXPwOX\r\nbStjdh24mmFpcBxaoP1tJzq9uGeEBvVUhFd2lH5YCVpCo8UHxGZ/cKJht6lp\r\ncX9+ZAN6H1b8u7H34LmJjU+JQ8v2fZsUCfQmmTVx1CU6wO+numYfJlgZFVB5\r\nkvp8Mql3vZUIUxCleHFoHoTPSQdj0wuePfE=\r\n=dMWm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"0141a4706c1ae3aedbd2056d3831fb519e73b7a8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.157","@apollosproject/apollo-server-env-mock":"^2.46.157"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.157_1648699149690_0.8053467111258183","host":"s3://npm-registry-packages"}},"2.46.158":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.158","_id":"@apollosproject/data-connector-onesignal@2.46.158","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"19e0da34b8c0b2d0828cb1508402715f4446c55d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.158.tgz","fileCount":9,"integrity":"sha512-Uc3OAVG2mNv066McaGgN8g0jx5oEomHUrYnECavJmqSCHijXca8PuKx5e/CC89jxwzg2HnjphTY1cg+alcSQTQ==","signatures":[{"sig":"MEUCIA/NS9tpoCWl6tJ+ZRZPA5IH9cn1KXh0UyZSRN5gPL93AiEA+qmDrkPBb3n/GkRgwMkfOTtWUgcmO9DAG13iiQMH6wU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80822,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSfdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog0w//fPvjZAm3kEU9CtF244JIyNagvKyNT4ZMszIYU7jXeyXTWEUO\r\n6sat9lSYg5d0OfCWPscBmrn04wVjj8hZodzz99Z09D3WeKBq18kuIwJUfVQI\r\nj1BEgWViW+hj4Qoc9uenBgn21hzwjXy2xqB//x8m6Oe4rrHwMfQXy8E3R/84\r\nIX72diFe+YsGNNavRyZUjnIV8k9tViYKbTVtZaV21+ximLb/efVhobHW1CKG\r\nXxEWQYp7FtmLOyG5Xn3nFFUjiCsJcyTs6asTAELXJPHi//IXI4ugujPh39Nl\r\nQn7nqOzLpBxlE3nt0cH4RnRPI0UCUTRwB0NvjT5tgHhhEca+9RIB4i+GYOZt\r\nQU3ZFGBr9ZlMqtdkorEcIHej7osuOrIixFiHA/nE48DGEcW5bDAD00PKEcyd\r\nGwPKsnFmqCUeA12gSS/7spoe/FsoR3bePHRxwgdkcYnznD5Iktx5VcEZEuv4\r\nMIKhMnIwyi/NILkNpH2DedZDcg6y93gxeJePRwv0waSbICRo6S5IiOQ0l8yO\r\nKmMJSPHsugUHtcFY4bC9jNpWhuhCr7GMoKl8YwIDDZoBDfyCWeZdTVi2mibX\r\nw62q1Cb3zq5OoJgxYXQn7jIGicAamle50ZjvSxu+mV0kiOsDQ5j+9Pgu1W3K\r\nkk3h1WD+NXkGTCTia2tr6T/WtXPY96djD8A=\r\n=nc/Z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7772539c55b6a87215708cbb0e828b13bd82df21","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.158","@apollosproject/apollo-server-env-mock":"^2.46.158"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.158_1648699357672_0.9575842987558429","host":"s3://npm-registry-packages"}},"2.46.159":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.159","_id":"@apollosproject/data-connector-onesignal@2.46.159","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"969356fda14f16d33ade90c5102be5f45c9d18aa","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.159.tgz","fileCount":9,"integrity":"sha512-u0jGK8W1Xz4PHmr0dz8V/u5VgeJzTgLWvmWrUEMBY5WtG52g1wZkiLbMRQnotWZho5o00reVFZz4g1kyK4mlfg==","signatures":[{"sig":"MEYCIQCEwxtb7rbCmRVje4OvKjjwG7E7Up4qRCEjrYsEsqJLQwIhANAsy2Q7Q+t/Bru0oLhChrPK6BxDuOzH4EsywIz8pb8x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSh9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvuQ/+P0XswqbCh2jvV5VjbPvrg/r51X7joykQ/wHm+oQkBliBs8oZ\r\nHXYgk9VPnp1XY1QJOCKZtpXB7mXF52HmFvf5GoqvLX5KybAbo6h1FXc5g9Cj\r\nVxGfSk9vwUnuUUS5zZw9lDsDbNXr76iN2DplzycOeDQHLyPdaHLpHUrNWEes\r\nL6+o0pRu7yc5S8EjzRTxUxv8MpU0UTQUYGOymtIcQ8EumNOLkVz9VAzWfpaD\r\n/037GymhI6FWz0IvUh0XAgWAYbzXPUjjYsuo8PjsHbgnzSKiovu8pwWSLBPJ\r\n82xhczAZlxThzeZmzOSvCCsCN9MoAIsY0qXKuT3EVCTpP8B6MNL0ZEuzSw0O\r\n5EQFqZPyT2bXb3Dc+/DSO1lweS7rSK2ifK9JHDqf6ubLcAYRuX3cNmDkwoHa\r\n68zVZIOKC/4yUI3D/4QHZFEIqIo00PGDKTK+iA6TPnBo7BURxt8CDyKemPsQ\r\ndLzOwdKaRMRztDBEeelJquJw0zOIPrN/UvjMousOW2ElZSmMPJN9bpW9fKN5\r\nzoT7XjXxSPOYZDn3SPjPjw8apNNuGs4SHiLj7qYq/OGexAlka+Yk4rxRnkvB\r\n0yFgYZ+y+Y2ASOnDyFvV1SqicSvfoS7SZIwhseJ4TDKMqD6lJNNdvdERTIgQ\r\nsC1+Xet9RskN/32PrRcgCNkr/464U1SI+c4=\r\n=7dfm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8109c012ee7ea19712c4b657d048ff40fdc5c165","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.159","@apollosproject/apollo-server-env-mock":"^2.46.159"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.159_1648699517370_0.6860834186911289","host":"s3://npm-registry-packages"}},"2.46.160":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.160","_id":"@apollosproject/data-connector-onesignal@2.46.160","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"670f875c76efd157b5b5722521041ae8572e90bd","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.160.tgz","fileCount":9,"integrity":"sha512-25Ipg0m6Wjq4pd84ZtfgVxJniX/iuj59mwz74Jdde+qe2BVcSm7r07dk3Cm5+g9afFgzOsZtAkyVq2y5K4CyTQ==","signatures":[{"sig":"MEQCIE7OCLNaeCipmGBr0Oo3dL4uAYfoi6CknvPg/M1tkoxMAiAg0rPc+90UyJc5sv5pfSsPzcTrFfecDpJnQEe6j48pDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSlpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAyQ//WljWsVC7jY5gyBPXXLxb4UX1SuTxeU0+s9/CyY6cNrw7rWiE\r\nA3ZHFVyJtNqyn64Uzhscl190d7WlLj5BPq1IyHGj0EmKoW8YrOaViNFjefko\r\n8hE1wBtX8GtAaN4G7pzCQlkvYN2K7bIg165w8EYcILq0uiB5oTG695foodgF\r\nvFGoCzy0VAnszJjvf31bhCjtb/uQToJILOJZHpFVVBIv1gAM6pRE78LeA3Ts\r\n8ohmDyh8YqUj0aCCtU1sxukh03eW3o6pKHB9FW9GX7oEzotaoWaVQegEde4i\r\nZvWpgm8W+BDmTdyczF8OekqlvE5kTXsQvfgbyiftO+VpDmQmzpANMUCTGJiv\r\nslGy2uKjabzTMcYn4v/wfE1+sTpUJ9aHjLmbc2kUOjtl6pSDrJJLrJsJqCnI\r\nWCcxv7lBKlLDgPrOYyIGgOJtgpx71/PKdM40sXwKnZP+w9nE7w1DVOqMwdHl\r\nYsT6GPNuxoQElkl2aiMY5ZGmq0g7Nxb4aSZkZ5DC/xreBDEwNa8rYCnbJyFE\r\nZrtO2mkXJbH1oZ0bnVM1Xa9AMvODfq75AlkWOFbkwy0g8juBzyaRXChj935B\r\nFOqR9gm8IxrQOT0m8ntfiKeGgUShrJtvc9k2cM0RLOteNO2+OUWSSYnUS8Nz\r\nDd9Rmw0kz3fL2YnpRk+qUBA8laYQchKPZl8=\r\n=hGhi\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d7d5a359770d6ed3b1ea166fa990ab0e67e82d0f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.160","@apollosproject/apollo-server-env-mock":"^2.46.160"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.160_1648699753486_0.744937783388141","host":"s3://npm-registry-packages"}},"2.46.161":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.161","_id":"@apollosproject/data-connector-onesignal@2.46.161","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ca55d5a6e1ff94f9c0981e9756533d32b49ef62d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.161.tgz","fileCount":9,"integrity":"sha512-mC9l/8jw3Xo21sZ2JgRQ9EBlF9AJoQgVlIfBirBPU6qWe+qQlzaeF5feoKhGbSsLFWaJpvWBUzyx2bWNw7huSA==","signatures":[{"sig":"MEUCIQCDaXaVa/osgnLqDWfPbMSVm/bjC2r2owHPyOQ7N/QUPAIgMuBjiWpMSsCTxgGgdWZ2xMAJ+QbcsGZMlHVlHXYdJiM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSoGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK4g/8DxCm361Mu6nqs4cvYYeIumhb/c2ymc/8VHBcrkNcbHE4LlfA\r\nrI5b88jQu6ysbCQiVwPzgs48YGHJyxCkpzZ0T7czxKHj9LoOJjT7ssvhhhEQ\r\nZddnvAFgay1lkgVmc5WDWkZOcDiR8HMBlSn4f8uRp5+qjKvMX7VitE0GompQ\r\n9j0t1mP/gsYyA0rb4+eEiMB4uPZuo8eUWcpMw+LShR3biCK+MrUS/OXifMns\r\nhSgHUodDOC8oQ5k1H2gROYsH/WO4bz30NUIA0XGHX39E3xb9oAk9cQFpLMkD\r\n73MluWe5lU4sW2bpSqihNli9B8DU8wv5StP9oKlEqSULk8mx661gQTWQLjvm\r\njxfgWu2LF3desJ9mnmVNezJF2uvhsbvGl2t9w4bb8jdmbOsf8knzRxRnlgs/\r\nhkb1Fq8nzgiXuroh1Emk32mkXKadzeYmuMPvI9jm+tE4U4oMNBeS5w0DVKRF\r\nArU8JNMwwd7CdEfET+IjDdaA0DqoBUPciOVvu0vsbjTFEVVVo3lwtMsttbwT\r\nv9YJ20bZdlMxBypDv9ESfcguG33VYz0ym7cnTbMscjlh5Z/Wl2enA9EyZHGb\r\nNSQiexjzWetbcammDf7uj23jWsHOIWAhy72c6sZBMPaeMpDKVYw8KzEoxfzj\r\ns6udAygjcWzEmrZG3xdSWslHipkUAsLjMB8=\r\n=L9p9\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7ee8157b7aeeb6488c4e79847384cef9c7b17981","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.161","@apollosproject/apollo-server-env-mock":"^2.46.161"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.161_1648699909844_0.7158410187588127","host":"s3://npm-registry-packages"}},"2.46.162":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.162","_id":"@apollosproject/data-connector-onesignal@2.46.162","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6c2246f0b5d6f0b011bdbf60fe2759b591b1f41f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.162.tgz","fileCount":9,"integrity":"sha512-F4HPw53b0X/Udqh1yiJ5xWZD0vl6IXXLvCQrLASlnx0bSiJpqRR3eFqPxs8fS9ziFRvYi4Lzw1/KCSzBc9Hl+g==","signatures":[{"sig":"MEUCIQCwy/RJOeYh3h9V0TtEQeikrliLeugaeEpE3e9RBc95GQIgBX5FrLWXJ1hvnnFMnlPF9zxUGsTKRpm8WZ1NSSAZtlM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81594,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSqlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMFw//QMQvGG9UTPCgOUejsmHPnQuFV23PTTct6NC4GPdswLMpQcuX\r\nTtXT9E8Lkcyxurooxdu4zh+ouJ3j7my38AoX3I7X/JYfIUY42iPVzNNuyeEy\r\nkakMfPiOWIdz68C8P76UeHBzHWYetcfFc+qaACX314bNYCkXks2b8keKy1ja\r\n/2zEAHq+lGPAzxHCYnWOYabrcaVN+UML8HFvHIeCqJF2mrwfmfjruIascl7u\r\nC9EMmCCYXg7pbYpTYgShMzSaBpfB+wSym3m4Vdi0wCya+T3NCaUzjjrhP9jr\r\nQkowYe4wMtByYKOJDw3B/2wZiM/qMNGd5h+gz//6SFxq/U1XXOkaE106zH5d\r\n5mXpZimFIqs5hM1yq9q+LXgH1y0biwkOrV51Bio42dhXkTfm5hQNF8Nm1zmh\r\neZmzI/H+bDU79u66bOpSqNXK5bq4A0x5ZVP3vLCpfRU8I1V+MIDZy0SAPhpM\r\nKpx19040dCLfv7TT9S1vNOByBJeoRWyZz4UFNak6hCnm/DyFHFkVf3ITQHi2\r\nm/gfGzPt3w45q9CpZwel6f85ZbQvjNmb3FDWhBkmaJcbkykxHkGyDMMOq3zt\r\nOZHzckpjo0cArDuAddFQmZjh0LA7rpPhXZRvh30biWq8sOBkk16p/JIX16WA\r\ndTGKlm+HtT3qyTDSmWnH4/VaQXiHko6k1Fw=\r\n=ZubY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cbbae594c23192afacf7e812d6f04bdd87b86e34","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.162","@apollosproject/apollo-server-env-mock":"^2.46.162"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.162_1648700069383_0.6577609707582543","host":"s3://npm-registry-packages"}},"2.46.163":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.163","_id":"@apollosproject/data-connector-onesignal@2.46.163","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2759266d7fcd1c4e71fc8783785e2c562951e2e1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.163.tgz","fileCount":9,"integrity":"sha512-lpLJH5vT+zpFjPFx0zIxXG8wIkO16kXyX4eNsgMCzxQFgrRFEkormtISpjBUpnYEs5UcaTgXxkjeJ01Qsud27g==","signatures":[{"sig":"MEYCIQCu6cc8o84h6w7dh4iB9yNp5xXi7kzbyouJv8lkbNCvzQIhAMtpH3oHo3k0vklFPCf+qt8yrrtudG1X+w4L9nh25Nj0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRStmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEUw/+O3jT+shCv/j5S/CzyYc+MvRE9qt28524+cLl7b03CvWcERmz\r\nF0jRqG4mf+QfugTssVd7nJKrHE5XJZnLu/R6NFSEqe7x/D/d6IpgvW/qVV8r\r\nPWbobuQqCIPrG7F/T6WOC39arNCMgASW0iRq6LaOMywUdU/Hpes+Nv5JqhYm\r\nyhXPqFb9nGn0Ow7AvIdPw/MyhMpiIbGXDtxZFZTB1suSRh/ssaqLSTWyFqPC\r\ntsTLH7bLgl3bsFyKRwfIe01EnKFay5rzNFdYTwU0r0xpmXuN19bnjOACA8Bk\r\nF9C0nugZ/HECuoTUyoN9i84Gme65s6+49J4rGB4ZHrn8eXOfG2oq+1E/JljG\r\njyyrzIEGj2/hXCg0rifBK8Q4c8NTobciNElFI0pErmk5QVQSh1XNly58C4aD\r\nvZTs+1aCAEsoTs7zBOX75WU8yN5K/iDvf4lbrTmi7bcYyOtizztfe/ZwZwIo\r\npVpXLgIUcOwndC46eTBogAfQ9B5tCdNNojnYZD0o15u5uf4gtANO3ucbCqyw\r\n847x14nmYoEhPITszaofklVakW7fwVKtFoycqakapinzOP07gszmG7LV+2ra\r\nrjl/7ogTQ2znq68nZkbdYCnksaejNOjKDx3tZ1wKUd8ZeSsdk4t3RACLCqWN\r\ngD35/g9jlpy0GWHrmUxbEIarQYU0JkutwgY=\r\n=pNgU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"02826c214e04b88798be9041aa51d7532593e8a7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.163","@apollosproject/apollo-server-env-mock":"^2.46.163"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.163_1648700262540_0.2622257899346383","host":"s3://npm-registry-packages"}},"2.46.164":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.164","_id":"@apollosproject/data-connector-onesignal@2.46.164","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"dcc8e33708a8153282bd06e4eba8f2ec79b87bbb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.164.tgz","fileCount":9,"integrity":"sha512-vcKrKGwiHHea9faid4JPRGjhElrGauH42r5j+oKdUrNCQmULOGSgtdiiH/GE88JHWcYyBwTtsTgj7H8rshl2AA==","signatures":[{"sig":"MEUCIQCL6zGng9xYavMlaUotAEviqMGNOKtWJxRmdKNV4GGOqAIgMCsplXeijrROYo+JffzZRYeUTjc6pZq2TwCMyZJyj9E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":81980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSwwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYoxAAm9V87sfYlSs9Z/EI/65TH1HCZ0RUNKwIcItZQtD2+NsRnUSg\r\nwbb7L/5QHvdf6AQorRpof9a54qBXH1xngB3p9dEi1tOoSq9ICycfZxTYYyDC\r\nuM4dMtGaetpORgE6ekCOTF7x64DCVk033dQXlRcOgZsiNDNzq25bBhLdB9P0\r\n8B+77fy8ulNEkcz5KhL0e+SFLjRbFEWfmoc5CZSqYT4feoFuMi/9Dxo2oaRT\r\n8iys79joJROkc6aqv28j+tJFAcUm7Kh7WWck6v8rZa2zWZMdWb65RNJdElwb\r\n3f8WaOcEgpJXSh7SY6ENrSFJ2C3BRJsgHeLbpNVMKUdot1hWiNIF3KyXs8jN\r\n5B+ecvFNRXo+DELuWbJYQolcIeVyxyu2K+OUt27s8TI4no/4dfL63T6H3fDS\r\nW8TKirTM4mJlQcnKOGtmSp6Afg14sPP7F+gpxDPkn8oraBmcIBO5Dul49C1O\r\niRq0fV3f4w3l5dQbMpCO23KAbBOKS5tr+8w1IurFivMS5XdmMQhjPmGTIYKz\r\njlbDL6SEEwCVkpegbOoVD2YXHbwlariUd728CPh2z5Lh9dRwGuFKJTxfJxnc\r\nWyJVOtb/3Q2jBkGMbe2iURtO2jRzcMZDw/HxkcyQyOnn5eSx0nGBFXW/YEqX\r\nEDmp190hu/xE0db60rLOE/IC8OYxuEuq2bE=\r\n=dRJj\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1b413456ea127cb192e4371db1c50c54d3ec9920","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.164","@apollosproject/apollo-server-env-mock":"^2.46.164"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.164_1648700464145_0.06000007788942563","host":"s3://npm-registry-packages"}},"2.46.165":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.165","_id":"@apollosproject/data-connector-onesignal@2.46.165","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7b65069bc5c03d3113e4219d71eff0b8bfb18eb6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.165.tgz","fileCount":9,"integrity":"sha512-erENoKk2gsz5R4W71xmMVGA7WXKHS4+vpxIuSYOvs+ykFZyd1/j1s8eTLWNb+t1loiYZm8LQg2Ap7T/3nWqnMg==","signatures":[{"sig":"MEUCIC+/UOyiBrbMu1F7aOOJbHAEj3ccII052DADd+GbPaSuAiEAw9iGpFGxVrN5jZlxo4DcyMXInwZHGiKS+xIkiQ/rON8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRSzKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyWhAAkqnQ1Amw7xNgbmAYiFZtrovHWMFeb24zdco/GZD/bIwIH6YZ\r\n2AEJB4BiOqMU/Mcra/ggxg3AZTPHJ6VBKcCIOGQGyteRiTC2N2YQPQCSsDWW\r\nH2hIGR1dL2p0vjWfsdp3QbAlxiWcqw066lXzRPi3ouuXiM2exHzfu6LMypE3\r\n6f5A86owxdOFssgW1sgO/69ebDBIfa20hFoS306XANDuGO22q6vzIFzkP8Av\r\n1AFGutkBSvjpacArA/HyTmKZfve3jEAa1q9lTjN8xh77VJ1tept3/dJ5ZaWv\r\nUoovSE5EfAaKrsDEjbQx4dUdsnbm4RGiEhonQ0eYRFydv6QRHdmvgmlAh0/P\r\nLArt3xjRqZYckMsWtI612uDAfeuktoq4fX7HW3Fma1OhVaqVNLj7TUodm2aR\r\n5+u6JC1JfjeKseQRNfBIK1n13j4rdobdB7rwn+PMcLKtBH44WRftO2sddxnQ\r\nuwD5XbJYEJpibyUozx96gg0h6+M80xRKZlur1eM8PqYOycXXX7Fvx6c0Cp8e\r\nXEcLExU4DtQDyVCag2kPaHnX1I8/wTS8iM5WTsqZs0Bw6uWCYKgLPp4Ft45g\r\nQ5qXmxspIKQBH+ZRfb/17gTzUHsZEnOj7ddYOA7SYbtoQ/D5C++6oKCHDimG\r\nFRZRMK32wkRXCa5WiynP5YqKH2flQvtph5k=\r\n=BmZw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b654a8ab63fd5d8461fd0a02f92e367f034dcca3","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.165","@apollosproject/apollo-server-env-mock":"^2.46.165"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.165_1648700618503_0.342737750049962","host":"s3://npm-registry-packages"}},"2.46.166":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.166","_id":"@apollosproject/data-connector-onesignal@2.46.166","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"336683c6e7c31c12def5e552aee97ba71806a3ad","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.166.tgz","fileCount":9,"integrity":"sha512-FTwrdr7kANHmdnU+svuOzP/8X9nVEPTEGVFbxAwwoaPMkUQ7JXWDq/lHQoQM4btgtunMzb0nVf/WJ1uChMy7Dg==","signatures":[{"sig":"MEUCIQDoHlmKkIAhbUAziIo7QQ8B/5FaYU8zyz9MJQsz7gJ6DwIgKQQUNoASz0bmr+6PpAglIJzEk9/X1neH19SRLNZIN9Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRS1yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGcQ//fzU4zD/o8SJP3BATkQ3PqG/8nlgpUDQ6ncwn19nRjlCXf1zG\r\n73erLFvb5uI4ugC3Ip6we+iaJGUIZMgiOMr/1wAFTOdpHGBLTpt58STQXl6s\r\nEEagyEqb2GgJgROVjaO3aEW6MVBUkU/NrveBOrE8ELAodEXMDhVDckfd1uAu\r\nRIb62Y731nVCCoIIpr+bDVbC+g5pX6vOQ00WFmOLmoy/VT4IBtR/4KGWiRNv\r\n3DsI6njZMgaeKg5OP1MpAYGmxU2i52fk814X27TcAE9f7HbaIc8Xm2mPRzHT\r\nvSa2Hy5eCr5DoEnSS5SQfhMIGsyeOVVp4azrrceGb5+1pTQGusoh0WD9bX5Y\r\nx2LLomN/pdujCAchJDZ8qJcewbeDf5nKqW/dE/w/8Vad2sJyRVjFDK9cH+tm\r\nW5J1Cu1CspDn9KsohYt+fojSepKgN/r4XQ3tUD5B6S7WoTqNoyDo2O8vdvet\r\nBQuZfnWMJYMWdnCImPvV3BX5Cpc9Xz0DtoaaK1GS/819P/MxjkPjnKj/gZvb\r\nTOSVt4589u3uvwpAQQRle9ldQbnS0kLtdEBwG4PhBqDtkFlXCR20eUji4jR2\r\njedx5QzXqkKF+DCp7xOP0ETpebOKIEV8byRdBUW6G2twvFIX4ZC2ePibkubp\r\nUMj5Dj+4UT55Nd7IJT2z6oEVy2GL7CZrUT4=\r\n=Cf+P\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d6767e9d503739cb5846ddde3843b6f3c4986e92","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.166","@apollosproject/apollo-server-env-mock":"^2.46.166"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.166_1648700786786_0.08135706293614375","host":"s3://npm-registry-packages"}},"2.46.167":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.167","_id":"@apollosproject/data-connector-onesignal@2.46.167","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"df2325a22db0f755d3f0619bd919bd49b51dbef8","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.167.tgz","fileCount":9,"integrity":"sha512-1BaHnRSXDUluL2vrsu+KQWSVq/q2/5bRozxPd9j2hPC3ns8Uu6rMDVSwq22GfGHqNj45wh1nRPK1C0MX/wppHQ==","signatures":[{"sig":"MEQCIGKgtUuYlKkf/RPfYhp78+3JPTW1j5mxIlmKJLA5VuxKAiBQ3eUfJXdwFZ8WJOzgbN0eBu9MMXYirVuJua4PT1V2ZA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82559,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRS4VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqI+A//RBc00eDv35Q3nRLacnv+MxuCU9NkgPyYGMjrG5zgBvoNjXU3\r\nHSUqUsZ5TBdFKdgwLuNJPu3FBr+QDCzGZ8xzy1B9ImARhYFGXvApdS9QJhgD\r\njTUZcTpc6dv7olGC0+yg7wwE3qUaEWWPZVsrEMIJunkLOR/oPcS8lE6xVFRf\r\nMEHjMlQbbtoD2cmraUFtbZAaQtPM2kkRk62Srl+GRcx2Z6NwHCrzl29ZRd5Z\r\nlyzdJZXCG8ENpfdRDGuMvlvhX18CTgv4MNpEDgwAsYCzIErgoPKedWl5nW7R\r\np5QFUfCrC/5Fq4jtRQBqLKjGHYQMECuRAXChVnVb1RVAXmi9PyHy5IVWmzFB\r\nsg4tJbp/E5t0fu9ep9UCowBX1DA+EZpp6zzJYBPIltd3/tqDNdwtlBXKCPkB\r\nNVqcfAb2/cywvwns2aIgcy+8iAeuvwoyCcJxPBOxO2WHtkdgu3uHrQP006Om\r\nQAxcJweCtnLyVX7b7kzRRdvkTCwmsY+mEyRbzzOrZh68eSdI79YIjLSr5u4V\r\nyTKqj2PrniKLvSfdNoWfyiMDcntKbLwR6NL5srxDaJha2cLu5RR7Fw4aPSVV\r\naW0jt02Gh61Ab8LmU7r8F1K6kIF98FmLWV6LjCnGIdiCv1Ra6+qgeXQwSDjc\r\n/CqD0dU2VkKTu1gAWhZmRAD+rFeDMn/6px0=\r\n=tt4M\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"502676b403454c64d60093d375b6fd0ebad932f1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.167","@apollosproject/apollo-server-env-mock":"^2.46.167"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.167_1648700949160_0.15842450680072107","host":"s3://npm-registry-packages"}},"2.46.168":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.168","_id":"@apollosproject/data-connector-onesignal@2.46.168","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"626893e70a61caba26d5df4f24f1146d9a89ec0d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.168.tgz","fileCount":9,"integrity":"sha512-Uk2MvMrwE4zlC+N+jHHqEKNxpDvL1f4vg/SL2ymvbxmIWGMxqWCV+DH9a0IpCCbthx1yDswlcv5ulYrNS4e3Mg==","signatures":[{"sig":"MEUCIQDN9V7I+lutgERO9erlZJUh/KNo112FWar3vQYT7VUdIQIgWmXqISjymAz18WhvXHpaiv1NGKBeIPgy8AzfJOcF7ME=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRS7iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdnRAAgdEsvcEhnNufmnRyOMIgoV61Hh16NviY+EA7+mBqurUbcuHK\r\n3TMEznsRGUy2guRzAhHlEjj1a6u4cxM/M00OATDgVtB4/SzQXekqPSPZKD3P\r\nMExscRsd92B97RyrSO5bWqJj9WttQs/QTRNniXNRmIO82p0q1keBiS3Z7eHi\r\npcqw+ID/xkFHt4P8qYjGP+82pS2ExMPnxPOLqKREtrd2FUbEo8uzoEsYHKyp\r\nn2uOqavWi7YqJlfZLPiHdMxCsxGhg8lSsgHDobH0vvTjv8DNuTDMJMhU+Cg9\r\nUVADx6MblN0eQKxCp/5laGrqP4kUV0h3tomCpSDLZamoHPvoBx3kUfiUxY3Y\r\nFRtJAVK8V69tdrhj9ffVyocQIk+MxoBq28xTVkryeSZcAqqBLHRTqhqvcUD7\r\nEZkVuNMDAx3J+BePk1SSulcaVeSDTSwRiu4HObSy67MFgqAv/FoWjmIX8qC1\r\nUgiyX7PhUXnFiQKbQjYY/iYjbJDtdSfQ8MF0bWifkafeZzcW/th5pnz+6yYS\r\nx7PJzNJ+o8x8rE8LFiwjH+NQNlIuAZJZOG1nlgWTzPDcX+hztxMIb8a6WPj4\r\nC5W0qtlaVXQyEiXOUv+0O9/kMXIeHjc6xjyMUvBaSUj7epGnZv3e6kX14vMp\r\nroyQm3VvimYDSjlSpFe9aDw3IYpdPCqSjjc=\r\n=iyRV\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"5077c01bd36be58f9d6e569886b8684583bb3a21","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.168","@apollosproject/apollo-server-env-mock":"^2.46.168"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.168_1648701154694_0.8661819189818307","host":"s3://npm-registry-packages"}},"2.46.169":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.169","_id":"@apollosproject/data-connector-onesignal@2.46.169","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1e9affba7e91290857c84de6c2c17ac7967e2278","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.169.tgz","fileCount":9,"integrity":"sha512-vmskgdFGX9eQV6H8IZPBY3o2WcycfnHr3BQO7mvAOGf1fcPTehMZr3xN49cNhHG8xarma0CNXqeogWRhksWNGg==","signatures":[{"sig":"MEYCIQCxxB8Ofcy9us4bmAqrl+fi5j6TMsYGpUDmbfJC9UxZXwIhAIxgZIuJVKiARVwLGV42BFJ5c+98lG14QtZ+a4gLFQX1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRS+AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraRg//Y2OyuhtT58o0TXF2nt2wJILj4aVwJVg626RLFaEALBLpdnuN\r\nHxr3ySMNn2jU1qJZmMTF7iYFmZqGc87dkA9CIC7tT9Uie4k34cN36SMDkm/0\r\nsTgs6JP7eji66VgKBlzpM8QyA1sQIr6akTXCO3sZA7YqniZoLG5sC0V8h4FJ\r\nzDCW/V0KB1sxDJxObqhbZND119ukOhTjrjtmdQzD0woX1PoBl/AK8pgYXhuv\r\nIxIG2Fgbt7GR9o1Y127sddGZkUPrQM0xGc4egiMmdfq1oJAlNLIvrePHwxJH\r\n2UGWriQgjAnXtMjoUBfUeQAtRu2DGUnKgorXmE8jTl2eUz+UF4lFgruwwsLp\r\nx+DqPS0PVUAtL47VLr4Arhtxfh45C7eePzo2DazO7ds11Y3odUwlFQ+8+Dri\r\nNe8w9mJmQe7szaaPWdeCJjqZZIo7M+oohAaV/jXaptVtzBp3SAWy1Vugnc+e\r\npon+B6bEVAbT8CQ44pDyZgZrjZ245s/ZTOjqcCmbrL3Fei0x/VsrUQfbusYi\r\np96IvI9OiIdZoOGmdHpyyIg+44ERGGbip97xbY2zPEQqP0OOvE7I15WPBBn2\r\nP668QyJQ5oDLylFvtIwFZe59FqWteXZHZQgkWybORqnJkVvlhG8oPB0JwVOL\r\nrvOn4yW1M5bif7T0U/5MkcAIVrU9W0pUaqI=\r\n=ENLD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3c377f8656f66cdb1aa8fe0d67bb14ef46f8af24","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.169","@apollosproject/apollo-server-env-mock":"^2.46.169"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.169_1648701312277_0.46107464939040366","host":"s3://npm-registry-packages"}},"2.46.170":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.170","_id":"@apollosproject/data-connector-onesignal@2.46.170","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6198e9b6d4142a48916913ae4bbf57fec2c817f5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.170.tgz","fileCount":9,"integrity":"sha512-+kz3SGpIysQVDfnY5ELWT1kjezafXzw+68HRxbQyW9mAMkGXFhahbxOOWQOWz15QcyVi2gRg+JdklM/SZJMvrA==","signatures":[{"sig":"MEUCIQDWH208zBKVJdrJWx2heFYKY3Bxw0u2it93+ACcxABB9wIgKNGGHg8nwc7modXioVr46r0j7CbzqMv1cyWNJyBCvy8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTAzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOcw/+NJ/Pt8KhSw0vy2OcIkYDFJgM3aBxuEz8SDpApj6K2QNY6IWe\r\n6f3Jz1Hcpjh5FekoSiei3ahPkOuyX9CJ+uZ1F+DXJf4saMcKN/VWXOvEYxLg\r\nHI5z55QPT8+ewzaKl+MxONXD6uIIys5WtTUKTeuXND75tiymuG6Ntt7ambWv\r\nWXHdqIwr8v8v3JUSkvcmEejHyQYdSkJdsom7S8omoJE5c6a1V/ttEl5g40M8\r\nY0DsPG1IFJ+VSSqgEhRQ7B8a6T1vbqmta+6q0IaFAA1mqa9b/kYnBJD03oru\r\nskychirCaY/qjYQEOsSFqlgxnOaACWMIThJXNYjmPl0GRTtAag/gx9oew2IS\r\nt6EBHPyrmVUHwSM5ikoXNGVYIwP5BAcd3al2gOI35pediYGx+ShN1Q44ssvW\r\ntDjCrvzL8lEG5MCgqJpWmT8AVDHO9Z9rS0eictuVr0DfP34Plmdvpr3D2ERj\r\nSMSqNR1+GOrz2OL/7pFMWV1OvNJvpkchSWU0GDm9ATxp1Nv0TPB/2ggDMRRC\r\nkfaDftFriBIc3wI3PEAcsnU/KKxnb/kJD5GX15ztpT7ZWYAhGm48GQd/NHcB\r\n5MbLlZb5v30ZEqxYr06s9+wsKOeDnKcAWzNaoh9iCgsT8+QjPwDbBlndK1Gn\r\n8iJ2/XZefOD8oU6q/kNn9l+gpbdUf4iLV8E=\r\n=U86E\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1f219b74183b511b2b7b54b04f033ae12ef186d2","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.170","@apollosproject/apollo-server-env-mock":"^2.46.170"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.170_1648701491767_0.37859634480234705","host":"s3://npm-registry-packages"}},"2.46.171":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.171","_id":"@apollosproject/data-connector-onesignal@2.46.171","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"90e645aca271819a4d7bcda7b1e19db34257dfb6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.171.tgz","fileCount":9,"integrity":"sha512-gUsqz6Ty8NoYmI4HxSVNYW7TvjpPeygw6jFW2p9C1tzLrKwt/ISniFN6fbN9VyFEMSR/lz5/OhyR9eB6oY0YsQ==","signatures":[{"sig":"MEUCIDM4doaBwOVikgIpN4lXbrmtW6/IHpK3I+oyyUok4jcMAiEA4TJu5Or4uY4XldrelUOU9ih7k6NJfzppbpFyiB19ZtE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTDaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKZg/+J1sB8rGKhLKiBtihu8xwRtyqvdzj7uzFMuDlduX30BukE9xB\r\n87hN8YA6lJ5hL8wUKP4e459rRScO478uqglGJethxVp9fn0ZsQ2e2zAB82jK\r\nHevSGv85BnUX1Y4s6Bmorx2FAdfbcu6e74VH/naiw9JbyTmg+xjOwvVF9Cq4\r\naJS2FPOBBdnBsEuA/hnTMvgs5jIKaG8y71turDBqtqGgW5oGFjaaWDv6vW5q\r\n/fcYlXfREStu6DpJ1CHAqpPtW36j8Sd5DStuYra2eY45XUzmZ1K0iy7Jcg1N\r\npfTwyqCaOmv1q1MpDT9YNrcijC8szWuYSwyDptjXUIKL51enSGJuitsBm6ta\r\nBajLKBcQGQf4BGVZ9WGd/te4yXjj0zMPiaBFG94NdoDqXKy9zXeP5rLXX0gE\r\n1Nnen0BdyxLH7LNp9ifqhkhMQl5s7aTXrjcAUK9M6P0+VMWQS16Q/dm3If8c\r\nyOcOnSPFPXpT/E7K+Ib+Rrvq/856L/+ajIhrC6V41zBSw+kY5fl5QEKZVN0N\r\nBtaRwyBb4y3VGHY5zw6agVlovs1TxLjk19f4FTAHyyAULMxKCxfMCtWuAZ0b\r\nPcSfkjBpLOfKJPbdcuwg9kKThde9kRhre1PeeCt7BaFq+OHOkVv7wVBnJbf5\r\nBTPhZXlB11UKgQOL3fNWXQe7tV0kuklopgg=\r\n=+hoU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"412a1c164c0d6402afe5bfbcb7335904c1909582","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.171","@apollosproject/apollo-server-env-mock":"^2.46.171"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.171_1648701658306_0.02993264085088998","host":"s3://npm-registry-packages"}},"2.46.172":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.172","_id":"@apollosproject/data-connector-onesignal@2.46.172","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"8ec8361f5609c50ded8fb4822631ce2e8a28587a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.172.tgz","fileCount":9,"integrity":"sha512-ecSfI94UPiqi7oHrHRa0bcufLuYFPWag5/85mtbStjDiMBRmxFDM9Tut5SVIAPjEU0Vhc6c8UyfkHaR7lWQI8A==","signatures":[{"sig":"MEQCIDh80JAYqMLXRDXZH+25VNtdGsQNzNQHhtpduEphkUrCAiALPF2w16NawF9fxjSWjqCzKm9V6XgetgSml+Y8JyD+yQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTHTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSeA//RAwtl7tzwCQv401EmLsTKXpWzZ7xMeAqXTszqIbWRBx4Ox/q\r\nkrJYN80/SXukrQE1imAcbN50nbMXWYZ5LRRglsykfs9yW/AkrHy1YEcQa68t\r\naDnfEbO2QLq5uyWf/Qb7DSbrK+fud06tPH0FLz8N/5QBsUUyVWwjHMXSvY51\r\nQga5iBawGQk8u6TUnwXF4cfCxktfw+3fQgvVvIcmw3j349KdgSt0kMTX4RQw\r\nVu3Ui+bgbG7gUg/heM9weMF1bgy2CZ+Iq5Ux5+9xeB5nHCLb0xUKBn87MOqn\r\n5tN44jpASYtx5R7ZFyHQQbf7Y/WobiW5kPQEBDeRckrG20hfU76c8zmS53tQ\r\nSA2+MMtZv6+vJon/gSJ1wCqdOEz+LPmIgLON4HB/5YdJGP2m/Ut8cQNyePsz\r\nSQ2E8q9ier15SlrJwJHQ1QEty0wvCtsnRRQwKGoUVbp/+SljngilUH9u4SmT\r\nq1OtwoJb9KWlLuyCGTQdfkkLsVMo/QH8eu/PEr7ULfFvClBFJxkEm4KmgmZY\r\nhWJd790tgYWS8LVEK33w/DnpKVCP7/KkN4CF9kmSH2EufIC6GxjP26uinrGJ\r\n06XLPh0UzSRlkFD9mGL2qllS8ce8qk36T1JehMeK/WzMyGilHv725iXfLzSp\r\nCMMug+PreqypggsF5kBvrlf5+Cze+m1Jppg=\r\n=vNQw\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"bd29d663ec91ce2c1fa6b39dc1562bff0767b1d6","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.172","@apollosproject/apollo-server-env-mock":"^2.46.172"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.172_1648701907254_0.5042131688454821","host":"s3://npm-registry-packages"}},"2.46.173":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.173","_id":"@apollosproject/data-connector-onesignal@2.46.173","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b73e2b02710f69286dec591554f413b948fcec9f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.173.tgz","fileCount":9,"integrity":"sha512-t5Fla2Nxi70aFlTkisYR6cB6w9miA/IikpWJff+wm1rBa6I3h8rZX/5MzYBtqHFSVkdX6/dIp+AgWTi6nn/izw==","signatures":[{"sig":"MEQCIGpSPOUFRBI/vojj6rg5uA844CYWf9iwou/QgZZLTgryAiAFU2487ZXN90ZFuzDlARSkq4r4xfUbqqxDZgq9HNUrxw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTKHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKiQ//REKOe23xJgv/j8G+UmM02k1RYIm+uZittNKX4IuAtjOSXfba\r\n9WRUiikUQR/YiMNRTg8jnwGUxHDf+udLL/BB68w91I+gvtkB2XMBOWpemqE/\r\naOkXOpOdYZBhnZYwe6jd3fnv8dyNvW6pdAkXzrdzzRQwvAmQ366jzLvJIKJm\r\nBKLm6NY6y7q9VjhF0mFVFMhu38JNH7amwz73dNfg0jCOIhgvYGtDCN1Gnzk3\r\n8Nfn3vIx6EpdR7RS7/ek0u4rBo9Pf9lg25Z0eg9eCJtb1SWgGbBVeX0Y04ii\r\nk3QvW+VpcHdnLB6OIWL5GQTEttLKK3udxt2wUDTFzDscpP9v/YNLgl6vYpcb\r\nrkXMw3dZOzevAcjc/LTb8K9fl7iFtfCut0IzS3a2gOFKWh3pYf2CRWlZb+X+\r\n2tkNfxSVNfn2Nr2EuoLGXz+xB/PaiF0+d0v+uFEZO+Bzshd+ugFOM/wYy7SS\r\nXtkCF7mkxnrONJJPBLwgI5aMS2qpT7F9GkwOCvs2mTXgYCkldzC2+tGVy9sQ\r\nXAPqSP3LtflW4I9o7RQ++TrlcS5YwJ4zyGsubyuJqJz1GcDY3LbCfLRcpKlh\r\nvVaFeYdOeKTAuFXiS7FviDIZaGsXBkQpg/Mqdy8ijwlfV6orcAI8HyakYWa2\r\n044iGsWyllxu44Aj9BslpmGxYOpVsY1wRXA=\r\n=XLil\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"92610ad8d891d78f50bf251926e897f7a9be6634","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.173","@apollosproject/apollo-server-env-mock":"^2.46.173"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.173_1648702087138_0.06954552394822344","host":"s3://npm-registry-packages"}},"2.46.174":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.174","_id":"@apollosproject/data-connector-onesignal@2.46.174","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"19028bd37a32ad6d5ef06594705cca1b1bee4e47","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.174.tgz","fileCount":9,"integrity":"sha512-+duzXjAcBCpZsuSTxyPGO0lHmTZuRxJbZAN236FV/TINrtFwn1Q+4PfA9DC7IQ9Xky78mQebNNYzr7bBSeBxKg==","signatures":[{"sig":"MEYCIQDkKpL9D3MNDTCSPNocmISBY7U88oKqf52fEs0lw/UC1AIhAKy6JjGqKwqoq7dIHjn/sZWURoQd1u1gU1Rqyu6DbHqu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":83910,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTNWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOqA/9EwqWGR43JiNr/6ka60oK8fMD7TQJ32tfRyT9NrOuJ2RIDGyE\r\nhEUlMVfUoFif3HXyQ3sE66VsgRLGijj2my7+d1VAySgAF15ArCroLpEzJedY\r\nIJ17mvVvSCEfNMynGLHgoZOY8D9fAM7Mggjn84OkfcPucMD8mBpk8HlDPe5B\r\nvOVHIKfCy2H2Lo64syvq9HZWc98L6RS3DT2Kl0ajlldgXlTuki+e5pFz1Xl7\r\nUj0yJ5NcKGZZcBPDlJk8CBV6YUxjNrelvUr/hZ+TKL6GRoSgeXj+zABI4IPE\r\nfAxFntsOC5maCOyMZk9QR6nFGMETglp1opYo9LgHj7Qr1Uzl7L+Vxp0rcmuh\r\nw5Bot3JZV9nsSOsKUL0L+PcdI8w37U7t6+flQjZ9Xj5Tzyx1uTxMx1Fr+tOn\r\nLUw83erq+wW27ZEstXjB26vXhpnkPii9Eqk6tHIYcbweWRuFSG93uXNlY6/v\r\nASt+RoJUuBHOj62+OD+yKQhQT4lAlYMa+lOLmWzUXO40z1B1JCw+3lHwyx0H\r\nT/mWOhZwSGwTwd8J4O1Hy1cLya+490hqtGgj1RW2jAIL2z/5Fd5dnReP1Eyt\r\nM35JQ42jyZ/+W9Lk3nuQFRVMiWEcd7Z52p1o/q3XyiPpUxo72/HOpYMkZD8W\r\nCi4uTq1xphKy5nYV4FETzH9dKFZrJOvG/d4=\r\n=2Gy/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"7e44c73ead4d42ce091c19deba82456633e222df","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.174","@apollosproject/apollo-server-env-mock":"^2.46.174"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.174_1648702294007_0.9847468970828017","host":"s3://npm-registry-packages"}},"2.46.175":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.175","_id":"@apollosproject/data-connector-onesignal@2.46.175","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6af498bc57bd56d4a72ab5eed3a07f1515a7b05c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.175.tgz","fileCount":9,"integrity":"sha512-Aos/zOq9l2GbkTzqon1VHoLvjE0dTHy8QdVaffPrGq7yTWzD4587Mh9DPLuq4dKrxwd1wx9HQrA4DFxAPlNVfg==","signatures":[{"sig":"MEUCIDWm9hLHEs9mY2LC9YLxfIMJwuuXLSaXOHxLJVYclUZxAiEAmgbM77lMAGb1bBNPhMHKhGn6Sliao86moxVNPvJBIzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTQRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoFBAAkD6Yuil/aQWIzK78O+CjT9aqef20Rg6bWbQIvKQymaLOIxiZ\r\n90sD9nX2TjSN6aQaGW1ZUmGFh7JQ6w6xd87IuWGimZ1YMwfYMDjd3mz93+cI\r\nuOEDJ8Ebx6KctMnq32mN31NKMftWbo+NRMG4soM+vxwXY2kfoMUVjLBSPJq7\r\nR3UEt4ijMge6EzB4xJtrSzCIbt2RyW3O9gDBFWLPPRZa3f1eJS5j4dlBoVcm\r\nqpav2d3Q8Nt6xI6NgBwQgQvU7j9MHV2s6xlFk9rZG643LOebpd8PH6LQKxMG\r\njsGfEWbqb4gfRVHN2RO9rHyOH+cWIebHWvL3cNb2i0xKScoBljW+l8qgazNv\r\nK0ff9gVrodIBGHsBGZgVXTIZYaJF2+Jjar96/0nW7ESCT/Vplg11Yz0an3sA\r\ne9g6Rb8JWXC3OyAU44BedVVebZ68nF86RfDryPTz7Sdqe2WxZsAZ2e64+a99\r\nV1Bbr7gOtVWyxGOi0KYjLWU8xx4e+GC6Piivn8cHGNqaOMRW3Pu63Qc6nBQt\r\nowoEalmniylrN43HJgFqm+U3zxTenmlw0R+G1ePuHGFAmjfldK0MlUby+j2o\r\nti/i7iWTF1m147+hNq2SG47LLB1Xp6CVwmO259KroU7NISAVtpqx5f/uPdOg\r\ng8SaSTLpJUKuqkPtpxtR1tIkE0Prz5/Qklk=\r\n=5JJE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"62dc1eda03c493dd53d65479f60a3c28d31dc62e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.175","@apollosproject/apollo-server-env-mock":"^2.46.175"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.175_1648702480686_0.6162186877072935","host":"s3://npm-registry-packages"}},"2.46.176":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.176","_id":"@apollosproject/data-connector-onesignal@2.46.176","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1598efd50808f5b21773761f4d54f70044e3e3ff","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.176.tgz","fileCount":9,"integrity":"sha512-kueCl+pFlysB9j4yII6p8HM5LXfOE4mn3qgMZqBhP8WMzo+9/kTGcsbfSXTB2q8+/e7ZORC8u3vNxcPky0O7jQ==","signatures":[{"sig":"MEQCIFoQRLDUtIwkc7nQYWzvvWFq4+ZW/E0CGyYJS5JbyypLAiA2K+ImA8KjHJK2SIk6BrjiRo+Kuh/uJUfoq2ryu3mUTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84296,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTTFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoRzBAAnjA+sVehqDea+zqQG6igvJxQyRh+h1kYv2IylVqoXe9vWO+N\r\ntrMwKF//A320RwMy1J1/Gt+guNPZi+r2w6qIft1G7t+wLhR49DI3kGa9HSUt\r\niPsgBjTEx+/BylwAg3uqojfPA+rlKQVkPLBcPU3ezLkuVSpZDcOvXLqQ6NZ8\r\nHpWy08MpGc8Y6ZrhaX4hDlbaLeAki1YsAFUBqkcyTLlqpcKN6/Q4Q2E1wNhe\r\nYdn9+1OFEWA4D+XbiUOzVttrCsJO0PCoD5FUUTVvqMRnSzMGp4KlvfAWaQq0\r\nopNBsIyx8812x8B2k+yqP0leTK8klogH6nllI3nlguePuzsI8/CvxDtjw6dd\r\nPH6aO2aE1mj+kaHTWcx/zv/XH5ysMRN/Yd6G5WGM9pPwslqBmiUAI7pVrpph\r\n8golGQxzu6egVpdUl2fP6euqe7hABb9CfMjJ4VKEWEZa3rcHCocwbYbJV4pF\r\nFG/fOuOtroy/pKqxn8UzIVyd4glhzILAegWLyUxBcL8THZhKi5r3PLivR1kR\r\n+G7ON/CBK3kbhX1+l1pHSCBJjPLPWsl6ZEYSI/fjuInkYFQUfIgUE1coUUPJ\r\nn7kX7EOw/tg9MHwlMNh2d8vlfmOak5SE5583vre0QbMzLxM3/42wxeqf8uSB\r\nMDmRcOz3MNZwumPB4lBs0Dk8/e5u1jxmN6U=\r\n=JkgM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f445a837b1b177aa3dd0e5f26bd2d16aa3cc8845","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.176","@apollosproject/apollo-server-env-mock":"^2.46.176"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.176_1648702660768_0.06048662075332856","host":"s3://npm-registry-packages"}},"2.46.177":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.177","_id":"@apollosproject/data-connector-onesignal@2.46.177","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"b40d29d702713196740c12a62482d7f8229df886","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.177.tgz","fileCount":9,"integrity":"sha512-RCbifCrbFvfErDSR3QP++Sr1XaPhf9vj/x6vg77GRLQHETChTKYBJ5mtuxfdkbiTsPqwAvvM2kFxuOrMtg5MWA==","signatures":[{"sig":"MEYCIQDa/TKk2/4KXLYVrOBX3UZjg8kxJB40vHBYSBfWqgsPzgIhAKRtkbhdCuToMkvGl1xCdUgnR8TQ13e8MHD2eO4lwr+h","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84489,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTVyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdQw//bbS5E2GI7NQ62Ycb5JgOOqkoJQ3b8lmXOia6/NTepJ6R/paG\r\ngBRsK+9J03/U63YPap6OS8juHEHZ/y/9xwhJDALmOLLPHrvucUvd5fRubvY+\r\nAs5KbY7WG+J10UnVwZuPwtHuzvR4NU44GUgFPZIZEiSzZ3JQal/oRMdiVk+L\r\nvn+5qx/FrzD4F8lcgSH+2W0QPizI8O7ZVr7o9PeB0uty0mVusXb03AD/jF1x\r\npcHcuG51eFj6ktMbcCGa/8TzIZOybswpcKawVCU7GvKS5oLsT/WN4NfC86XN\r\n0tJBnCnzSHtC+CiVEFZr2Fn5rxpAzNRbjwmYQAg32ny3xQR22/Fm8SCc92aK\r\np3d8hVBZI2J57YleYZAAymoetsZkatZ91cPAF9c/ULx+rGdSbgt6hjX5Dt7n\r\nDgcJWL+SYjoYZDA9du4b6aOHolnyWh/xf9Pmu/ZTY9GrmYsZj+w8RM3hViGG\r\n8TkXNOj582lYcuu8Hnh9nuWvktoAT7EulgjJggmSkKF/cJIflR9LaU9DVHNs\r\n3beK6gjUPRIA0s5fZRBGnQHVvcRRWU58ERGd0ymaYZeC7/JC2oiKspkb6YCm\r\nxpqIVTlUWXvYbCRe4vxADL+GvP0BSJ8cmhx/aXvWtjnxpZOPzBZDjNSeg+XU\r\nw5RxQR9FU118JA0SXwovhD2hSy7LBm0sxwQ=\r\n=eJDz\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"cda5828d5e92c136e2ef0f330e1d4789215c1fc1","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.177","@apollosproject/apollo-server-env-mock":"^2.46.177"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.177_1648702834206_0.18472712495400567","host":"s3://npm-registry-packages"}},"2.46.178":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.178","_id":"@apollosproject/data-connector-onesignal@2.46.178","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"fc7613fe2f1aadac6c613df324742dca671c9962","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.178.tgz","fileCount":9,"integrity":"sha512-ZgCVskPy/L+nvAPFrhrfS4oxNWNLVEJeGz3K82rlXumpECFhG4fuNvEbwC5gNlvPeUALIih61PE66tWJTgNxBg==","signatures":[{"sig":"MEUCIQDjzpFahe5Dmq1BuPokAk3uifb+Mm2e9zFIx7Lo7WPLGgIgeJr0DUbBhzOi+/JqIbNMMe85zpWX3C4PTpgTw+Jjt6E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTYpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3nQ/+OrPo+b85DENfIimgD4+7S0oPx1EqV0ezy2iyiTWRo1elIs58\r\n4yDblQDcvBF7rQ5xwxAJ1vFBvEPP21AqrWeZHa1LiQn86rWGuplR/hDDeBKK\r\nuEnJkG8Z49k3xlRHdG6hPxELUE0wk5uZ5LeGUQqshbphri9k5WVjXIW3xmWS\r\nvfiReDKyHv9elA843+KlrMVHkpnfFlOHzohsxYueoYYhsuyBOoHCA5wsOpws\r\n9sUmTqD2mM3iBMJM91ZtNXaABUklTWHgoq0mFrna6PNOVzFFO8RvU+bkP8P1\r\nfeQOmcVLtBoj7LjRHTd9HkeFY+BHvYdtKw7JKQWZCvDCXWLIedr+WEwwWzx8\r\nNvJ7wgsNuk817TtvIe/eMlPG1Qp3QcsBoigqgHFy55Hc+OIOjO5QvRUe07zH\r\n2/j2z4BUcg4EJV1pQQ0O4CbYgiYNcmvt2C+2AG7GDgfi8lr+ux5WdR56/s1M\r\ngmCIyph+fmdtXTEdjkWwjkZG/ch3+CRhUccDzMOIG8m9crnERdLAVN4twxIz\r\neUWfjJi9cieRCAPHDAvTniL+JUf+jEAoklHZZgiW01QdcIrL/f+6JPoPka6y\r\nv/gk3ar/gBGSf4a9AexV7rZL7MjJ/GJR4huazaunt9MkHcXlh6xy6Nc60JHq\r\nabGVuZPXkE8Huf5Lf4HFVRaWJludzlH/QzQ=\r\n=i+XI\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"f1e682d61c9eb0a84ff9769bbc376cdb8288fda8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.178","@apollosproject/apollo-server-env-mock":"^2.46.178"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.178_1648703017331_0.19184504329223184","host":"s3://npm-registry-packages"}},"2.46.179":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.179","_id":"@apollosproject/data-connector-onesignal@2.46.179","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"c6003753638cf838ca3ddb1267eeff6f9a0f18b4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.179.tgz","fileCount":9,"integrity":"sha512-DlRZ00Joi2F5F3bfEARjcp5PeVZVmr8jZqOr25bEtyHH9nq10tW6oiKWoP8JrC6TyBclA1Mi7NPkrYIJj7nCng==","signatures":[{"sig":"MEYCIQCFSUJYmbxH+TlxPRH6LaLgGYMB49xtn63tM6TUWQUyQgIhAKNlnQWDIGjjraPwx1BoUgRagGs0uMH7+Tz1P6mob4vu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":84875,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTcJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBGw/8DHojx5b/jfHXMJSbMqWsvbLrF7OKiRUQGgO2yj8TmIIOwl9y\r\nNbm0QVqa+SzxC/5jK80MHJ97EN6Oqw1mUv+8BX3AQngSitvR7UkMWMGRQTYc\r\nDHoQWPIcmDR+Kb3nACOee2OJSTZSKCY6Rw9M3N059tDDDViAckTFpaZnJUK2\r\nvODOTQr6irMbxMhtJceUtn1D9BSVbsI87z9rFdurDbgaRVzi66klr8MmcvXE\r\naC3Xb5ITwHaTpuE9RWfnbnNTMBsxvldIvEQeYRNQvnRxPxy6lpFZtzCqIkwr\r\njnx0HzrVYpyyCjGU/RUXn/0I5dgi+lTrJ/GpsDJOnV+QsFWg+oSsar2Qil88\r\ncXVI5bDYYQDtMZ7vV8Uy91KmZzbz+q0Sbxep+9tMG+u0CaMVwF3KQEYg2c2S\r\n+q03ue8c8/eLcyQbyfbfQq007rHjFd3Ec8/OzBLp2rFdxXDaTLujg9K58ZGx\r\nmxyIc6Hn3Mg4f7TpD6OlosFexo2UJsUFsDpCKZZhEoFUUBU2tR8ME6j8/Ek2\r\nHn/edkVGI+TllSFXyCrP6IiyS2lewoE352XbqSWqVSGgsE/HK44bzktGAFrp\r\nTM68JCJVXRbCH9H+Y5DwQl9Z+gPVmXuxzUifFp7hNZEXnCEoglX2jD+H/dmw\r\nNF1+es0IQBjLVXuVBifik83RrrPjYTIscek=\r\n=5n97\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b6e9a3d9bdfd821f305fe51dc64660562a59371e","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.179","@apollosproject/apollo-server-env-mock":"^2.46.179"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.179_1648703241335_0.5729597546246701","host":"s3://npm-registry-packages"}},"2.46.180":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.180","_id":"@apollosproject/data-connector-onesignal@2.46.180","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a6bb53f097f6ecb002a8f28118ea9432eec528c3","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.180.tgz","fileCount":9,"integrity":"sha512-UOy3aFF2JZD48Jlpjbq71Cpzo8REJeP/ETA82rnBju+Xb7uDmgjfqESX5iVvo4pml2wByjHMBG97cMXYv8Hu3A==","signatures":[{"sig":"MEQCIHfCy8Aavr6RMo72tnVk6025yF9zI7yIoh0QxB2pL7BhAiB0WT5sVAWDZVtHS8qzxRWELyJtl4Gk8bNLQjLxn/sb5w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85068,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTf0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbRw/+OjM8ua2AobDBmGigYQBxiQuHrWBW6eUfzH3GlD/HPRaXdILM\r\nH6KMwNZYuM5ob6kM7Kw6CykAjYizze9UClT0jDcuZLQB9hDxP9FkqwemQx86\r\nPIPrTzVMs+qfPkXgJvZwErZFcuSeaR+DxSKh3MWsdn1d3aCs5zwMgKMCqzrS\r\naKWPaQTWkzNlmp957z5q0uMjp97SPXxf+472CpwyRNgWs2o+h4Dff+TFuVoc\r\nGd4kNUodMdrP+z2INhZn1es1PjMBoOTvqN+6FN8lTmvmewgBGls/rRtgX5DI\r\n8W3oBtTm4LusUDfwRzhuOJI+5XBUyCe5xSDya8LPFS7Jlygda8oSGOw7Bbd0\r\nhix1/cV9c3FpaGFQfpgGQsUqgBO7FcDgEalWgMG3yjqMAFKr+hHmz03o2h6I\r\ncFwvFnMFbf1TTnPPsCedMTUIVEjuNQ8dyGAAOYgkmIgZ3KReZQ3TmCESrr9C\r\nubYNJ11wlSsfHwe9Sq+VefQrM4KddSUytAZyefOZadLfkRCxIeBYNXiYcDmC\r\n+8ozox8KuOX2fZHAR0jmJ7Ub/SF16CUxx6+l3ngbFXLm8mHdt7FMosoeIdvx\r\nsiaRRRlzT7V2xxiucPnao7euVHdPfT2LhvRF+b4YZgh2FrShyPsyt9dJM+d5\r\nSD/b4KBR8olbmtZaxXAynTYweeh644r7ttE=\r\n=SivF\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8bfad9951a9bfe6521bc982f6d1d813c5b97eb84","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.180","@apollosproject/apollo-server-env-mock":"^2.46.180"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.180_1648703475828_0.19347350437453525","host":"s3://npm-registry-packages"}},"2.46.181":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.181","_id":"@apollosproject/data-connector-onesignal@2.46.181","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3339d82971cfbb3a5dfbabfa686e58dc2234bfea","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.181.tgz","fileCount":9,"integrity":"sha512-0zhoUfnmYYPM/OXIycoT41OlQ+U8gOsWK4iTersmohXpYT2C/orPqwiNsrtQ+JibioTi4fA0cbfAyXDeUi5dsA==","signatures":[{"sig":"MEYCIQC4gGax0NcCcQmpHC1kcU15q4dqV0ZlnarOpxHFTV19YgIhALFUBCQPrJ4b26gU9dP8rpkjck3FKVgtXw56RrMCvGjB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTimACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHYxAAoGv1AOQinSh4GpLV1ta6C/CIzSHLGKI8bOBZMSGP0E2fDRng\r\nPAe2s8wU8lMAO1vicQo9ptRsuYG12vcft48/aktohEuuNC91YfVEBhCkBF9G\r\nOP6ah+do6m9fbOyHbFx4AQjLg1v+oX7L+/v+3JVgGEWLtf09BhJN8rou8VCz\r\n7qE+I/vXSqMrPJIJQn/oVFSJpCGFDwUqmoLiEt0g+D/bjEcfrRULo0Ky9ZV6\r\nu7ez6BYTAtidzDSgfssgGXAN2dx9GeWzN9f0RgMYfxq+lBEvY75bd7nGWSVu\r\nNbfoZiwXj5QH05sNOkkpMsOrGrCZB70qG6QN/pffRo0HQeL90rWt1Ry0Hwtd\r\nCfu8LycDSvL+ZdtQWOPegXLJcWX1piOB26QhG9wGGE5J+yN59W/QrOLXXoOu\r\nlIFQuywyeKNoRKieoxV90MSdRQWSvvubiR56Utgt79tZhsLmzowCZpemptw9\r\nk53uuX4Adb0YMNTYW+GbEpYkZ4ZRqY48/JD6DDtLVaLNBg76sbagbH72r1FM\r\ngvhI+/BhsvXCgq4TXAvoinhHcYCccT5ypLFQqkfL9leeE6ZfxGmGBDyQvb+I\r\nBQJalrqi1YyUOfHT6ccRH/N5QwdIKjSOtLDabngKnjRGRM1D2kSTQE3jSMc0\r\n/rKcfTpYqJwz1L1eZdWmkRLrQhIEXoywDQw=\r\n=/1zC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"29c26de92452f7c96ad8b8ce764e9f823d9f8d32","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.181","@apollosproject/apollo-server-env-mock":"^2.46.181"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.181_1648703654044_0.5751600358579791","host":"s3://npm-registry-packages"}},"2.46.182":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.182","_id":"@apollosproject/data-connector-onesignal@2.46.182","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"e85e639dad9f160ff4610cb95fc2e19ad88db50a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.182.tgz","fileCount":9,"integrity":"sha512-WukynfH1/9ZIMzaLvE6HKY2H3SkqleB6L5ru81KA9x7meLRx9M3dS2Dtf7yRLjQgY5fx03jIaTG8z1cR7h5Z7w==","signatures":[{"sig":"MEUCIQDGCAc0j/dJvkMUjkWY2Lr5/vJTlDAy0E8KpByU5k9eiwIgWRIPK9Z899ZiKdCr92vt/A0TqAiJ4G9Pq2u6NH5+3ik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85454,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTlkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZJw/9H8cE3rBqKDGv9f4fcTIW633NpBYwKdwJt3ugGhL9xaTr0W+C\r\nq3Tp0HGrPoc7/HM0a6XLbnBOvs0Jf1FSj7dbNlAk2TNAY8UM+Izph0BcPDR9\r\nc4WJRxhkUS8vKqtR8eqbjDdiSXlL0h0YuqdvTmhNu74sjEmIio89vof7wo6I\r\nYpNBgUW66dYgjUvkVnJ9bA9a/u0UGOkiSa0h1qYo4zYk05CbxWY/aaaCgtoK\r\n47pbQFTNn1uhvGeZBk6V+YYJdzwgvFQ2aTJEemJrbpenvpWAyqKTXNVbj2tW\r\n8VOwuO5fSpjHfE10lVTJcWXeM7jsyalVSak+LycO8TfJpSoGbdpE+1JvWsJA\r\nydLd3VXghThvVtSefcmKTbqYKRYnnaa7O1g62bKFzs89duG5WZGaO0QSYYQH\r\n3UrzWqt3/lpi4untfIi4Z+PzN91OMXi1LN5RCxOfOLqNSMUsfeWQ6+mFcSJ7\r\nsjBFHQOD1NHvIJNyhxaivE94UdTjUjegogvs+GBgldwcsylDnfhH+fwCWcq4\r\nXzVLFje0h+mgsDXfN+9YQ5hKpwoGdJxmmkSUqG4IRJGixwfTa9uXpeP0Y7/3\r\nM+TLVOsCDYnzvYLqFo+LcErAsStfPYnuebbCcAJyVK2yjPUy3t0tuJCsMOxh\r\nChm216WmFsOaS323uWn+14RqNDfe7O/t/Ec=\r\n=c9aY\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"207014595d071f7ce424ec739fbea8ec2daa0379","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.182","@apollosproject/apollo-server-env-mock":"^2.46.182"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.182_1648703844197_0.9527696130951564","host":"s3://npm-registry-packages"}},"2.46.183":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.183","_id":"@apollosproject/data-connector-onesignal@2.46.183","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"9122505d8ab617d44ebf0cb5b3461ec899d7401c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.183.tgz","fileCount":9,"integrity":"sha512-ahSHitzvBF2qDaevmtkSxvMUrCwPmXQ+g7GanYNwKWKUNYsozQO4qUIUHuOexYIIWJlI0JvwhpfF6DYE5Ht9hw==","signatures":[{"sig":"MEQCID/hkWCYU4LnuJqKqaoQ4a8R6KeT8Mpsvd2ASzZQi1WmAiBaKKOHGWdw9ML+wSqrC2QtJ7HVyn8p8Adc52jrkk0V2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85647,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTn0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqZhAAi7KUJAefXvGG4gaXCTUvdLYwHhLWT4VsRP8eid2TaocpAY76\r\nshLs/FEsBrev62Q3+RaQ2KyYaZLz2Z8CniQl/1Qst6iVxsmPS+hv/sKfsy4t\r\nc63xZCVIEzE3Zj1y0sMfiJpkizUTNCOBPI4SzOtMJ9JwSh+0Pc393SYpA4jI\r\n9OFyMjJOJBnXpzx5lXciai0wJ4sL/f6OexB30fP3YIUQSsqRq1CGujP7+ofl\r\nTZQxMuvK7CkiwAQ6fLrSNrAcT9OX9dxq2W5xR12YbbE3BKGAwJE7QVY5mKSn\r\nczVtZwwJGaoWKaY68EoYuFPG/iQ6N2WH78phOM6BTstQ+TBTk3IVITLdHZAx\r\nmPykqiXPsmi2uuHqli5UoPjTHtvUukr5z7cIuByNeIpNMDyvtDEOKPX0bucG\r\n7fr4eEwDoGnG+JhnnLG2oU1htGZyTvc+T+AjMnOskU0/oBlPSL6AaPq3KYt+\r\n2otPxMzR9VkZA+a+GUeBKaTmJZhO1bzt+rqJmzZlna+2vnfBb8cr26o4aEHy\r\nSRV9I+3+8pO2xBDXxOQFMTeLKieOE/lN8MDshiYz2X8U8hfneCxx/fnn5gpc\r\n6mGqv3VVnYc6A2A55obcbeFnrT63d6WUnb7XBs10UerZUXBEP2qe+Cnt3LoL\r\nLToM9VKV0PW1RjqMIdt06W24mj2KgVbi3QE=\r\n=UgKm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"3b433f03e166271b128aba5845fefba1a0165de0","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.183","@apollosproject/apollo-server-env-mock":"^2.46.183"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.183_1648703988662_0.403043796051775","host":"s3://npm-registry-packages"}},"2.46.184":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.184","_id":"@apollosproject/data-connector-onesignal@2.46.184","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"df117674edfae987e1e15bef8c678c24556ac306","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.184.tgz","fileCount":9,"integrity":"sha512-wJfIdad2KEg217NM4HXJPOjjOflV6XvQdmZhcrc2bTjuzHd5wD0IdWr3WH9KufTHaYc4/NYlfvCa9r6OF+iaSA==","signatures":[{"sig":"MEYCIQChrrRgSomRC5DOhnIA7PYzU89w7qCqjZ85eM1Q9+6CCAIhAKgI0w4DYmKzb96WHWj/QZK4guc8cxgA3Wg4mRAE5sRg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":85840,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTqPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLjA//RDnP2isX1wDGFFf561peT0D6IbmK9RezyWQaccvuEnmymz+H\r\nsrkzFOWDthIJWABHCfnQfsc5dhCz8rUC+lxAXj1oDlpjvw1Sf98AWVfikOSY\r\nxQfNLx6AT0txlP7QjR52CWmlfsLcugIAfTv28OKdFQVfAEGulZftR6wQqjPd\r\n3/7+xKngDjcej2t+DgDC8LXpbhYpUNDyRfKnNyEZJpIbbmtA8wekJbvXngJm\r\nXAYCqa/ndoSBbmkZh7e0g4PW+8mLBZJ9vUyw1rlGmKW5C2D0GTE4ErmzMBxZ\r\nUOfTxHTzRsgJZpTT38VANVKt9+6zdTARHOeGKf2wDshrmqH9TEFMPfj8b52C\r\noLsovYZtxrRlyvEspw0Ix6h5F2o/24caSdp8VpYZkkfmSsCDNR7o0PRe8NM5\r\nKBiEtFw84uVDm2iklmZl7YKW0aT7prVjP7den2xylx6uITqTCmyBWv9zVRb3\r\nd8EYIPavCHCyNI8Ib5JZQpiTzgcWD5lu0o4eoqrKcXFY811p2iS3BDhMUSjJ\r\nC4vwWde+zv8trXeKQWFy4RrGAQ7KW73HTrAAMhMwkHQmusmguhOQ26ZCrQWG\r\n3VAIkCGm3JBtbvzc2oPk07eGYu7EPGCRBMdXmT+CChtgs9pivLNgwZWMXHb5\r\n8a7uhNjHa8Cr3oL8vt8BQd3smCzFWBL+Ih0=\r\n=cDHS\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e8a4443439661b949094a040e0156230e1c29f0c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.184","@apollosproject/apollo-server-env-mock":"^2.46.184"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.184_1648704143393_0.744245522552494","host":"s3://npm-registry-packages"}},"2.46.185":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.185","_id":"@apollosproject/data-connector-onesignal@2.46.185","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"97dd3bafd0c874717390f96c4f50b07acad38807","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.185.tgz","fileCount":9,"integrity":"sha512-NWKvu1zqjxyR5QaHlfGjy9f2PyaFiucY98KVvNd1X/TW+VYHoN5ERJNvXQ8RYSMI37bneQknNL3WhU4gQFRUUQ==","signatures":[{"sig":"MEYCIQCn0eyZbOlpbEDqdJ5QJo4fGbD6DA13QHDOr9rct1ugHwIhAP2nH7srWQBPBv/QHbO9hX8dNSXu3AVS6jDNtdCWXcDJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTsvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr55A/+PaF5X2q8+jlWgWOKC+0c6ImUh3eZSCixAWYfYDap0H5kArr5\r\n36Gk1745eK5chDlxM9Vr87xKWyIZ6V7STN/VNnkPd2UOqdQxd/DB2FzUuX6j\r\nL2h9bVm/50kYflBxmRBpKBtOrppRhlBuy5oyAVc3u4Bo42ufe+hRob3PrWmM\r\nud9SdCS4pg3WNc2sV6AIzv6LJ/V4HaJxZkF8nppvDmPl3wCPv0YWvhgl1K+J\r\nnfWiHkvoIvdGsWAwGOVDvuoRQ6qXkbNa2ANxHfB+DZlQ+3MUXyuKgxONDIZR\r\nfFMnNYp0mYckz3Vkg9Y6tOB1PYWzDYhcAyiKy/fksiNdRVAKxwFJ8NgcYHJo\r\nyMjZNPHyYUy4NozvYmxDUy+mfPZKjLswWKnUIVv3PFzOym9e/7ZScKxyHH1A\r\ncMIHnyVLiP9SL4QpPfZQLoVj6LgyI4fdbwovuAIFNPrYyxolmtfWiJbAmzay\r\naTgvi/vAVQZekCM/NYbQRSI3N9NpOCR3z1y8y0sqZ+Jxg1wEVi4/Iy/MGDt0\r\nX2gD9MfvkAPPIQ7e4Z2WOtbRpQG+LkcIKSzD24xFY/t8WGPYynVMR1j6/ae9\r\nENlI5KdmXJxARM8YZtuLVQpCIY9wRPMT+NIO+NGuXPWCaTrep7P+N8lAJ796\r\nHMc5TuD58xumQGkWdbRQXlYJuzZcaqezXvU=\r\n=RpCq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"956fcebfb7e005f77a2776c917c0302ad84ca93c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.185","@apollosproject/apollo-server-env-mock":"^2.46.185"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.185_1648704302964_0.40467368200469434","host":"s3://npm-registry-packages"}},"2.46.186":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.186","_id":"@apollosproject/data-connector-onesignal@2.46.186","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"08eb591834285d310ea025e487a8c5a4b0257ece","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.186.tgz","fileCount":9,"integrity":"sha512-F0/MElyGm0/3u+PmIHrzGLYE+WeEbJcqfDKqjtRn/y0c4U6ndIeV2PDgthmP4V737k5x7LEGKyBS8ZZKZZq37w==","signatures":[{"sig":"MEUCIQDwUtzD0AxXBEFqr51wF64waPjej5WuDeFsbkJjKk0FAwIgM7r0bhkV5HCEGhhXhH+4MIwOeXQqBivQsxaofjet0qM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86226,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTvSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqR5g//fzrjDebK3hbBcBUWiCbxd7/xWjw6tq/NkeP9CVIF3Z7awEPj\r\nxE2mjtyW9SXm18qnAierY1jGGyHMFwnZjhXLgNxc/oCoNp1VVYjO5jAyAy51\r\nNX1RPY6VA5mfz18muT7u7KlCdop/5btMmPXPNHwLSQ+nBqegjLI+lJIoUbHt\r\n1nV3INiqTm5wKA1iIymJRjkcZih7O20+TurfY6pln1r+Sc/Q9uryYBvDVQtD\r\nc4ub4veydOLZEpe62GKuoh+h0DTad0QaLXzWbZXDPOrDC25/stmorUtro0ad\r\nfL2OIKUqzr8ToyVnxHujdJha/QF7z5tz7/6Fs4qbpTKyFFuE48CYHXl8O0WD\r\nq1CngBtGm8Ew+8nf+BA/hViRGCPL32bolfvoFV9gNaNNDYtOlrdOPTmtxMpO\r\nOOhWz2IPOHJSH6FSZ27mWRWeVrpXDhaq4F6e+XA5anfkH7YoI51SRUsPqsvT\r\n1DUOvI7MW86Pm60Y1qmOCx8A7sYlCPj4KtnypSsCBmmfcU24SWRtxn/kigdO\r\noJU0MmOyH+xL1ucWSRwm7PRUNZu2RRSt27aVwntrE1GINDA09fCPwVGjfX4g\r\nh1i+fPaefQy1LtgM75SdTWyuQxsaD2UAw5y9Da09xGXBSKydOl+Ov4z/KXBr\r\nsFHNR63l57kraldLyeDsbmFLcPq0u9tVWMI=\r\n=daJC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"0fc857e7c10d9c3adc2faf0d1cbd6bd9672cce8c","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.186","@apollosproject/apollo-server-env-mock":"^2.46.186"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.186_1648704466269_0.6801087225812021","host":"s3://npm-registry-packages"}},"2.46.187":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.187","_id":"@apollosproject/data-connector-onesignal@2.46.187","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"2381344feaea19a98b462847ea23f177552f66b6","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.187.tgz","fileCount":9,"integrity":"sha512-Ocg5i0XRV8TUY/7hkRVHyjhL9SH+4JkG98BjaIwIpLy96u3q4B7n/3H4JlCZbKSdHvBkF/jofbsquhCBUYAD/w==","signatures":[{"sig":"MEQCIFJN/eFns1uMUJ3tOaWxZkn51tHJS8V5I8EtcgdK8Dl0AiAtS3s5C2lUKw4XKtoXYW6P/yAfBz/JvbswDADNm415EQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRTyxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqN6g/9FfVUAtns2HoF6aOeZc7QhZSaqoUbi6w1/uym0SMQFwWTU+b4\r\nah+C7rWr0YIsMBpxrjjc8UWR+u8VEN8BBRV1SoAn60qmUjBpYUk2dBzlMq9b\r\nN7EqGBI9KXUbblB/kzg0sOw6Axg8yXLUc9OmdPflFm8luZ7fJcsj25SIwpwH\r\nAFaEOlLFFq+Zhbi9s2ZfznvVYF1qeVGakHQVatl6RSQon4uF8cA9IQfUwlFl\r\nvfOG9w/6KY3Jx1yvlQXJC7qpoXxtII39f3TFCY+ap6pgjSN5ze2UeXIiK67j\r\nXyJ3N16aGD6L3oGpmjxYYVz6gajKgd+PNJzwHvKqBLrcfrehPupdH7jSw7Rl\r\ngIXPa/sVeRBK0PgYU0fcj4cBC8l777lW4TdKatDfiRu07brtpep/aQCNP7gN\r\nC4sfrLDozngQ9xuDuK2mFAa5gfG0Rab5VM28jPFIFlF0Xv/y5zIWFkCMp3hY\r\nzp/sJXgVoEGzg4YaSf7ZMkpponOc9NuQnNPIT6MPTRh6HeoB3KoMZ9/jyO9z\r\naTxNUcx63Kf6sEfBTJcqiuuYTZfUYLMGGGmsMXIT8klxh9m/NCa2r+HdbYJS\r\nogUqWOUOFr+1Y+LOM2XZAEfsr8Rue/O6rWjK/+lQNooDi6VixKJ4+GUBe0yq\r\nwgnJ14bbtncQF0Z0F+7z4zuzTM4WV5xZAPw=\r\n=Fdpb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d5ca2db73809ce3ce4694ede8be15082155277c7","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.187","@apollosproject/apollo-server-env-mock":"^2.46.187"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.187_1648704689334_0.3148946384144973","host":"s3://npm-registry-packages"}},"2.46.188":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.188","_id":"@apollosproject/data-connector-onesignal@2.46.188","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"68ca5c3d3eedefc7760e00d78363a2788841ce8b","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.188.tgz","fileCount":9,"integrity":"sha512-nHENO35d8qhxpuV5qh6j19qZ7y83vxSR+t02Q0flY0t8zIPA6N3yLm02jfrR9fr/iPKyPV4AyzprPRTuSuaE/w==","signatures":[{"sig":"MEUCIF+t+E0qt/6IUUe0+CG5UsyrqkwNffV2fYwCQYNl+xbwAiEAvho4DSdU/bCoWmWvS80g5x69aVEsIWtZnDh6cWN9oBk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86612,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRT1HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4iw/+PZBOD461tHoF8YSUUjUNFJODm9mP0mKVNuN39TgHLVj5aCOI\r\nJVu5lhM5Ml9veYrijy4dN0j7TWtzUfZCcBEDy6E4s6z3S8wMDNHOylv8Db8a\r\nS771xm4wiB18TvsImSs8ePRs8/dvLaKOW23QO9u/nsIn4/iedYAO/qe57rUG\r\n8FNOqNy9DJMPvgz36/YRSpO+lIRM159iVj266xIgaHSO6ADy6biPWrluAEdG\r\nmBwwUsuicReCuvGRQqJrzVMh3IxOKoqcGyQDAHTYaupDvrnfIS3eWGAHfukU\r\nHBlq+aGyY8CZ4Ddk3tGMcA7Qox3zWkNN9JuNwc4Ie6TgZDTw+v8153ebsWbI\r\nJ0NucgN1VJyXKm4oAYHCbJwnp9GyRKS8TFT1odUQH41TWJ40C7zgWL7Dap/L\r\nQ9e9AJoU0XvxP7m/rMOOCY54vXqK+BaN9H9qJs8FjaSLB4egZtiy6FUjxAvE\r\n1BZik6XG/UNHaEO+oeghzD3RsNNu0ci+z0RiMeuZf+FT/2BjWRBVcaN4I2D9\r\n/yHQ/ZSQ60MfqWzyqcw8Uxj19nN3AwpFqRs/W+fezjLTyhoiCJViB0PoNSrB\r\nde1J6b1TAE8Lb9WgIIYv+Ls62Hq1Wm2WesuZ3RPoKpmaJvn4/MJ0X9e7WgZi\r\nGdSobnZRBFlqvH42wI/E0BPzSN3TA4HFLT4=\r\n=pg5q\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"0fb0bbaabf13e3d0a708ca953b9b645be10cb72b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.188","@apollosproject/apollo-server-env-mock":"^2.46.188"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.188_1648704839358_0.3521339639534333","host":"s3://npm-registry-packages"}},"2.46.189":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.189","_id":"@apollosproject/data-connector-onesignal@2.46.189","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"1621ba57893b1c71d5b967d26a0f6b26c417f954","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.189.tgz","fileCount":9,"integrity":"sha512-jkj1mbEe7nD0ozihWoP78vrCfMPLcNflohqCtzXqNN6uNk1fjzbU00/h+dsLX9ideV2u/VarX4IYoljvtgkywA==","signatures":[{"sig":"MEQCIHyUlB1hWUTN3UBMVsngvmvyWy/QZYk73r/BYxrEfnx6AiA55zzX7fQ8lkTZfIIEvNUp717sSGApbLwpcQUcEOLl7g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86805,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRT33ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJ+Q/+IxSkjYlBov45i9PonM3H9f0afXS5b4Nh4YiXRfIcFvKAYfWL\r\nQmzKd9BLQHhnTMtizM/WO+jCGQqNLs0KAha+EHMxjn9SORvAxhuxf62/VeLs\r\nAH2H94ENA7G4PX/E0WYf2jUcuPg6+7Ok0ubk6+S9vRLRjbocQih6EmCy5d6c\r\nF1TvucvjdkR6tBfGZyejlt9/s/8DKpWI554UCwxVnMcCa6PcZxzrmwCZXjgV\r\n6rY2501RjbfJQ+SfrwrcuuIiXBA6ykpEZYjta8wMqix+hXWk9i6j3eU4obdE\r\nZOtuIAafFMKsBCbK2xoefV/h00NAbYHxLmR2W7G4YaLJs0nuHE62NNbjTgcJ\r\nn/12XmgKYt6/q78hXLQuCc6SvRuBXRImvkE1kqgjbfY0AvtABfPlOun++UH1\r\n0+Xug0SeRKSE3ZbvHItGaCJzDcRt7tuPcgl3cGcImYrz2GEyku5XKhNWw9p3\r\n0QToxzaAPHL187HBi5Bo5B0aOGLVjIvs5uAKQXhxh1rss4JrFqvVaRaEhmBi\r\n1Bep0CgFTZLcYtXEbq9D5eWYw2CGrexynQS4Cw5dRJMWXO4pil1Uneepl/rM\r\nWZtYbwB72RnQuhsWNxWNnlUaNxFTI10WGTlkFK2qEjyrQEUyoyG5/k7akRJi\r\nhs2stqq/qYJ6mCN2OPzKJszU1eHDwT9tYbQ=\r\n=REQp\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"1835e8ccfe1737104e2d35e2a2147086e8582a08","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.189","@apollosproject/apollo-server-env-mock":"^2.46.189"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.189_1648705015655_0.7840568982179572","host":"s3://npm-registry-packages"}},"2.46.190":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.190","_id":"@apollosproject/data-connector-onesignal@2.46.190","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ecf1229982baa044ac0e01bab5a06c227ae2ed92","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.190.tgz","fileCount":9,"integrity":"sha512-BL4NSoBVNMDoEhBQwV9XeZAaz6QlRoPTxPf95OkpEngRP2UhiwMm3QJfJGfza5v+0VyEbdl2/ZxdtebyHVZeXA==","signatures":[{"sig":"MEUCIQC6qTFnVSP0FyQGl7pvvpZWMqUwOkLzOvltszesMcHUbwIgOTkymBAxsOPafzbYcIXGXHYXLxNeGwZQ9SjmdjfQZWE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRT6iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWWg/6A0rTPVk0x1Tkuyn0WxIGVl8snb8mU6cZUfaolTy9PhflunEs\r\nFEYONumNuBz6O9xhEM3lDeF2/+4Zushyt8jS7IkHE/Xvk7/brmtiz1bnufp2\r\nxeCdet82B40MtIZzoHD8rnp0UExFiB98jBv53/7VmlI7OtHZLwjXCWclM5X3\r\nkAkAjyY7vmF5JIQfwAKM7zk6SyCkba7dymLnBpWSP/dH+xR7+YYhtub7qxym\r\nK3uGyc+D+4RW/07QxiFH/QiAWs0Ws1oxnzwy4dFW59aq6lZbWP2BPdb1hbZ6\r\n4MwYp/k+btOXCBiQRY3x8/o1wiHwbyU9QGs8rpueDJgJVNHsS5SjzruGIylA\r\nZFxTLfmqS7zqEHjPSnhdTHOtfyGcLchO1V1LOWdPsuVOwpRO3b1IxPjSkq6C\r\n2hI/H5xQU0z5g81sxRcfszekWhpkVrV6SADUmJNGsGsNqjdjrRGxbVC0UkBs\r\n4Q8BCbEkwbbdIjU/Yi+D3mPFki/PjqpqE0MTJjQTPjHtZlEoT4fL13m9SsYP\r\nKGmejpGOgfr/1aDOjvnoTlUlkrVF8wHhJ6ej9LABjhIdltKcDDe9I/p7uulC\r\nZwfiV4HTQOuDE1bGFbX1T7CUYpJpZWIPlBjaecdn6ECDt8aGk5dDC65Idf4I\r\nS5GA1+ifvHFWF34MsuwG6iquqwce/PwMcSY=\r\n=C4WM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"019d5496d7370a150bd54d7e25a89f1b1b64d61b","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.190","@apollosproject/apollo-server-env-mock":"^2.46.190"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.190_1648705186297_0.6482249107509956","host":"s3://npm-registry-packages"}},"2.46.191":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.191","_id":"@apollosproject/data-connector-onesignal@2.46.191","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"41ffa83cd0725c2b326eddb0bc485048b99b411f","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.191.tgz","fileCount":9,"integrity":"sha512-I/bAdWhCoOS4RfCxLxami58e7s3V+lu86+XKvXrkZv4yc3G6M+EkR3uT52LJdzgcCLUsJm8qjE1IIFbYPH7UDQ==","signatures":[{"sig":"MEQCIDCrgHUpExMWM0BBzBYhYL6p21VEc+PUnrtjinRZ6V7lAiBNnx9nAGQE7EPwINz91MyaVJLrZRb2SbRMbF3c5MuCXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87191,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRT89ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+MBAApJ72vVbPYDq++4SfWUGaeF1ADdSccUY0vt9TRfdp1oJMVu3a\r\nZJdzlHBtLerzKCj2dc8Wq/IyRItHC195ONe/YqY9xm/Sq+g8l/yLHQWaBZQo\r\nW9+5rlMotMbtYvVM304q51DjaLfCh6RWWB/OzTpOOFw/Gqbzwe6nvcay98Bf\r\nLdi9a8QovOsrMbTxkl1WXrIHmzHCQlM5oAu8znNu7ycmvTXk32JqB+mvWLRN\r\nfU9wVT20yN3wSCsxAn6VP74IzRlVChUbqNCIxE99uN+N4YnXysxwh7lm4jel\r\nESlrIT+A2yjqsVRCsDnPwLbXRasqujKvRAYwyBGaAyqRsmwip7yAzOMPK9K9\r\njGRw2eRVaJsXbHWQ/ZnGFIml45iWJ9N1NgcRihoTDKCpJcbwD2lcEh3HuhM0\r\nBHmwE4jZKoyVjyOee2MhqFJD2G1Jng6uXEPKbHARYVtWiI6swjs1OYsng11L\r\n6mQxv4cC49M8DyOWEUoCwILUO7mboTSPvnz1rQcgKhQmCsJSfqYWOtgpzM+u\r\nJWuUU9rVIlWfTUQqZ1BK472TqD5z5EeqemNWCOApquoQBl1lNaJoCO485iPT\r\nrg9MpwYeJnkuTsGuJlfgcN7y0I+f9HPibkfaks0NYUsrXdLSOLz1UlF9AtJF\r\nX5YykiGEOjuDqrLiNFDpAexMoPXTfxntvKE=\r\n=DfUu\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8324b843464e04cd7cd545a37cb6383457a2660f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.191","@apollosproject/apollo-server-env-mock":"^2.46.191"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.191_1648705340917_0.23587829191139065","host":"s3://npm-registry-packages"}},"2.46.192":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.192","_id":"@apollosproject/data-connector-onesignal@2.46.192","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"a9c6a0f04a3a076d1464b0ea04d769b179de2939","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.192.tgz","fileCount":9,"integrity":"sha512-3cuONXlGguosiZBOhCcOKgljv3PasZrHhvFE/TmsPt919jBvRSv1/423Zw+3u0ob+Wu0uoLu8w4phfv2tedjHQ==","signatures":[{"sig":"MEUCIGz3QUA3SvkHiXDjlJFLhT/RfJEn17VBmaBUjXkQLna7AiEAyt/zTxFjeFU4iYzTX/iyKFKzyHM1w80jEthDlWQ1S1g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRT/gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQ2g/+PoSGsnbTv2y2LjhK1goQFWq6L9lGL8GhA2aqI7QDb0dhSq/2\r\nJu5nFMvQIBChJC2jxU6J6ckeQdUzfkd39aREfybVed03p0IMYHmrZN4mcy9y\r\ncD/MXm16RDJFXmTV5fZuvcYP/1dR/DzxKLL87BB2qsVVBrVe15j5pIy5GHn2\r\nhegXEQ2q6RtXXIr7myD1yL85mXQwQ9nIGyM6KBXkMiW6w1EDzKmWffaZiwlr\r\nmNII2IripaN9F5vW5YTdmVwmzPDVxsL5m1yEz895aswF55qYQvxuHXmweyN/\r\nUCAgUdOUL6diz8JmMRDlwpR6e/gYAkVP6QbTJUT8YFpArqxUR4cuyUcIKaiA\r\nAkP8+GDCQ4A7Dn/H8bG5bzauABVq+I8lkdim9ueqUmaY1JTXlOCGGWU2zLOB\r\nc1CYDJJGxncHUdq4n01MoVl7D1EgMBu3QXANJLZ8YZdqmJ5FLm0/IidSIf2/\r\n1KaGkANEsQnplmuGg9bZUCMBhfuGXgRrN7+SUg1l9NwT9wyvKmxEgT2edlHU\r\nza3mME+WzMgAmky+JLeWChUJE/Llm9TFegpgAW4ZJepSXWvUnPKhEVOJjru8\r\ncRm5Xb4dN5Mv9i/bjJXJ7Oh8vr/sn27CrkYt10Ok6K+PsN6qI0cGBwYVyVg6\r\nrXBNV9ljA2kQoGIjoh+jzc5lZ4Abw+hcj4s=\r\n=AVVl\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"2d17456c3068820f95329c774a16a033a0fc7aac","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.192","@apollosproject/apollo-server-env-mock":"^2.46.192"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.192_1648705504491_0.9289369997443779","host":"s3://npm-registry-packages"}},"2.46.193":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.193","_id":"@apollosproject/data-connector-onesignal@2.46.193","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eb40ea8066bd76bfe474f722ba341cec66c7b36e","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.193.tgz","fileCount":9,"integrity":"sha512-T3Sqwbmrfk6fi6aHw9x20Jl+QR4PS7csoOLeff50o6qW5mAuMVIy5d42Ab8P+xIs5WlJaud64pYrLzVeWDVrXQ==","signatures":[{"sig":"MEYCIQCOWBL8e3AC/rTbD09P4maghiQIvVEG765WCu3uxzFiuwIhAItZTvEw3hJRaLR2ckkDPuLBb2tGscbgjQnmuq+4UFuk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRUDPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFqxAAi/jT20GF3NQwGRCo0onlI0Zb+QuNyd19VKo2b55W/5qxNEkE\r\nThXeLLHHSLrOviwfA6og4WbjQGA846JH2YV0oyEsNDTKuUATmNFOJZj5Hj7y\r\natpPudoA7dQuxJNis0BPXHxxvrp4go6exX7LW45EmfEHUSleu8YbZAbN1F1p\r\n7wInHs5kn+zU8xRmMeyLIogxO+qCkP03yM7+kcOgVqVQpSakStjQ2B8ZqW//\r\nNEh+CRfuNb48Bz9hdKHS4pGiEZu/CSZN6wB2D6+LGUQUjLm6tHBVqVQ/eyik\r\nVra2mAQ1pj8IciBCv4Zf9R7EIfRWhmuydoh/84L14Xo4ZA8q1Fb0UOe5Lpo7\r\nTbMy6CQTtY/eqSiYSvmVjISnuZP4KwcWVz0YEN0STX1ReyZ4FCHWXwqf0yg5\r\nPAuMCXA8qs9j2fUjjPppH0kFwyVZal09OiiPDXcBrafazVU/zQ3VQB/iHa8c\r\nEb68jxGn14WeVfgaL/qf/r8P+5gypnWRAkuKw1g67Scdxn9vbt4Fkeyy2dho\r\naurrPGNIaTZIHV514jG+pwIFRVL0hVldwFwPk0OmKAvucVIe3dZ6bqH9cSbI\r\nisJQ/6KGPh0x9cL9g3dHQUH79a3CcGtkW8njbFNvt66n0WVHiIfFpvt4rkN7\r\nNSjwtN6w6jiWm/LY9wGeiVGT1myRcsyspCY=\r\n=1Xq9\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"b6b952bf4ab5d216596a153f2ba2f554183bf736","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.193","@apollosproject/apollo-server-env-mock":"^2.46.193"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.193_1648705743626_0.8730605308262043","host":"s3://npm-registry-packages"}},"2.46.194":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.194","_id":"@apollosproject/data-connector-onesignal@2.46.194","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"eb014d558ab6814d21dec3b775be1c0f757aaffe","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.194.tgz","fileCount":9,"integrity":"sha512-vCchQnqYLjW3+9ZxPjbz0HgcENY7ah6XCwO038xk9Crs4VsQNA6lN978tj2KWImq+leHey0O3BXQ+7azilGKOA==","signatures":[{"sig":"MEUCIQDXsJWa2lTVdvu5vFf0RswG5aJPm2QYxCUOGc4X4jxNwgIgQsh1p0b1QjLtE73ONWvK3JGpTzWt2xrBfpRtm5cn42A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRUGtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyBQ//UlcXKqC6HjJU+zlDuVKa46nQE1oygHwZ7ubT39cQ5yl5DAh8\r\nxJvhNBJdbfPmtqkot9WuXruzH8jU+QQ6jSixpQ1RK8ATUjdx50K4k9BNSOq+\r\nTzdxr0uCmeTQROpLWbMLU+AYlMGk0Zo3DC/+EjnbewnjPp3+6mC8g+vGfxOI\r\nZJTtfBrxPRicee0ezwwB5F/U+RuQAJO3B0UzdzPb0BWxyUDjB93ammC97B7i\r\n6XimUlQvmbCBg5vy28DE/JlU8PrCUbm31Z7Chih25OIAWyUR8N5e9YtA672I\r\nHWVbyEUwbBF76x+rFcTLI7xSrIlS5gQMLuwpH8UovUOEw2tdSiFcwYxlQKMm\r\nQ13tImWuce48tHbgSjwaSUMTK6NYCbfwl1+iSFyIHlTOD8rK7CYlk6CYG4wr\r\nKFXl8rupe2yiEG+acRcqdGg/mCCbmpVfULaxZRgt04f0w15mMmAExs9ZnIMw\r\nM4/2K9gEu28G2rF+u8LuS2it2rPtg7Q0idK1I7o6T0CCrLP5ys3htGp2px50\r\n3pErAY7LO/CtdZsgAmHO3SWwbd1wh6eFgMCeaANJqWHF01WDD3M9BmJeu0qM\r\nM4YPwOKZJ4rDIiOFj+zqULaYGaEkHRlGaVVOq3vVmyMnXkyudaXhVYeaVBsn\r\n9aE17fTBlzIoCK0TfrYKsGD1NicsmVr/ui8=\r\n=3KO8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"15d960e8182e5ee80ad2a9e7eae294e5f2c7efc8","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.194","@apollosproject/apollo-server-env-mock":"^2.46.194"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.194_1648705965551_0.8207677803522309","host":"s3://npm-registry-packages"}},"2.46.195":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.195","_id":"@apollosproject/data-connector-onesignal@2.46.195","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"89de51a3ecc1073496abbff88434b39a869a79d5","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.195.tgz","fileCount":9,"integrity":"sha512-lSMA6AQx3pVJ3SEuD79Bpt7XWAIa9sfsUWHHH6eFGgYsQExZu1fN2KF9P6iEOwW7vJlyGQSQek7QwFg+AqlT4w==","signatures":[{"sig":"MEQCIFDyJUu+UmyEkyr5ccO6b2fi//dVSDtf2iYQDlFzIUySAiB/X3ml8k3I2aQwYuwD3bLhTCohRoESUKMfBucE3VB/HQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRUJVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmptgw//Qv2Ucgi4YEGQnBUPU6H8tqiqNQKU71HOhvu0PY8x3aqFhntR\r\n/QK0W0fh93i0QGnO2vlDY1lcchDO2/qCHyRKKY091QmgY7DDiU7u+buzuYDL\r\n9nxWV0UWI9Ly9YKqu65LIllPaoucSdNIwWDZShjQWEwv28yzlE+Zx1RX+CQE\r\nACNDsCmzvBWnzHjt8DxGztAlg6xWNVpBIMOBauJTmuF3dvskswjJjEJRXa+z\r\nmHtZNf2tfMqAK9p0P2xYbrrukklocXNOGB/68MHcTPJ3AbycLX34AHYOjPWm\r\nZqqiyFRS/uTLI+rlwaaQuaa4kLncorasdpNZ5/kA7V9ACUG40S1IHibjLSw9\r\nOjzmOM0UG7BUmuuTxgjxZ6KFPkwFqrXwy3y++c/cBFLKUtUHa6V0OhHvv6rX\r\nM9nWv4vPr/py2yWJW76ElLzgOEVVBc0Yk3zZuURLb18N+I6d9sBksiWbJgXl\r\nfktbp2FpMch9xwM5By3uUdgW08lZMh4IBHHGDaHxHIKBNd11RLQeau5Z1dim\r\nZwpOVmMAlf0DfjLBlq+g62UHPECIr93ulfY2HA3km13V3P+VcDUfFwDVU1y3\r\n3A/28ejw3cP6zw+cxt2PzeG/plgpx1H4Tu5CYzQoqgbop3deJAPcl4NKS7dY\r\nl6RpZ6KYqGQzLohzOSqLw4uRbXL5anzc0Ng=\r\n=lmb+\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"dd119184bfcfa9a063ba8e869d65e703149b49cc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.195","@apollosproject/apollo-server-env-mock":"^2.46.195"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.195_1648706133804_0.9389450655473575","host":"s3://npm-registry-packages"}},"2.46.196":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.196","_id":"@apollosproject/data-connector-onesignal@2.46.196","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"92877ade556f9aa3b59b6b5d35b9a4e4b20760e1","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.196.tgz","fileCount":9,"integrity":"sha512-Y4JrKc0U6BWy64y+sYYO3uA4G11zMyxB7wQJSrvB9BnZ3SG6lrXNNAOQorlT//SZsRCrCuDq3Qfc/choo8OCGA==","signatures":[{"sig":"MEUCIDS/EPUdWqNrNHu3M212HAi83WlYq/uXME8kXPHpqiFxAiEAnqisMtW/r4C3trB9Bs0KFfA2eAfe6EMyxE3zvvKer+c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRUMQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqilA/9F6REIYyALbXrpSnO5xGbC5kp7QrsL2PLFpjQ+B2dRvN33StY\r\nEHwN3RsM19+NwLAD+5JtpbOfLWGgkW+q8/vdJQvo6P3m5HvnX1EDrTLIqeQt\r\n20CicvSoCchL14zHSMk+gMDCn4X/dMa1I03rj3YR0gI0QukegV1w42vmycw1\r\nrITwqgUHCwCTclT/0Y1FE3S/mbEISS7CfFfN1gyy+j9IV9erXNHWx0qVuicn\r\nvBRgrdMYR0nFnt4PK3bZAZEGxPx+jrsM5VZH+1KP3K3Ww/JS0hsVIyPjQP6V\r\nhZQiQV3Wl1yPfKJCIstLS8o+MGzM4A0HsySs5wgWFQhSqTxkXWYP9qFrLMxK\r\nFgMWVuNStmotKwTp3JzPAPA5K+4q8tTY2eRdNRwm9qMYeojm7iXBaFeEWeHx\r\n5QziUCeI4L1q0Bl7SsOJzL3kBcd7VK93ynvH+6Dhi7TGitnf/WSX1JFW0BIB\r\n0EIjIrM1pHzcr0z2xZpUUbT+4zyVbXIAz2CLsRTqlnM85hecfhdvvU956N6q\r\nLLrdeNaShKVfSMbTlJgpnPZu2WYtqTV1dtv0ibPTkqueRg4xbwnAFJ4ENZwD\r\n+rQr3KBc3Ilx+Yy4iczD0Ht0mEmKV0cQHgyXsBFqb2ylrFVdUg3Mw04aXBeP\r\nUjSiu0tfgNH+0wcalr+EqmHtEtI8s2LdFtQ=\r\n=KO1n\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d7b64afbb231f230124b1ebd32766e2ebf8fc176","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.196","@apollosproject/apollo-server-env-mock":"^2.46.196"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.196_1648706320558_0.9213314792976746","host":"s3://npm-registry-packages"}},"2.46.197":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.197","_id":"@apollosproject/data-connector-onesignal@2.46.197","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"7f78b491da405fb01c79a0807d80845194756a4c","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.197.tgz","fileCount":9,"integrity":"sha512-/fFMwlKSSxSfydDOF1RQMKUPOIMsYTL71IeK9ljPM8ACQpq3hcw8PAUHvdM+KppDDbzjN0Y0X9++7v/pUWOnew==","signatures":[{"sig":"MEQCIFvqDPjb2HGJw9j4MPRT/tNMfnes7ISulybSmDjosoOTAiBw3SiAgOje9NjhYxony9s83aYkS9xLNsTcvBDavbhuhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88349,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRUPGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqcvg/+IQRgaS/dJakcwJISq8dADuqDTvQ0qgMmgRSx4tOb24K2rfS/\r\npXogYbWDldugQ/H5AaO9J8q4XEGd78IDnN9PwwI+ypUAV71dmfoBiN0O2m/x\r\nlDbKxoewiYjV8qPRB9msYeS00/XRq2k54vX9EPUyUT0lQ3BSFsxJUFyrQuW8\r\n2/P01ZoVpA2/E6wzrMmRnhI9h4xhlRvR8xbYa2Wt6JB3dVKzqyA4DAT22Ry7\r\nzIgTUarabUXQrJGeGWTawDBsDDZPXvLRVsjkHEfLO13+nojBULXlp4I1tlIA\r\n0DU8nbushfPRQEk5sze3Q/NyLNbjUmTCsQwxRwfpY7pIiQsmv6OC8AxrGKFc\r\nYQMLSZ1VninDNSg/Cb63R89/GrSXyy8tSbA44j2lvbP/oSVJAgUhCGQQYYWC\r\nQIJyRyDg0sKCUcXCwqV+RK8tST54ugH1hAmwvdmBDNp35ARb+nQnXL4cbB/D\r\nE0X1t+RMJOLaX0jiVY5CotbmbVeLbex679enDR2gbVvIt/yG/KBYZr5p4mX5\r\njDP/GZh7tp6FaWAJZqsy0dEPmfgKUDySB+dq9j/2HNLxATTilOL7GJRX5xQp\r\n6VyG4A1xJvhAUOiXiwgnpy2vj3X7dwh1L1kwZO6u3GFIvnILQY7TculEZcpk\r\ncMPrXCEceN95xD4yKZlkffWTKFZpenRElQM=\r\n=yc8w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"17ebd7c5630f1cd8074909f74083a395cc1fda49","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.197","@apollosproject/apollo-server-env-mock":"^2.46.197"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.197_1648706502373_0.3122289333467274","host":"s3://npm-registry-packages"}},"2.46.198":{"name":"@apollosproject/data-connector-onesignal","version":"2.46.198","_id":"@apollosproject/data-connector-onesignal@2.46.198","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"fefe3507c08e88de635b089a4901f481005ed62d","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.46.198.tgz","fileCount":9,"integrity":"sha512-Kp7bGM4cQNmPx7uLDL6bQP6tJD3mODWGOCdUa8J4EkR684GTO4taHTmZu/u+/xEsYED5p5btvuQZHCT6CZHzmA==","signatures":[{"sig":"MEQCIDx9YR70KTE0fwGpT+R4Z1a9b6TRtGaGh55t2zRtWx00AiAmZbBkjV6RMPHYxIgbzNVFsIkZA36bsLBksKhT4w0U8w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiRUS9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzcA//aNmgp3jMS2XD1FUYmI23uCaeLjwRCrFVb+yTxT3eoK5vnCp2\r\nc/AOq7ORZnCJlq7IUn78tClGXvCuZ128NvLYBdFh2QSP+j23iw7wv0LPDVS8\r\nCJnxHa78y6S2zhTXdPOmlUHW7wg7zo1WRX/D//A3s9wIlxiZ0e8pVBfCdUKe\r\nbMxIWRhPpsmxAm1o78oaIRuSPaGb+7gKSi2llxGTRuCroZoR3vf1/+SrG0Ay\r\nhE58Zmi8OIH3yEXHd2zI515MdlmFdxNtNwGuTEduZ0asi0qS3r0xR2Wh/b5F\r\n80TwkCp3RcQI6nP7anC59Akl96U1IenPJFBuVFl5BepbLuTMD/mX/pfapW3H\r\nD9KP1ZQnBTwc3uRNu8S8+TG5uP87V6G09+upDFRaReTrzm61tWPn0xcgHMAa\r\nn0muU/uPGYIcDBk22KDuIFMP2ORiK+vGsmzKqlQ9Q4vpHk0nyireRVy54MRN\r\nPcPFjTngvaIVRAwFqSE5HjDyjcwOoUAGS7kaUS5IjrPw5iyPkvaQNhIntKfU\r\nlqSJXW19T38bwnZ75nJfFRthGKzmUYHuEbjqRpJUVAZZegrs3MMlzHPYskSG\r\nUbTOWVme4/W/UEJ1hvao7LLvcWrPZUgFPs+ZFdPvlBEzjfeHA4HdXMBQqn+c\r\ndwFa7D0EWiGKBSjtB0h8STBDxJEn03Dm3J4=\r\n=6Q9N\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"c601675711969aea9c21d88c5ef2c5731e044911","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.46.198","@apollosproject/apollo-server-env-mock":"^2.46.198"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.46.198_1648706749258_0.7393185426465152","host":"s3://npm-registry-packages"}},"2.47.0":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.0","_id":"@apollosproject/data-connector-onesignal@2.47.0","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"ca849c7a30742d8d11a36fc125287eb9bce687a4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.0.tgz","fileCount":9,"integrity":"sha512-WOdCqi7fuN3tHkbVrIx0KpbIyUfKXIUss2i2y2daaRxm4/F8ZqeAk48KZlqajveqnJj7rqdaPZuD4kq8elRnZg==","signatures":[{"sig":"MEUCIEqBV7WMKqlWS+W4EZMzjH+57S77mCX14SeqjcJXhLShAiEA7XiukzPI//pwSrAnx3Zv53pZi3Tfd+sUWpMljVpilc4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiS1gVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVrQ/+IXzl/9HyL5amb0lNcI5JT5owLwvv8C4pbSNNVKrYgk2BxDxs\r\nZZjgNFjrR42kiS9xt3XGOYm84X7kYijz4T1/NJeSb2MGIBK0x1uaM6ZENwlx\r\n30+JBZ6NBDsF6Jv+PTcM41zcd20ITGSk6nAUEVxnaZkg5PZdVurANCo3glC5\r\n9LEPcwejmBI8Q1f/IEzqYPXOxbvT6EjcJn5CaKHjaZ1gPkyRh7vxIxY7d1a/\r\nli03WSqvY47Ujh9Xscp/KkQBx01cFwOMIW8OO7rXWMHu+9lDBkvr6+kvg4U+\r\n9/fEY7EgjgzhnUgwtnYmhb4hvQjUHy7K/8OU3TWOIuaJmQMvK4I+/o+7uHlP\r\nuK+5OBz6cggWlfpWReCDHC0FKLrGdaCgMFPPe1FW0r6zc/MXb+7MDhsEEObW\r\nGHRGKmrE8VS9jHgiN01A6bDcGH4WNlFndk1Q8ZisGKRJwsPXZCy5GFypeLPJ\r\nI4jb6AfufmlI/l1oCMlSdq0dfC4Ni1SO7zTCjAVxERGw0vecPsIQRAqwCAZl\r\nYAGgCuPVFOQlXdv7AeZ4CQ9EL8EkeZq0WLE3fmwYLdWVOrTK2jRk1m/e22WI\r\nalU4f1MLNrjjELpTG/xoxu4li23fp+iDbXqd0pcYGiHmlw97M09cuNbHzyLR\r\nZTRL38UKHd9EwSEnvkgtrxGqg5U75zMwERw=\r\n=0q1b\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"427bd1a733a4800f308f0ae87d0b61ad2275f819","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.0","@apollosproject/apollo-server-env-mock":"^2.47.0"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.0_1649104917378_0.4870398614630027","host":"s3://npm-registry-packages"}},"2.47.1":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.1","_id":"@apollosproject/data-connector-onesignal@2.47.1","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d2f38e0625da3ca43708b234103dfd64d7e29c7a","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.1.tgz","fileCount":9,"integrity":"sha512-Bh0LWXaoLe6QtMgpeU5i8MzKFIhRAinfq6s4RDkFQ5jXXOGwhyQkShFo+89WmvpRw094PiwgvQQHIqa2T3Bx/w==","signatures":[{"sig":"MEUCIQDJ6PM8FWrDNAK9+umvx6h9a4fKiSULKrNJfZ4yKlFkWAIgZG+oaBO+Niu5PPh2I7d72ij3wFDYDYjIZhirrrLxmOw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTKWTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkgBAAoVNDgn/GJ6Ip7SgcpUAcw51xlqTcQAlzON0KGDRvdGQu9fOx\r\nyT0OsvE3L05QYZ05j55FZWp7jdJGOZemSZv1aOtvj15WPymSTALtx5inYCWP\r\nDKu0WX6dGj3+ftHsXDYTSvBuQlNEV6if6XWF7jgDio2egZxC1X4I4e0gKNP5\r\nlsiYzHCNEzzje8TdHpwTaUy0v8R5TEDCPVH8AlP/X3/Mv9wmh/xgpPk4ajgV\r\n+11RNVm3Ncm7b+QQ6Qf9zFjYvp30rxnsxD9aKAm1lVbwVsWwfYgzlwsBha9q\r\nTEFpntLjUqCa0LXMAcasVTLlXUKVaHJnJAMAL+BHGP0Klk9UbefCrqs0EFgM\r\nRb37lik8oT1+Kesz6kxdqAkGq45mlnu6IbCn4uf+BB3wE6IICaBvBvU4G9At\r\n45eRHMXFYa1cgH7Al0c4E8ALAf2xgNzUUFSGP4RP1nnqmIGePXV+KOl9eHEb\r\nCM3mDnxRCEtdDWpN/UFCLxRuJl6USguQBbdGMhl879ebggYS64CLaB220elA\r\ngW6qFGYGAZcF9nuKbQyIou4+07QGEdX9ULeEB09jGSf96HJ/zuB4Ver8jtSj\r\nlXGHZQNWKU1aw8pTA2j82FAgXL0hfzZOTqZBHanvYITruoLCH/yNbHAM135f\r\ng1rQSD0usIE//YX8JFEtVysICbEA3c9FpaA=\r\n=xNNM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"d5ca95d54444537d3f21d3f76f68859c05e7bd72","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.1","@apollosproject/apollo-server-env-mock":"^2.47.1"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.1_1649190291326_0.5923807173592297","host":"s3://npm-registry-packages"}},"2.47.2":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.2","_id":"@apollosproject/data-connector-onesignal@2.47.2","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"366ba6d0fcf5528aafd8b8a0835fa75edbc273fb","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.2.tgz","fileCount":9,"integrity":"sha512-JTQQWU4+mhfQcfVls6Eu00Y3PJ4/aupA4DnQvHj8L/WO/KPd4La/4T/uh7GITzxygKXA/ht6rOhQ5CdweGoa6g==","signatures":[{"sig":"MEYCIQDn48QvRvl0BPkgi8pByMCIdg6w0XxE3xUBMh2lBivXlwIhAM/K0OJeAC/VZtBAB5FY5sF3jYT0203Ckj2X0jP/Kvku","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89098,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVEvNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosAw//ca2Q3Kc7FD99n2Nf3G34Sid6r0dvZhqUkX2JyAmEA0ec9KW4\r\n/WRX0WVkP1QagWdhn2xMQnW+A3f7eM56cReOx+c8y7BHqxmb+rLSQxwaAfZ4\r\nvOAV0k8OpH/Ias8/4Fh60Xb8MTsuNCnPupvLiSLerh0x5uoaYDforj7e2r8I\r\nFde/GcixU9tKYDwHTURi7eLbDBc/whZYKnvCEwyfW13WuRN1eoVH/73vZm8c\r\nrVzw4l7OB4X+NRjCKL7Sw+8M8EAn9WHNJ5SjHgAaQLTMv3g6WZqbMcdfpHip\r\nOCKNpPA1KkbwIiovUU9RWNHVpB6M/PTr/qKMuzYIUro52J++hKxcRhdLW0os\r\nL9s2ZVIHR37KLfVE+Yd6b1iINHPYNdQTpf7M7xf7hcElvbz15LPCUePHw1tt\r\nGrhViGcRpBQz6NDXJhIPSdJPDR22c127cdYEvUZC8bSJZVfmH3O92kch9nq5\r\nmZsJTdFKgGeYe95/t3SOP9zHv67y33h5eBkifIDeQyxHI51Z/tbRmx9AliQD\r\nmXl+B6axzvqs9ZuXtFpBiN7vMw4vLbge2CdqPhJQAjLAB3tOiWqSnXR6y5kt\r\nNwjKVPK0gef0PSTu6vKvlbwkqJPXqJ9BHVXiMGj5A30r/BXCJ1bP6F6Ezl4V\r\nrXd/neW9042f5XpCTN6UI4xEHX5dsb0X/N0=\r\n=HkIq\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"e4978d07bb64614660bd0ba39ae4eb4fc4dce289","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.2","@apollosproject/apollo-server-env-mock":"^2.47.2"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.2_1649691596815_0.38473857790247545","host":"s3://npm-registry-packages"}},"2.47.3":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.3","_id":"@apollosproject/data-connector-onesignal@2.47.3","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6975b7de8b45b5ede2040c3213548ccf60205bec","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.3.tgz","fileCount":9,"integrity":"sha512-FDb0u+psSFRyoe4qHqgk2Is7Wp36tUOBnUpAkjncdE1LAIHBBaxVBy9HxOPXkhDDLLPqrpv4dS2Z6SaG77K6FA==","signatures":[{"sig":"MEUCIE38Jd3MxoB72UPTjrySH5Q2uL0hNi6dKAWG4eiy/HqjAiEA94cdtzmt5k5b6xYNoyaKwTdtspUodfh5xDVYFglH2v8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifAA8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqC4xAAmh+Iw3+P52wIvorFu1RXgCa+qYXiDzKGp/3+ZnstSY+G0hhP\r\nkPfdmHy8S8IfHdQmqjEy4tGxUCA2zrpIDuvV/edTImI/2bHZpQx9KUUyLn9+\r\ni+oZNnrjJ2FoljbRhDWekl6OGofBXtYHiSOV69H85nly1BCsZSXa1Q/L/7/D\r\noPiLoul3sjyHfKf9+cZkgtmH2S12DX15TdPoplpyU6e4Non9XFqAUC/B7G+w\r\ngDIyzmCY/ueTjvZSI8Tr6Fl4bGwLEhvUNot/fe7CktMe4OGwG4tPPw/lfnVw\r\nSad7LsU0fpMFzQSfo8LDNR5+qaaI/w55GDBnfLpxEY/M++HbAEc7DDcyzEnm\r\nCf3km08cp3ag+HPC5NlhDTGbCnuj0bU6najiPNhIZyEuvie3dNLoGdD+ZVjl\r\nahmzji31qkW8iNsZnMmImlkkuk/SV78rgDtHmxPKMxyo1PsjH/aYcXRfSvVU\r\nM9eOwA3w7hVqlscKZfrfLEAc1piKzQ7e3qTAZVWdjZ2PWRHtQJxQPbshoypC\r\nvStx0//aEXIl9fLMUwtrZglPlTrtbYGY/XPO5NqeLoLkNt10NrCxp5ufTtc1\r\ntO8Je84ad7A9DnxjmxAzeqw78Ik000DbFqGj9CsEs9+i/wmq0wC02L/Y6hHO\r\nfOS+TqIv9wRbXEsVcTfMCfR1fAN4OsvjxPc=\r\n=b5gW\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"fc237fc60a4636ab94dc6fb9cdf03eeef1371014","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.1+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.3","@apollosproject/apollo-server-env-mock":"^2.47.3"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.3_1652293692716_0.26851086957382186","host":"s3://npm-registry-packages"}},"2.47.4":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.4","_id":"@apollosproject/data-connector-onesignal@2.47.4","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"d4712905fb2d126a9942e39452cb52c3fac4d8b4","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.4.tgz","fileCount":9,"integrity":"sha512-v7sNWzOeIoCWySlmVW42+n16FYLxmGmQjNKlGL0wl3H+1TJxEtif6j7odekMonH44qG5+x/BZmJSr6eynTX6ig==","signatures":[{"sig":"MEYCIQDtSGKERR5uutn4R176CfYFXHxN6wghsj+rPuSSn07eegIhAMJsyyJRY95fvyyn8Gvdk3OZPCrfuIN72QaahtLbfWnk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioUs+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrotA/+LaZZozitwS2gFepW/9ozzofHDjDwQdfB4HgpYmakCuzkOJYg\r\ntMLpf1QJiiqGINTau98A+jfYOaI5Pe7hPXbMESE9FanM1XuidZXcK0F1U3CJ\r\nEORrsPifprBQYW5NwhVm+0jCnhBhF+MwEjEvjPR4qp/LFHFELgrY286OK436\r\nQ0uuEXnlni8GcLJ7oGgJQf7ELAn6DW/EbZmLzcmFV7zZRlOtDDOrYjRvCII+\r\n1MYT84+R0KDv/UIH7TEcLkXI1SJn0d0WiZGD+iMNV3IjDNkJOQLiLF2Bz71g\r\nXB/TF3UORt44EnVNh3K6mdnWYTKCCtwFyhhGxLIPrr+3pVgyc6DF8dFpdCql\r\n6V5S0Fmqc5h2LKDL3PRg8WBQhi4RTAVM4C9F0X34Il6o//dFVOo7n+gjNPmQ\r\ngBKyKobM1mrCM7DanElguh/5uGR8/d2ad0elKFiOLV00WCiOW9osRyvXkyLZ\r\nSJoAJpSm6DuDVuygprDVELZunNUp8OderCk+uTvb2yBA4vErxg1QY+LM3Rpj\r\nYfppaTRPp7zwV+jOKrR01nG0Ude9LMFqXe3OJFsSKID9frIlo2PjqInyv5HG\r\nzXKyYKAOFMBHUEHKtKTkjTOTDukoxTgK3lv3zrgBDVu1JlQi6WDV8AnQvK+J\r\neid3BhOambedYDJUe8vDMy6nD8usq/LnbXI=\r\n=0sOg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6b5320dd89d0a1a28538717c369f7b7cc6e8dfee","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.3","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.4","@apollosproject/apollo-server-env-mock":"^2.47.4"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.4_1654737726626_0.43453891462079786","host":"s3://npm-registry-packages"}},"2.47.5":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.5","_id":"@apollosproject/data-connector-onesignal@2.47.5","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"3ca2b7534c933c51214ba52ee5a1ac326cdd3034","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.5.tgz","fileCount":9,"integrity":"sha512-Omwjy9GZGmiwhUmb576reT/CStmmJVSH1H7GhlyeHyQ08vof5fqC2Nmf/vYQrT4sB4Dv+HDu56xoMc96VeLzIA==","signatures":[{"sig":"MEUCIBzBdEJoYpQFlL/baQiPkab4H6OOZGxlDP/Ll2zWlSNLAiEA3BWt2EhXRBVCCpjFvCHAUMqW2uRP1jsHFHSnGS5rM98=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJio369ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrdQ/+PlsenRcbuhRtjK0YGsPigVGaRqACqe7dhsq5QUscpbg/ClS7\r\nWkmog35W8hBBH6+0y567aXkKpyGA6g+CxBRQ0N8Yf5aczDuVBnIDR4ve88yF\r\ntppT7yfBtbvEW4Can+PWnYYGn8E83Nc0PI9i2+1ozsAGZTcZVJRXDx8poJKj\r\nMAXzOu/ASCGAS5X8C3n01JdV59dap8s8vsnK7kzF1UO04mnk5KbUS4lvEf2l\r\nAOTVHhtRVu6YkSnmW330AyCNK1v4kzFOaw70L/2kG4QWCkcyk4o3e+tp10l3\r\nivcI039376Ogcyl1k374Sm5YwUjAWTCvYaDPyXhFOkIJhJiDmiHo1A8Dz3fQ\r\nfvuBaBIWRxgUgOJYHbVVz7KitbQqvF3POy60Zb+C3HEk9MmA1CK3QQYMtDMh\r\nN1z3KCMrfWBGBulRdRXySoILYlGkbf9miooVnyrhNy6VlwkwJn+b8GhdhDKC\r\nKPFV7CJhx18CaWx6gpNEeepnE+N20w6IQcyr6N/Gw9l8aUo9pGhWmVC0fDmK\r\nkQK90kbKKxXKaq4ssgedxZKxa/K72Kurhe+QWI+HGQQKK28Cy88gmLkbNsFh\r\nxZm5Q0fUg60r0Qni1vgTY1rkiDoUlQzmqMb5gYVbB+rHXfnl37ATvvkEoU5N\r\n+8j+tHjYEqqI0GGmuxNko03/DIqgTO3zQ+E=\r\n=jYc8\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"6e3aac319270138bcc2e1ac5b0f0a866c16ab62f","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.3","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.5","@apollosproject/apollo-server-env-mock":"^2.47.5"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.5_1654881981557_0.1911613552021607","host":"s3://npm-registry-packages"}},"2.47.6":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.6","_id":"@apollosproject/data-connector-onesignal@2.47.6","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"6345dcf6fe0f14c2d5b3eed3a56fcac35ed3d856","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.6.tgz","fileCount":9,"integrity":"sha512-iG/7K1+ppDJtBW8SdNAKqdpHkQ8KZ+8gfS4fhgavAl2dCEaWt+HVHYU+G8JNSCAu7+WmCKgCPhFxVwQvfls3BQ==","signatures":[{"sig":"MEYCIQC/oDK3uX/IfEm//zLpFO3Yc+AKfWTkU9ZfH2v/APFzxgIhAOy7UAT2qGGVzoveqrf2xtvZJsQSKCtVD4XsnhS30WUM","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":89846,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixuVhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDPg/9Gx7iAT4+QrcP2o7APfOd+Cqi6MrZqL+eoIODA6CKfKiptIKY\r\nOv69d1bCb0ur1Yb2OBEh/KjpZKhw3yJOEc8wmsjYyoqB8aUbJ3+OUentvjZe\r\nEjSC7NkisTQS11vWuxEobt5TvMAHr1+ovbwk/mXbsFoFIqYTAKUv6gxSyzuv\r\n2RoWzZ+G5ddiS9GwyaAbQdsMw7T+Vt5OGXhb1owDbqnGNb2ah48lXqiKIAxZ\r\nSUqkILsyqKUmPFFK4B5joBaQ6djilMh1pwnjy0xbluQKgUWKvtXpFnjGvwXl\r\nU9BVFl5m7kivQDKjNATzwB437uSwsTDcsKtEFGBNnl90bjxsu2wE8NnQcDvg\r\nZA2wb6I1AJX76WNfHoRLumlSv6TB0Et51XFTcgI/+KBBDXWoxHd4lKcxQ6Yr\r\njVWvUhazpLGYLZG43x3iBg93a1J3jLbQa24G4/sMmW3WpK/GaaZl0ULNub0k\r\nWFt7BIOybaCTNbQgWuNZ8LibRqWdjiU6eTjI1JRZWtmPv3mTfdTohq8zch3P\r\nU6wmKRpmrxdSQVmmxeKm2IZM8gk2q27uuCyXn3WZF7qs3M0Y5EEjF4iC1JYE\r\nv9yTRGAaAF4Hqj5d9ItuI6o3IeUpNiaVq03I3b7JWm4iDLuwL+qB6gnzjhWD\r\nen0w+LfD4UYL4S6CPVdvw/jvQ9stNL39dl8=\r\n=Ytll\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a003460491c6701bc0c5180dc27f0fe27a37c9ce","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.19.3","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.6","@apollosproject/apollo-server-env-mock":"^2.47.6"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.6_1657202017757_0.9917977103668203","host":"s3://npm-registry-packages"}},"2.47.7":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.7","_id":"@apollosproject/data-connector-onesignal@2.47.7","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"883537b99a126a848d20fd128879fad0b401ff05","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.7.tgz","fileCount":9,"integrity":"sha512-KFw6E+k9qB+wiMovySOuhPetayEN2QrxGbKwO7CCmLnndW5UinmnzLhOdNy1mFCRifEbsJkAzwW1xkI/YV2sSg==","signatures":[{"sig":"MEUCIQDo9aP0qH3fedUl3AXAxvje3uDmAJJk2udcchyd3aid8QIgcZSzNn09x1Fq947FX/0uaHXDVpqWy8fM+KI1+eLr9h8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90033,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3/uiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+vA/+OlpkMBa6fGVUwL8Q6KQYkw4sVDYP0wG9eEgBzMWmnMc8CUDQ\r\n84Q54dxHGRjCYAsK12EkktdOppCMZnDlZcjaCCl5HcqcPHE/VQKULcgUSNUH\r\npBzsDEna5CgVZFdG/jaUgARvcB1WOv02lLiHJsd35ePqXM8zwBY0hWfslzh4\r\nHm6AdDZDrI7nGXI0sD0imdWR1UF2ankYzlAKoVC5IHdSdwOc1kvrPMDy1/Dq\r\n2Df/dPCRt/S6GvnnRpaWX67gI2W0ZNELGvhWaDl+J8P4LAoW/oHOh5UhbO5E\r\nb/LIQBkRUclo4eKXEOhwjlkzTukwdP+l2DgIWCY3IFEboI01ZpKhirsP7J+H\r\nM9vZfO/sk8TbeuMNFt989/dl86TJWdvd8CSwE2suZ/zvE8TrrhaEnCoaLShs\r\nqeJTfpkNs49GRV+Vbq66Poihk1MyJvGW2XpX327FBekhAlr0eKlDX4hlGSKq\r\nXRejHdBhHSfRjZ0xFGIJ8wEzHJuK3AYgITQKhU56kSDJPUq+dOl4lXoR04xf\r\nNFqEDAw63X312gVK8Orf6XhzVPWMByXVrrImbSf51bZeDZXVLQImKQGmNFOf\r\nS68yf6cchVUWb7PDpR/cTMCltf9vzpPnip/rrWcWubYEvA9FrO5WomWOH3/r\r\nEm13o0DgYYLFzQ2qzGQaTmJPl32J1jCVJwA=\r\n=NRor\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"8d384fc93c44177d51a39a1d7150534180c0ef5d","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"didevshop","email":"npm@differential.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"14.20.0","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.7","@apollosproject/apollo-server-env-mock":"^2.47.7"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.7_1658846114041_0.21091390619870864","host":"s3://npm-registry-packages"}},"2.47.9":{"name":"@apollosproject/data-connector-onesignal","version":"2.47.9","_id":"@apollosproject/data-connector-onesignal@2.47.9","maintainers":[{"name":"yungvincenzo","email":"vince@classyh.at"},{"name":"conrad_vanl","email":"hi@convan.me"},{"name":"redreceipt","email":"micneeley14@gmail.com"},{"name":"didevshop","email":"npm@differential.com"}],"homepage":"https://github.com/apollosproject/apollos-apps#readme","bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"dist":{"shasum":"60c53dc679779a56ff6a4cb1db6326266a4c5147","tarball":"https://registry.npmjs.org/@apollosproject/data-connector-onesignal/-/data-connector-onesignal-2.47.9.tgz","fileCount":9,"integrity":"sha512-SoYFFQBcpD+tSqdZ8KWFHNFqqRZuN71qFtUdf6Xw0ft7Ty78JxUo0qyVoLt6Gt25CT/YaQg7oaNfxA2bOdCoeQ==","signatures":[{"sig":"MEYCIQDvz+i8rIxA8e1duTZuwRt0aUHpa9zgJOXNYtS+Z4iUEgIhAIbTRaFbZpS+RaIIS7gBmwJpzEUZqP/H+nQ1owsVZUtr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":90407,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLGlNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCQxAAnbxkCkNa1pmtctSwTAxMsruDq0+F69DOO13zpSHyoFJxclDu\r\n3rfNfh11Wi4P1Ow23udgo+evewPrlfzPJqUL/6Di+2tn6+QrXRPErtFpnqBA\r\nScpaxc3sE/tME/d3JD34V2lbTkJBV//vL8gBYFkg+rmpHE65BxirvANWK20N\r\nDBcJ1/6HCcxD8nQ8DMzkD+gMfiZjxPFsnp00VS7Gm8kdlA6iUy/en40+GLQa\r\nUgKhOMrCX8w779C9wH/4gxoAFsrO8NkKwpxv0g24GX8SRApcyhtVixpF3xyT\r\nosMBjOZsxM+bja7v5t2AkBp+71O+MVgRm1b6IIH6gMgfY2gcvwCgXgM1uGxB\r\njU0igZ/vhpx1bRWEvpGi+4KGlgDGw1/ZSaO2e7ebl2AUcKK1DlIehqCbcjWG\r\n78OsRRLYisJiNMUeK/t7m0ZQ/F8mBfm/eQup5PUOdfWAnvgW2xD6kwuaU5dk\r\nS2lZ7wacEW9PlK7Rfgdx92Yl3BkjTwIJIRpyMri9XHM8//uzCR2DOg26xx7h\r\ng6hpPQvTJYm5z6xAKqw7DufR3H3CDliGIZ9TfgcHe7Nf54f+5SN+pu43Hav7\r\nSOPp9VGPu3kGSYKoGdU9WJH177l9Gq6PlOow7V2xVDA/SmGghe8U2lTpluF0\r\njH9k+s++gn/df+Zci9e7D1Eqx/zdqJh79Gc=\r\n=Bn6Z\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testMatch":["<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}","<rootDir>/src/**/?(*.)(spec|test|tests).{js,jsx,mjs}"],"collectCoverage":true,"testEnvironment":"node","coverageReporters":["json","lcovonly","clover"],"collectCoverageFrom":["src/**/*.{js,jsx}"]},"main":"lib/index.js","readme":"# `@apollosproject/data-connector-onesignal`\n\nProvides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.\n\n\n## Dependants / Dependencies\n\nNone at this time. However, we do some special magic in the `apollos-church-api` app to demonstrate how you can capture the OneSignal ID and save it in Rock. If you look in `src/data/oneSignalWithRock` you can see the following example:\n\n```\n/* eslint-disable import/prefer-default-export */\n\nexport const resolver = {\n  Mutation: {\n    updateUserPushSettings: async (root, { input }, { dataSources }) => {\n      // register the changes w/ one signal\n      const returnValue = await dataSources.OneSignal.updatePushSettings(input);\n\n      // if the pushProviderUserId is changing, we need ot register the device with rock.\n      if (input.pushProviderUserId != null) {\n        await dataSources.PersonalDevice.addPersonalDevice({\n          pushId: input.pushProviderUserId,\n        });\n      }\n\n      // return the original return value (which is currentPerson)\n      return returnValue;\n    },\n  },\n};\n\n```\n\nHere we are overriding the `updateUserPushSettings` resolver defined in this module, capturing the return of this module's data source call (which updates a OneSignal user) and puts their PushId in Rock so Rock can send the user push notifications.\n\nIf using OneSignal with Rock, we recommend you copy the above code and use it in conjunction with the OneSignal communication module that NewSpring Church is developing.\n\n## Usage\n\nIn your `src/data/index`,\n\n```\nimport * as OneSignal from '@apollosproject/data-connector-onesignal';\n\n...\n\nconst data = {\n  ...\n  OneSignal,\n  ...\n}\n```\n\nImplementing this module requires you also follow the steps to add OneSignal to your client app. Start by implementing OneSignal as outlined in this documentation.\n\nhttps://documentation.onesignal.com/docs/react-native-sdk-setup\n\nNext, you should mimic the config we wrote which sends PlayerID's to our API once they are received OneSignal gets them from the client.\n\n```\nimport { gql } from '@apollo/client';\nimport { Component } from 'react';\nimport OneSignal from 'react-native-onesignal';\nimport { client } from '../client';\n\nconst UPDATE_DEVICE_PUSH_ID = gql`\n  mutation updateDevicePushId($pushId: String!) {\n    updateDevicePushId(pushId: $pushId) @client\n  }\n`;\n\nexport default class NotificationsInit extends Component {\n  componentDidMount() {\n    OneSignal.init(Config.ONE_SIGNAL_KEY, {\n      kOSSettingsKeyAutoPrompt: true,\n    });\n    OneSignal.addEventListener('ids', this.onIds);\n    OneSignal.configure();\n  }\n\n  ...\n\n  componentWillUnmount() {\n    OneSignal.removeEventListener('ids');\n  }\n\n  onIds = (device) => {\n    client.mutate({\n      mutation: UPDATE_DEVICE_PUSH_ID,\n      variables: { pushId: device.userId },\n    });\n  };\n\n  ...\n}\n```","engines":{"node":">=14"},"gitHead":"a47ced4d09c147f24c98807d2ea58fba577663fc","scripts":{"lint":"eslint ./src --ext .js","test":"jest","build":"NODE_ENV=production rm -rf ./lib && mkdir -p lib && babel ./src -d ./lib"},"_npmUser":{"name":"redreceipt","email":"micneeley14@gmail.com"},"repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","directories":{},"_nodeVersion":"16.13.1","dependencies":{"apollo-datasource-rest":"^0.6.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^25.1.0","graphql":"14.7.0","@apollosproject/babel-preset-apollos":"^2.47.9","@apollosproject/apollo-server-env-mock":"^2.47.9"},"peerDependencies":{"@apollosproject/config":"*","@apollosproject/data-schema":"*","@apollosproject/server-core":"*","@apollosproject/data-connector-rock":"*"},"_npmOperationalInternal":{"tmp":"tmp/data-connector-onesignal_2.47.9_1663854925085_0.49874349016687014","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-01-18T16:15:02.369Z","modified":"2026-01-30T18:39:04.159Z","0.8.0-alpha.7":"2019-01-18T16:15:02.709Z","0.8.0-alpha.8":"2019-02-22T18:02:20.911Z","0.8.0-alpha.9":"2019-02-28T14:33:21.118Z","0.8.0":"2019-03-06T22:47:36.359Z","0.8.1":"2019-03-26T00:18:55.620Z","0.8.2":"2019-04-17T20:31:21.531Z","0.8.3":"2019-04-25T21:17:36.638Z","0.8.4":"2019-05-02T20:55:03.397Z","0.8.5":"2019-05-08T17:04:21.069Z","0.8.6-alpha.8":"2019-05-14T14:49:30.402Z","0.8.6":"2019-05-14T15:38:02.861Z","0.8.6-alpha.9":"2019-05-14T19:52:23.577Z","0.8.7-alpha.8":"2019-05-15T16:09:53.008Z","0.8.7-alpha.2":"2019-05-15T18:28:18.966Z","0.8.7-alpha.15":"2019-05-23T19:46:16.459Z","0.8.7-alpha.31":"2019-06-04T14:45:00.328Z","0.8.7":"2019-06-04T17:22:37.845Z","0.8.7-alpha.32":"2019-06-04T18:19:53.804Z","1.0.0-beta.0":"2019-06-07T18:12:49.007Z","0.8.7-alpha.35":"2019-06-07T20:05:43.474Z","1.0.0-alpha.14":"2019-06-26T13:11:48.965Z","1.0.0-alpha.18":"2019-06-27T13:13:09.519Z","1.0.0":"2019-06-28T01:39:37.621Z","1.0.1-alpha.1":"2019-06-30T18:07:12.584Z","1.0.1-alpha.2":"2019-06-30T18:41:50.768Z","1.0.1-alpha.8":"2019-07-10T18:14:03.766Z","1.0.1-1.1.0-beta.0.0":"2019-07-16T18:08:53.126Z","1.1.0-beta.0":"2019-07-16T18:12:11.356Z","1.1.0-alpha.8":"2019-07-22T13:44:41.701Z","1.1.0-beta.1":"2019-07-29T12:42:14.208Z","1.1.0-alpha.24":"2019-07-29T14:19:12.802Z","1.1.0-beta.2":"2019-07-29T18:32:49.597Z","1.1.0-alpha.29":"2019-07-29T19:42:05.732Z","1.1.0-beta.3":"2019-08-05T13:23:17.413Z","1.1.0-alpha.4":"2019-08-07T03:17:31.573Z","1.1.0":"2019-08-14T13:12:36.250Z","1.1.1-alpha.4":"2019-08-28T17:11:21.075Z","1.1.1-alpha.18":"2019-09-10T16:25:02.756Z","1.1.1-alpha.29":"2019-09-18T17:26:29.037Z","1.1.1-alpha.33":"2019-09-23T18:59:55.853Z","1.1.1-alpha.35":"2019-09-24T00:50:14.054Z","1.2.0-beta.0":"2019-09-25T14:10:37.061Z","1.2.0-alpha.0":"2019-09-30T18:59:56.895Z","1.2.0-alpha.1":"2019-09-30T20:19:27.999Z","1.2.0-alpha.2":"2019-10-01T13:51:08.835Z","1.2.0-beta.1":"2019-10-02T13:39:07.562Z","1.2.0-beta.2":"2019-10-07T15:13:42.651Z","1.2.0-alpha.7":"2019-10-07T15:31:54.558Z","1.2.0-alpha.6":"2019-10-09T22:50:40.120Z","1.2.0-beta.3":"2019-10-10T14:08:33.364Z","1.2.0-beta.4":"2019-10-14T12:31:40.055Z","1.2.0-alpha.3":"2019-10-14T13:09:02.270Z","1.2.0-beta.5":"2019-10-18T16:21:33.038Z","1.2.0-beta.6":"2019-10-21T17:15:58.783Z","1.2.0-beta.7":"2019-10-23T19:50:04.002Z","1.2.0-alpha.11":"2019-10-30T17:56:59.881Z","1.2.0-alpha.12":"2019-10-31T13:35:04.776Z","1.2.0-alpha.13":"2019-10-31T15:22:02.771Z","1.2.0":"2019-10-31T17:57:55.983Z","1.2.1-alpha.4":"2019-11-04T20:48:02.040Z","1.2.1":"2019-11-05T15:39:10.603Z","1.2.2-alpha.2":"2019-11-06T17:44:14.463Z","1.2.2":"2019-11-06T20:46:24.782Z","1.2.2-alpha.3":"2019-11-07T15:06:59.345Z","1.2.3-alpha.4":"2019-11-07T20:13:58.953Z","1.2.3":"2019-11-12T17:42:15.663Z","1.2.3-alpha.10":"2019-11-12T19:02:49.435Z","1.2.4-alpha.5":"2019-11-18T21:26:44.815Z","1.2.4-alpha.6":"2019-11-18T22:06:23.233Z","1.2.4-alpha.13":"2019-11-20T18:10:11.420Z","1.2.4":"2019-11-20T22:59:27.988Z","1.2.4-alpha.18":"2019-11-21T00:37:07.583Z","1.2.5-alpha.9":"2019-12-06T19:57:26.505Z","1.2.5":"2019-12-10T19:19:16.702Z","1.2.5-alpha.12":"2019-12-13T14:51:44.124Z","1.2.6-alpha.8":"2019-12-20T16:05:44.283Z","1.3.0-beta.0":"2020-01-16T15:30:47.923Z","1.2.6-alpha.22":"2020-01-16T16:41:24.569Z","1.3.0-beta.1":"2020-01-16T21:01:17.109Z","1.3.0-alpha.0":"2020-01-17T16:27:53.530Z","1.3.0-beta.2":"2020-01-28T18:52:22.978Z","1.3.0-beta.3":"2020-01-28T20:23:13.538Z","1.3.0-beta.4":"2020-01-29T13:27:57.246Z","1.3.0-alpha.11":"2020-02-04T17:53:14.437Z","1.3.0-alpha.17":"2020-02-06T18:20:43.871Z","1.3.0-beta.5":"2020-02-06T20:11:30.461Z","1.3.0-alpha.19":"2020-02-06T21:21:40.005Z","1.3.0-alpha.1":"2020-02-12T19:30:48.074Z","1.3.0-beta.6":"2020-02-19T16:14:45.880Z","1.3.0":"2020-03-05T18:08:30.702Z","1.3.0-alpha.21":"2020-03-11T15:54:18.632Z","1.3.0-alpha.22":"2020-03-11T19:36:15.216Z","1.3.0-alpha.23":"2020-03-13T18:49:55.375Z","1.3.0-alpha.24":"2020-03-17T04:37:01.224Z","1.3.0-alpha.31":"2020-03-20T17:43:55.406Z","1.3.0-alpha.33":"2020-03-27T13:26:58.979Z","1.3.0-alpha.36":"2020-03-31T20:13:48.101Z","1.3.0-alpha.38":"2020-04-02T03:54:28.979Z","1.3.1-beta.0":"2020-04-06T17:40:41.670Z","1.3.1":"2020-04-13T15:00:53.728Z","1.3.2-1.4.0-beta.0.0":"2020-04-15T12:54:39.978Z","1.4.0-beta.0":"2020-04-15T12:58:58.003Z","1.4.0-beta.1":"2020-04-17T20:41:26.810Z","1.4.0-beta.2":"2020-04-27T17:37:21.204Z","1.3.2":"2020-04-28T16:59:11.846Z","1.4.0":"2020-05-04T15:34:27.377Z","1.4.1-alpha.10":"2020-05-12T16:10:42.516Z","1.4.1":"2020-06-02T18:54:06.213Z","1.4.1-alpha.16":"2020-06-02T20:23:27.559Z","1.4.2":"2020-06-05T15:25:32.071Z","1.4.1-alpha.17":"2020-06-05T15:31:11.475Z","1.4.1-alpha.22":"2020-06-09T02:49:07.701Z","1.4.1-alpha.24":"2020-06-11T03:48:57.667Z","1.4.1-alpha.27":"2020-06-17T18:36:54.540Z","1.4.1-alpha.28":"2020-06-22T15:33:25.412Z","1.4.1-alpha.29":"2020-06-22T17:47:35.801Z","1.4.3":"2020-06-22T21:00:05.970Z","1.4.1-alpha.30":"2020-06-22T21:19:02.742Z","1.4.4-alpha.0":"2020-06-23T19:01:01.737Z","1.4.4-alpha.8":"2020-07-22T20:30:00.265Z","1.4.4-alpha.19":"2020-07-30T20:07:57.116Z","1.4.4-alpha.25":"2020-07-31T15:38:35.183Z","1.5.0-beta.0":"2020-08-03T14:51:44.836Z","1.5.0":"2020-08-18T18:00:13.926Z","1.4.4-alpha.35":"2020-08-18T19:23:03.528Z","1.5.1-alpha.5":"2020-08-31T21:49:03.060Z","1.5.1-alpha.6":"2020-09-03T19:39:13.699Z","1.5.1-alpha.31":"2020-09-17T14:47:37.646Z","1.5.1-alpha.35":"2020-09-18T15:41:34.791Z","1.5.1-alpha.39":"2020-09-21T16:39:54.016Z","1.6.0-beta.0":"2020-09-21T22:16:42.865Z","1.6.0-alpha.0":"2020-09-22T13:06:14.774Z","1.6.0-alpha.9":"2020-09-28T16:44:06.000Z","1.6.0-beta.1":"2020-09-30T14:23:48.505Z","1.6.0":"2020-10-09T18:15:30.812Z","1.6.1-alpha.1":"2020-10-12T20:19:45.408Z","1.6.1-alpha.3":"2020-10-13T18:43:29.251Z","1.6.1-alpha.9":"2020-10-15T18:40:16.576Z","1.7.0-beta.0":"2020-10-19T20:44:06.326Z","1.6.1-alpha.18":"2020-10-19T20:49:02.991Z","1.6.1-alpha.19":"2020-10-20T17:21:00.527Z","1.7.0-beta.1":"2020-10-23T14:11:25.060Z","1.7.0-alpha.4":"2020-10-26T20:07:53.028Z","1.7.0-beta.2":"2020-10-27T13:38:01.496Z","2.0.0-alpha.2":"2020-10-28T14:24:08.181Z","2.0.0-alpha.3":"2020-11-06T13:42:28.577Z","1.7.0-beta.3":"2020-11-09T13:51:01.734Z","1.7.0-alpha.1":"2020-11-16T19:34:50.746Z","1.7.0":"2020-11-18T19:47:45.851Z","2.0.0-alpha.4":"2020-11-23T17:21:14.895Z","2.0.0-alpha.5":"2020-11-23T19:33:11.457Z","2.0.0-alpha.6":"2020-11-25T16:09:05.228Z","2.0.0-alpha.7":"2020-11-25T19:39:42.771Z","2.0.0-alpha.8":"2020-11-25T19:40:38.691Z","2.0.0-alpha.9":"2020-11-30T19:05:41.560Z","2.0.0-alpha.10":"2020-11-30T20:23:31.695Z","2.0.0-alpha.11":"2020-12-08T15:27:59.334Z","2.0.0-alpha.12":"2020-12-09T13:46:00.516Z","1.7.1-alpha.4":"2020-12-10T16:18:10.369Z","2.0.0-alpha.13":"2020-12-11T14:41:46.297Z","2.0.0-alpha.14":"2020-12-11T20:54:54.977Z","2.0.0-alpha.15":"2020-12-14T16:54:54.022Z","1.7.1-alpha.6":"2020-12-14T22:01:58.760Z","1.7.1-alpha.10":"2020-12-17T15:54:20.174Z","1.8.0-beta.0":"2021-01-06T17:13:40.985Z","2.0.0-alpha.17":"2021-01-07T14:35:04.374Z","2.0.0-beta.0":"2021-01-07T16:42:54.362Z","2.0.0-alpha.0":"2021-01-07T16:46:13.024Z","2.0.0-alpha.1":"2021-01-20T17:07:10.971Z","2.0.0-beta.1":"2021-01-22T21:26:35.785Z","2.0.0-beta.2":"2021-01-27T18:57:44.252Z","2.0.0-2.0.0-alpha.16.0":"2021-01-27T20:37:06.038Z","1.8.0-alpha.8":"2021-02-03T14:42:21.852Z","2.0.0-beta.3":"2021-02-03T14:47:44.853Z","2.0.0-beta.4":"2021-02-03T16:12:34.383Z","1.8.0-alpha.11":"2021-02-03T16:30:09.598Z","2.0.0":"2021-02-03T20:25:18.497Z","2.0.1-canary.8":"2021-02-09T19:49:58.651Z","2.0.1-canary.12":"2021-02-11T13:19:46.220Z","2.0.1-canary.15":"2021-02-11T21:15:04.333Z","2.0.1-canary.0":"2021-02-12T17:40:59.996Z","2.1.0":"2021-02-26T17:22:40.333Z","2.1.1":"2021-02-26T17:26:46.789Z","2.1.2-canary.6":"2021-03-03T16:58:32.025Z","2.2.0":"2021-03-04T18:28:40.722Z","2.2.1-canary.4":"2021-03-08T13:49:43.723Z","2.2.1-canary.5":"2021-03-09T14:13:37.163Z","2.2.1-canary.7":"2021-03-10T19:43:32.376Z","2.2.1-canary.8":"2021-03-10T20:32:38.741Z","2.2.1-canary.9":"2021-03-10T21:36:45.543Z","2.2.1-canary.10":"2021-03-11T15:32:04.015Z","2.2.1-canary.12":"2021-03-11T18:14:34.465Z","2.3.0":"2021-03-11T19:12:57.738Z","2.3.1-canary.0":"2021-03-11T19:55:24.423Z","2.3.1":"2021-03-11T20:26:57.811Z","2.3.2-canary.4":"2021-03-16T15:08:31.547Z","2.4.0":"2021-03-18T00:23:40.480Z","2.4.1-canary.4":"2021-03-21T01:57:07.451Z","2.4.1-canary.5":"2021-03-22T15:53:49.021Z","2.5.0":"2021-03-22T18:59:47.499Z","2.6.0":"2021-03-24T20:00:09.370Z","2.6.1-canary.6":"2021-03-25T17:13:29.829Z","2.7.0":"2021-03-25T17:37:27.712Z","2.7.1-canary.0":"2021-03-25T17:39:15.227Z","2.8.0":"2021-03-29T12:27:50.147Z","2.8.1-canary.0":"2021-03-29T12:29:41.778Z","2.9.0":"2021-03-30T12:15:51.339Z","2.9.1-canary.0":"2021-03-30T12:17:39.359Z","2.9.1-canary.1":"2021-03-30T15:48:37.470Z","2.9.1-canary.8":"2021-04-05T14:21:46.036Z","2.10.0":"2021-04-06T14:44:43.405Z","2.10.1-canary.1":"2021-04-06T15:57:15.761Z","2.10.1-canary.2":"2021-04-09T01:12:04.566Z","2.11.0":"2021-04-12T17:34:45.014Z","2.11.1-canary.6":"2021-04-14T15:46:00.524Z","2.11.1-canary.8":"2021-04-14T16:46:30.256Z","2.12.0":"2021-04-22T18:56:39.326Z","2.13.0":"2021-04-23T13:44:00.671Z","2.13.1":"2021-04-28T13:56:41.792Z","2.13.2-canary.23":"2021-05-14T12:21:06.293Z","2.14.0":"2021-05-14T15:38:29.911Z","2.14.1-canary.4":"2021-05-18T18:08:56.310Z","2.15.0":"2021-05-19T14:06:17.473Z","2.15.1-canary.2":"2021-05-19T18:03:40.946Z","2.16.0":"2021-05-20T14:13:02.660Z","2.17.0":"2021-05-24T18:42:18.466Z","2.18.0":"2021-05-27T18:23:36.408Z","2.18.1":"2021-06-01T17:57:25.201Z","2.18.2-canary.1":"2021-06-03T15:11:20.033Z","2.19.0":"2021-06-07T13:51:58.018Z","2.19.1-canary.7":"2021-06-11T14:51:25.809Z","2.20.0":"2021-06-14T12:44:56.859Z","1.8.0":"2021-06-16T13:02:51.095Z","2.21.0":"2021-06-16T20:52:01.430Z","2.21.1":"2021-06-17T15:47:12.284Z","2.21.2":"2021-06-18T17:53:40.773Z","2.22.0":"2021-06-23T18:29:10.833Z","2.23.0":"2021-06-24T18:04:14.958Z","2.23.1":"2021-06-24T18:54:10.325Z","2.24.0":"2021-06-28T14:21:40.182Z","2.25.0":"2021-06-30T16:26:02.044Z","2.25.1-canary.8":"2021-07-02T19:37:40.884Z","2.25.1-canary.13":"2021-07-07T13:42:35.087Z","2.26.0":"2021-07-09T18:14:03.873Z","2.26.1-canary.6":"2021-07-19T17:10:35.478Z","2.27.0":"2021-07-19T17:12:03.305Z","2.27.1":"2021-07-20T13:23:08.999Z","2.27.2":"2021-07-20T19:41:43.244Z","2.27.3-canary.4":"2021-07-22T19:06:16.269Z","2.27.3-canary.7":"2021-07-27T21:18:57.239Z","2.28.0":"2021-08-04T14:52:26.601Z","2.28.1-canary.0":"2021-08-04T14:54:11.573Z","2.29.0":"2021-08-05T18:32:23.239Z","2.29.1-canary.0":"2021-08-05T18:34:08.158Z","2.29.1":"2021-08-06T14:17:30.620Z","2.29.2-canary.0":"2021-08-06T14:19:18.640Z","2.29.2":"2021-08-06T15:38:34.022Z","2.29.3-canary.0":"2021-08-06T15:40:14.840Z","2.29.3":"2021-08-11T14:52:06.669Z","2.29.4-canary.0":"2021-08-11T14:54:03.535Z","2.30.0":"2021-08-17T14:10:06.696Z","2.30.1-canary.10":"2021-08-25T12:50:14.614Z","2.30.1-canary.12":"2021-08-25T15:56:38.247Z","2.31.0":"2021-08-26T20:08:52.875Z","2.31.1-canary.7":"2021-09-02T15:35:41.439Z","2.32.0":"2021-09-03T19:28:12.819Z","2.32.1":"2021-09-07T15:49:32.814Z","2.32.2":"2021-09-09T17:42:44.294Z","2.32.3-canary.1":"2021-09-11T02:38:01.559Z","2.32.3-canary.4":"2021-09-15T12:54:10.761Z","2.33.0":"2021-09-15T15:32:17.836Z","2.33.1":"2021-09-15T21:25:38.237Z","2.33.2":"2021-09-17T17:42:51.907Z","2.33.3":"2021-09-22T14:31:51.683Z","2.33.4-canary.4":"2021-09-23T19:05:54.174Z","2.33.4":"2021-09-27T13:38:04.053Z","2.34.0":"2021-10-01T18:36:35.068Z","2.34.1-canary.0":"2021-10-04T18:30:55.970Z","2.35.0":"2021-10-12T13:40:55.160Z","2.36.0":"2021-10-21T20:31:59.482Z","2.36.1":"2021-10-22T21:02:56.981Z","2.36.2-canary.2":"2021-10-26T15:17:28.990Z","2.36.2":"2021-10-28T00:49:16.646Z","2.36.3-canary.0":"2021-10-29T13:35:17.221Z","2.36.3":"2021-10-29T13:36:34.327Z","2.36.4-canary.0":"2021-11-05T21:56:38.647Z","2.37.0":"2021-11-12T17:20:40.319Z","2.38.0":"2021-11-15T16:52:56.550Z","2.38.1-canary.4":"2021-11-16T21:09:53.463Z","2.38.1-canary.5":"2021-11-17T01:45:00.076Z","2.39.0":"2021-11-22T19:41:44.397Z","2.39.1-canary.1":"2021-11-29T21:38:25.521Z","2.40.0":"2021-12-07T01:55:56.301Z","2.41.0":"2021-12-10T17:03:41.145Z","2.41.1-canary.3":"2021-12-20T16:34:33.043Z","2.41.1-canary.5":"2021-12-22T19:16:37.711Z","2.41.1-canary.8":"2022-01-03T18:32:40.807Z","2.41.1-canary.9":"2022-01-03T20:05:51.233Z","2.41.1-canary.10":"2022-01-03T21:27:07.614Z","2.41.1-canary.11":"2022-01-03T22:01:13.007Z","2.41.1-canary.14":"2022-01-06T17:25:40.529Z","2.42.0":"2022-01-11T16:32:38.955Z","2.43.0":"2022-01-27T23:06:26.237Z","2.43.1":"2022-02-01T22:43:30.665Z","3.0.0-canary.36":"2022-02-02T15:16:08.521Z","2.44.0":"2022-03-03T17:35:29.155Z","2.44.1":"2022-03-03T22:03:46.219Z","2.44.2":"2022-03-04T16:46:16.998Z","2.44.3":"2022-03-14T14:35:50.296Z","2.44.4":"2022-03-15T23:10:40.817Z","2.45.0":"2022-03-22T19:52:57.863Z","2.45.1":"2022-03-29T13:32:31.997Z","2.46.0":"2022-03-29T18:29:20.876Z","2.46.1":"2022-03-30T15:10:45.492Z","2.46.2":"2022-03-30T19:36:59.648Z","2.46.3":"2022-03-30T19:40:04.513Z","2.46.4":"2022-03-30T19:43:43.154Z","2.46.5":"2022-03-30T19:46:51.183Z","2.46.6":"2022-03-30T19:50:20.750Z","2.46.7":"2022-03-30T19:53:06.175Z","2.46.8":"2022-03-30T19:55:46.887Z","2.46.9":"2022-03-30T19:58:38.986Z","2.46.10":"2022-03-30T20:01:30.955Z","2.46.11":"2022-03-30T20:04:07.981Z","2.46.12":"2022-03-30T20:07:09.473Z","2.46.13":"2022-03-30T20:10:27.322Z","2.46.14":"2022-03-30T20:13:27.453Z","2.46.15":"2022-03-30T20:16:30.857Z","2.46.16":"2022-03-30T20:19:25.124Z","2.46.17":"2022-03-30T20:23:13.936Z","2.46.18":"2022-03-30T20:25:58.042Z","2.46.19":"2022-03-30T20:28:52.593Z","2.46.20":"2022-03-30T20:32:19.702Z","2.46.21":"2022-03-30T20:36:27.920Z","2.46.22":"2022-03-30T20:39:18.564Z","2.46.23":"2022-03-30T20:42:59.488Z","2.46.24":"2022-03-30T20:45:41.138Z","2.46.25":"2022-03-30T20:48:47.189Z","2.46.26":"2022-03-30T20:52:01.910Z","2.46.27":"2022-03-30T20:54:53.497Z","2.46.28":"2022-03-30T20:58:49.485Z","2.46.29":"2022-03-30T21:01:28.710Z","2.46.30":"2022-03-30T21:04:57.373Z","2.46.31":"2022-03-30T21:08:11.993Z","2.46.32":"2022-03-30T21:10:52.381Z","2.46.33":"2022-03-30T21:13:59.466Z","2.46.34":"2022-03-30T21:17:40.199Z","2.46.35":"2022-03-30T21:20:45.644Z","2.46.36":"2022-03-30T21:23:38.517Z","2.46.37":"2022-03-30T21:27:23.316Z","2.46.38":"2022-03-30T21:29:58.284Z","2.46.39":"2022-03-30T21:33:59.909Z","2.46.40":"2022-03-30T21:37:53.355Z","2.46.41":"2022-03-30T21:40:49.255Z","2.46.42":"2022-03-30T21:43:56.336Z","2.46.43":"2022-03-30T21:47:07.140Z","2.46.44":"2022-03-30T21:51:33.651Z","2.46.45":"2022-03-30T21:55:18.610Z","2.46.46":"2022-03-30T21:57:57.727Z","2.46.47":"2022-03-30T22:01:47.266Z","2.46.48":"2022-03-30T22:04:12.636Z","2.46.49":"2022-03-30T22:07:56.534Z","2.46.50":"2022-03-30T22:11:27.854Z","2.46.51":"2022-03-30T22:14:01.190Z","2.46.52":"2022-03-30T22:17:33.740Z","2.46.53":"2022-03-30T22:20:15.872Z","2.46.54":"2022-03-30T22:23:55.171Z","2.46.55":"2022-03-30T22:27:21.429Z","2.46.56":"2022-03-30T22:30:31.254Z","2.46.57":"2022-03-30T22:33:55.413Z","2.46.58":"2022-03-30T22:36:29.030Z","2.46.59":"2022-03-30T22:40:20.816Z","2.46.60":"2022-03-30T22:43:22.255Z","2.46.61":"2022-03-30T22:46:15.764Z","2.46.62":"2022-03-30T22:48:52.302Z","2.46.63":"2022-03-30T22:51:33.340Z","2.46.64":"2022-03-30T22:54:23.308Z","2.46.65":"2022-03-30T22:57:00.415Z","2.46.66":"2022-03-30T22:59:39.500Z","2.46.67":"2022-03-30T23:02:53.365Z","2.46.68":"2022-03-30T23:06:17.129Z","2.46.69":"2022-03-30T23:10:28.100Z","2.46.70":"2022-03-30T23:13:59.385Z","2.46.71":"2022-03-30T23:16:45.566Z","2.46.72":"2022-03-30T23:19:57.972Z","2.46.73":"2022-03-30T23:23:43.697Z","2.46.74":"2022-03-30T23:27:10.397Z","2.46.75":"2022-03-30T23:29:56.536Z","2.46.76":"2022-03-30T23:33:52.405Z","2.46.77":"2022-03-30T23:37:00.654Z","2.46.78":"2022-03-30T23:39:39.152Z","2.46.79":"2022-03-30T23:42:39.962Z","2.46.80":"2022-03-30T23:46:35.355Z","2.46.81":"2022-03-30T23:50:22.865Z","2.46.82":"2022-03-30T23:53:57.636Z","2.46.83":"2022-03-30T23:57:05.363Z","2.46.84":"2022-03-30T23:59:39.651Z","2.46.85":"2022-03-31T00:03:28.323Z","2.46.86":"2022-03-31T00:06:01.342Z","2.46.87":"2022-03-31T00:10:13.868Z","2.46.88":"2022-03-31T00:13:57.446Z","2.46.89":"2022-03-31T00:17:28.365Z","2.46.90":"2022-03-31T00:21:34.692Z","2.46.91":"2022-03-31T00:25:27.056Z","2.46.92":"2022-03-31T00:29:10.975Z","2.46.93":"2022-03-31T00:32:08.245Z","2.46.94":"2022-03-31T00:35:52.685Z","2.46.95":"2022-03-31T00:39:38.314Z","2.46.96":"2022-03-31T00:42:36.500Z","2.46.97":"2022-03-31T00:46:36.925Z","2.46.98":"2022-03-31T00:49:44.290Z","2.46.99":"2022-03-31T00:52:56.768Z","2.46.100":"2022-03-31T00:55:44.748Z","2.46.101":"2022-03-31T00:59:12.476Z","2.46.102":"2022-03-31T01:02:53.826Z","2.46.103":"2022-03-31T01:05:52.575Z","2.46.104":"2022-03-31T01:09:29.072Z","2.46.105":"2022-03-31T01:12:53.825Z","2.46.106":"2022-03-31T01:16:28.123Z","2.46.107":"2022-03-31T01:19:36.110Z","2.46.108":"2022-03-31T01:22:45.127Z","2.46.109":"2022-03-31T01:26:04.208Z","2.46.110":"2022-03-31T01:29:17.609Z","2.46.111":"2022-03-31T01:32:12.960Z","2.46.112":"2022-03-31T01:36:00.806Z","2.46.113":"2022-03-31T01:39:21.055Z","2.46.114":"2022-03-31T01:41:57.906Z","2.46.115":"2022-03-31T01:45:44.991Z","2.46.116":"2022-03-31T01:49:10.670Z","2.46.117":"2022-03-31T01:52:56.394Z","2.46.118":"2022-03-31T01:56:28.599Z","2.46.119":"2022-03-31T01:59:29.190Z","2.46.120":"2022-03-31T02:02:04.440Z","2.46.121":"2022-03-31T02:04:56.250Z","2.46.122":"2022-03-31T02:07:41.488Z","2.46.123":"2022-03-31T02:10:23.067Z","2.46.124":"2022-03-31T02:13:08.203Z","2.46.125":"2022-03-31T02:17:03.030Z","2.46.126":"2022-03-31T02:20:09.046Z","2.46.127":"2022-03-31T02:23:34.765Z","2.46.128":"2022-03-31T02:26:47.053Z","2.46.129":"2022-03-31T02:30:37.698Z","2.46.130":"2022-03-31T02:33:49.768Z","2.46.131":"2022-03-31T02:36:27.517Z","2.46.132":"2022-03-31T02:39:50.759Z","2.46.133":"2022-03-31T02:42:27.189Z","2.46.134":"2022-03-31T02:46:47.133Z","2.46.135":"2022-03-31T02:49:08.136Z","2.46.136":"2022-03-31T02:52:35.214Z","2.46.137":"2022-03-31T02:55:33.548Z","2.46.138":"2022-03-31T02:58:11.939Z","2.46.139":"2022-03-31T03:00:49.769Z","2.46.140":"2022-03-31T03:04:16.854Z","2.46.141":"2022-03-31T03:06:46.353Z","2.46.142":"2022-03-31T03:10:43.751Z","2.46.143":"2022-03-31T03:13:57.535Z","2.46.144":"2022-03-31T03:16:34.193Z","2.46.145":"2022-03-31T03:20:22.357Z","2.46.146":"2022-03-31T03:23:50.170Z","2.46.147":"2022-03-31T03:27:22.686Z","2.46.148":"2022-03-31T03:30:18.468Z","2.46.149":"2022-03-31T03:33:29.112Z","2.46.150":"2022-03-31T03:36:30.492Z","2.46.151":"2022-03-31T03:40:23.598Z","2.46.152":"2022-03-31T03:44:00.835Z","2.46.153":"2022-03-31T03:46:40.542Z","2.46.154":"2022-03-31T03:49:23.054Z","2.46.155":"2022-03-31T03:52:08.691Z","2.46.156":"2022-03-31T03:55:09.431Z","2.46.157":"2022-03-31T03:59:09.860Z","2.46.158":"2022-03-31T04:02:37.891Z","2.46.159":"2022-03-31T04:05:17.568Z","2.46.160":"2022-03-31T04:09:13.645Z","2.46.161":"2022-03-31T04:11:50.035Z","2.46.162":"2022-03-31T04:14:29.573Z","2.46.163":"2022-03-31T04:17:42.694Z","2.46.164":"2022-03-31T04:21:04.322Z","2.46.165":"2022-03-31T04:23:38.700Z","2.46.166":"2022-03-31T04:26:26.925Z","2.46.167":"2022-03-31T04:29:09.561Z","2.46.168":"2022-03-31T04:32:34.915Z","2.46.169":"2022-03-31T04:35:12.422Z","2.46.170":"2022-03-31T04:38:11.917Z","2.46.171":"2022-03-31T04:40:58.422Z","2.46.172":"2022-03-31T04:45:07.436Z","2.46.173":"2022-03-31T04:48:07.288Z","2.46.174":"2022-03-31T04:51:34.152Z","2.46.175":"2022-03-31T04:54:41.050Z","2.46.176":"2022-03-31T04:57:40.985Z","2.46.177":"2022-03-31T05:00:34.347Z","2.46.178":"2022-03-31T05:03:37.536Z","2.46.179":"2022-03-31T05:07:21.532Z","2.46.180":"2022-03-31T05:11:15.981Z","2.46.181":"2022-03-31T05:14:14.188Z","2.46.182":"2022-03-31T05:17:24.344Z","2.46.183":"2022-03-31T05:19:48.821Z","2.46.184":"2022-03-31T05:22:23.553Z","2.46.185":"2022-03-31T05:25:03.143Z","2.46.186":"2022-03-31T05:27:46.470Z","2.46.187":"2022-03-31T05:31:29.495Z","2.46.188":"2022-03-31T05:33:59.524Z","2.46.189":"2022-03-31T05:36:55.781Z","2.46.190":"2022-03-31T05:39:46.543Z","2.46.191":"2022-03-31T05:42:21.104Z","2.46.192":"2022-03-31T05:45:04.638Z","2.46.193":"2022-03-31T05:49:03.755Z","2.46.194":"2022-03-31T05:52:45.728Z","2.46.195":"2022-03-31T05:55:33.957Z","2.46.196":"2022-03-31T05:58:40.752Z","2.46.197":"2022-03-31T06:01:42.532Z","2.46.198":"2022-03-31T06:05:49.412Z","2.47.0":"2022-04-04T20:41:57.556Z","2.47.1":"2022-04-05T20:24:51.480Z","2.47.2":"2022-04-11T15:39:57.183Z","2.47.3":"2022-05-11T18:28:12.901Z","2.47.4":"2022-06-09T01:22:06.790Z","2.47.5":"2022-06-10T17:26:21.778Z","2.47.6":"2022-07-07T13:53:37.910Z","2.47.7":"2022-07-26T14:35:14.247Z","2.47.9":"2022-09-22T13:55:25.232Z"},"bugs":{"url":"https://github.com/apollosproject/apollos-apps/issues"},"homepage":"https://github.com/apollosproject/apollos-apps#readme","repository":{"url":"git://github.com/apollosproject/apollos-apps.git","type":"git"},"description":"Provides a connector to OneSignal for updating user data in OneSignal. This package (at this time) does not send push notifications, but rather sets up users in OneSignal so push notifications can be sent to them via the Rest API or OneSignal dashboard.","maintainers":[{"email":"vince@classyh.at","name":"yungvincenzo"},{"email":"hi@convan.me","name":"conrad_vanl"},{"email":"micneeley14@gmail.com","name":"redreceipt"},{"email":"npm@differential.com","name":"didevshop"},{"email":"nick@differential.com","name":"nick-di"},{"email":"apps@apollos.app","name":"apollosadmin"},{"email":"nathan@differential.com","name":"nathanlewis.differential"}],"readme":"","readmeFilename":""}