Browse Source

Update nextcloud uppush to 1.3.0

pull/225/head
jld3103 2 years ago
parent
commit
28dae57588
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      external/nextcloud-uppush
  2. 16
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  3. 15
      packages/nextcloud/lib/src/nextcloud.openapi.json
  4. 19
      specs/uppush.json
  5. 2
      tool/Dockerfile.dev

2
external/nextcloud-uppush vendored

@ -1 +1 @@
Subproject commit ea2264cc05443f295a662030ad13c4a40c744eb9 Subproject commit 7f69d28c46476e71c9c19ec7ecf8571ac537f560

16
packages/nextcloud/lib/src/nextcloud.openapi.dart

@ -1268,7 +1268,9 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Set keepalive interval. /// Set keepalive interval
///
/// This endpoint requires admin access
Future<NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson> setKeepalive( Future<NextcloudUnifiedPushProviderSetKeepaliveResponse200ApplicationJson> setKeepalive(
{required int keepalive}) async { {required int keepalive}) async {
var path = '/index.php/apps/uppush/keepalive'; var path = '/index.php/apps/uppush/keepalive';
@ -1291,7 +1293,7 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Request to create a new deviceId. /// Request to create a new deviceId
Future<NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson> createDevice( Future<NextcloudUnifiedPushProviderCreateDeviceResponse200ApplicationJson> createDevice(
{required String deviceName}) async { {required String deviceName}) async {
var path = '/index.php/apps/uppush/device'; var path = '/index.php/apps/uppush/device';
@ -1314,7 +1316,7 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Request to get push messages. /// Request to get push messages
/// ///
/// This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app) /// This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app)
Future<NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson> syncDevice( Future<NextcloudUnifiedPushProviderSyncDeviceResponse401ApplicationJson> syncDevice(
@ -1339,7 +1341,7 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Delete a device. /// Delete a device
Future<NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson> deleteDevice( Future<NextcloudUnifiedPushProviderDeleteDeviceResponse200ApplicationJson> deleteDevice(
{required String deviceId}) async { {required String deviceId}) async {
var path = '/index.php/apps/uppush/device/{deviceId}'; var path = '/index.php/apps/uppush/device/{deviceId}';
@ -1362,7 +1364,7 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Create an authorization token for a new 3rd party service. /// Create an authorization token for a new 3rd party service
Future<NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson> createApp({ Future<NextcloudUnifiedPushProviderCreateAppResponse200ApplicationJson> createApp({
required String deviceId, required String deviceId,
required String appName, required String appName,
@ -1388,7 +1390,7 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Delete an authorization token. /// Delete an authorization token
Future<NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson> deleteApp({required String token}) async { Future<NextcloudUnifiedPushProviderDeleteAppResponse200ApplicationJson> deleteApp({required String token}) async {
var path = '/index.php/apps/uppush/app/{token}'; var path = '/index.php/apps/uppush/app/{token}';
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
@ -1433,7 +1435,7 @@ class NextcloudUnifiedPushProviderClient {
throw NextcloudApiException.fromResponse(response); // coverage:ignore-line throw NextcloudApiException.fromResponse(response); // coverage:ignore-line
} }
/// Receive notifications from 3rd parties. /// Receive notifications from 3rd parties
Future<NextcloudUnifiedPushProviderPushResponse201ApplicationJson> push({required String token}) async { Future<NextcloudUnifiedPushProviderPushResponse201ApplicationJson> push({required String token}) async {
var path = '/index.php/apps/uppush/push/{token}'; var path = '/index.php/apps/uppush/push/{token}';
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};

15
packages/nextcloud/lib/src/nextcloud.openapi.json

@ -3454,7 +3454,8 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Set keepalive interval.", "summary": "Set keepalive interval",
"description": "This endpoint requires admin access",
"operationId": "unified_push_provider-set-keepalive", "operationId": "unified_push_provider-set-keepalive",
"parameters": [ "parameters": [
{ {
@ -3494,7 +3495,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Request to create a new deviceId.", "summary": "Request to create a new deviceId",
"operationId": "unified_push_provider-create-device", "operationId": "unified_push_provider-create-device",
"parameters": [ "parameters": [
{ {
@ -3549,7 +3550,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Request to get push messages.", "summary": "Request to get push messages",
"description": "This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app)", "description": "This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app)",
"operationId": "unified_push_provider-sync-device", "operationId": "unified_push_provider-sync-device",
"responses": { "responses": {
@ -3577,7 +3578,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Delete a device.", "summary": "Delete a device",
"operationId": "unified_push_provider-delete-device", "operationId": "unified_push_provider-delete-device",
"responses": { "responses": {
"200": { "200": {
@ -3606,7 +3607,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Create an authorization token for a new 3rd party service.", "summary": "Create an authorization token for a new 3rd party service",
"operationId": "unified_push_provider-create-app", "operationId": "unified_push_provider-create-app",
"parameters": [ "parameters": [
{ {
@ -3670,7 +3671,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Delete an authorization token.", "summary": "Delete an authorization token",
"operationId": "unified_push_provider-delete-app", "operationId": "unified_push_provider-delete-app",
"responses": { "responses": {
"200": { "200": {
@ -3710,7 +3711,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Receive notifications from 3rd parties.", "summary": "Receive notifications from 3rd parties",
"operationId": "unified_push_provider-push", "operationId": "unified_push_provider-push",
"responses": { "responses": {
"201": { "201": {

19
specs/uppush.json

@ -1,12 +1,12 @@
{ {
"openapi": "3.0.3", "openapi": "3.0.3",
"info": { "info": {
"title": "UnifiedPush Provider", "title": "uppush",
"description": "Use Nextcloud as a push provider for mobile phones' notifications", "description": "Use Nextcloud as a push provider for mobile phones' notifications",
"license": { "license": {
"name": "agpl" "name": "agpl"
}, },
"version": "1.2.0" "version": "1.3.0"
}, },
"paths": { "paths": {
"/index.php/apps/uppush": { "/index.php/apps/uppush": {
@ -43,7 +43,8 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Set keepalive interval.", "summary": "Set keepalive interval",
"description": "This endpoint requires admin access",
"operationId": "unified_push_provider-set-keepalive", "operationId": "unified_push_provider-set-keepalive",
"parameters": [ "parameters": [
{ {
@ -83,7 +84,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Request to create a new deviceId.", "summary": "Request to create a new deviceId",
"operationId": "unified_push_provider-create-device", "operationId": "unified_push_provider-create-device",
"parameters": [ "parameters": [
{ {
@ -138,7 +139,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Request to get push messages.", "summary": "Request to get push messages",
"description": "This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app)", "description": "This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app)",
"operationId": "unified_push_provider-sync-device", "operationId": "unified_push_provider-sync-device",
"responses": { "responses": {
@ -166,7 +167,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Delete a device.", "summary": "Delete a device",
"operationId": "unified_push_provider-delete-device", "operationId": "unified_push_provider-delete-device",
"responses": { "responses": {
"200": { "200": {
@ -195,7 +196,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Create an authorization token for a new 3rd party service.", "summary": "Create an authorization token for a new 3rd party service",
"operationId": "unified_push_provider-create-app", "operationId": "unified_push_provider-create-app",
"parameters": [ "parameters": [
{ {
@ -259,7 +260,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Delete an authorization token.", "summary": "Delete an authorization token",
"operationId": "unified_push_provider-delete-app", "operationId": "unified_push_provider-delete-app",
"responses": { "responses": {
"200": { "200": {
@ -299,7 +300,7 @@
"tags": [ "tags": [
"unified_push_provider" "unified_push_provider"
], ],
"summary": "Receive notifications from 3rd parties.", "summary": "Receive notifications from 3rd parties",
"operationId": "unified_push_provider-push", "operationId": "unified_push_provider-push",
"responses": { "responses": {
"201": { "201": {

2
tool/Dockerfile.dev

@ -13,7 +13,7 @@ RUN OC_PASS="user2" ./occ user:add --password-from-env --display-name "User Two"
RUN ./occ app:install news # 21.1.0 RUN ./occ app:install news # 21.1.0
RUN ./occ app:install notes # 4.7.1 RUN ./occ app:install notes # 4.7.1
RUN ./occ app:install uppush # 1.2.0 RUN ./occ app:install uppush # 1.3.0
RUN ./occ app:enable password_policy RUN ./occ app:enable password_policy
# TODO: This stopped working randomly with apache not being able to bind to the port during build. Must be some docker changes? # TODO: This stopped working randomly with apache not being able to bind to the port during build. Must be some docker changes?

Loading…
Cancel
Save