feat(web/server) public album sharing (#1266)

This commit is contained in:
Alex
2023-01-09 14:16:08 -06:00
committed by GitHub
parent fd15cdbf40
commit 10789503c1
101 changed files with 4879 additions and 347 deletions

View File

@@ -32,6 +32,11 @@ void main() {
// TODO
});
//Future<SharedLinkResponseDto> createAlbumSharedLink(CreateAlbumShareLinkDto createAlbumShareLinkDto) async
test('test createAlbumSharedLink', () async {
// TODO
});
//Future deleteAlbum(String albumId) async
test('test deleteAlbum', () async {
// TODO

View File

@@ -41,6 +41,11 @@ void main() {
// TODO
});
//Future<Object> downloadFiles(DownloadFilesDto downloadFilesDto) async
test('test downloadFiles', () async {
// TODO
});
//Future<Object> downloadLibrary({ num skip }) async
test('test downloadLibrary', () async {
// TODO

View File

@@ -0,0 +1,42 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for CreateAlbumShareLinkDto
void main() {
// final instance = CreateAlbumShareLinkDto();
group('test CreateAlbumShareLinkDto', () {
// String albumId
test('to test the property `albumId`', () async {
// TODO
});
// String expiredAt
test('to test the property `expiredAt`', () async {
// TODO
});
// bool allowUpload
test('to test the property `allowUpload`', () async {
// TODO
});
// String description
test('to test the property `description`', () async {
// TODO
});
});
}

View File

@@ -0,0 +1,27 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for DownloadFilesDto
void main() {
// final instance = DownloadFilesDto();
group('test DownloadFilesDto', () {
// List<String> assetIds (default value: const [])
test('to test the property `assetIds`', () async {
// TODO
});
});
}

View File

@@ -0,0 +1,42 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for EditSharedLinkDto
void main() {
// final instance = EditSharedLinkDto();
group('test EditSharedLinkDto', () {
// String description
test('to test the property `description`', () async {
// TODO
});
// String expiredAt
test('to test the property `expiredAt`', () async {
// TODO
});
// bool allowUpload
test('to test the property `allowUpload`', () async {
// TODO
});
// bool isEditExpireTime
test('to test the property `isEditExpireTime`', () async {
// TODO
});
});
}

46
mobile/openapi/test/share_api_test.dart generated Normal file
View File

@@ -0,0 +1,46 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
/// tests for ShareApi
void main() {
// final instance = ShareApi();
group('tests for ShareApi', () {
//Future<SharedLinkResponseDto> editSharedLink(String id, EditSharedLinkDto editSharedLinkDto) async
test('test editSharedLink', () async {
// TODO
});
//Future<List<SharedLinkResponseDto>> getAllSharedLinks() async
test('test getAllSharedLinks', () async {
// TODO
});
//Future<SharedLinkResponseDto> getMySharedLink() async
test('test getMySharedLink', () async {
// TODO
});
//Future<SharedLinkResponseDto> getSharedLinkById(String id) async
test('test getSharedLinkById', () async {
// TODO
});
//Future<String> removeSharedLink(String id) async
test('test removeSharedLink', () async {
// TODO
});
});
}

View File

@@ -0,0 +1,72 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SharedLinkResponseDto
void main() {
// final instance = SharedLinkResponseDto();
group('test SharedLinkResponseDto', () {
// SharedLinkType type
test('to test the property `type`', () async {
// TODO
});
// String id
test('to test the property `id`', () async {
// TODO
});
// String description
test('to test the property `description`', () async {
// TODO
});
// String userId
test('to test the property `userId`', () async {
// TODO
});
// String key
test('to test the property `key`', () async {
// TODO
});
// String createdAt
test('to test the property `createdAt`', () async {
// TODO
});
// String expiresAt
test('to test the property `expiresAt`', () async {
// TODO
});
// List<String> assets (default value: const [])
test('to test the property `assets`', () async {
// TODO
});
// AlbumResponseDto album
test('to test the property `album`', () async {
// TODO
});
// bool allowUpload
test('to test the property `allowUpload`', () async {
// TODO
});
});
}

View File

@@ -0,0 +1,21 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.12
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for SharedLinkType
void main() {
group('test SharedLinkType', () {
});
}