@ccci/micro-server 1.1.12 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/index.js +59712 -52675
  2. package/package.json +1 -1
  3. package/dist/decorators/Endpoints.d.ts +0 -12
  4. package/dist/index.d.ts +0 -34
  5. package/dist/test/Uploader.integration.test.d.ts +0 -2
  6. package/dist/types/ApplicationOptionType.d.ts +0 -37
  7. package/dist/types/AttachmentMetadataTypes.d.ts +0 -23
  8. package/dist/types/BaseControllerTypes.d.ts +0 -42
  9. package/dist/types/BaseModelTypes.d.ts +0 -41
  10. package/dist/types/BaseRouterTypes.d.ts +0 -9
  11. package/dist/types/BaseSocketType.d.ts +0 -6
  12. package/dist/types/BrokerType.d.ts +0 -13
  13. package/dist/types/NotificationTypes.d.ts +0 -9
  14. package/dist/types/RedisTypes.d.ts +0 -48
  15. package/dist/types/UploadedFileType.d.ts +0 -68
  16. package/dist/utils/ApplicationServer.d.ts +0 -30
  17. package/dist/utils/BaseAuthenticatorModel.d.ts +0 -7
  18. package/dist/utils/BaseConsumer.d.ts +0 -44
  19. package/dist/utils/BaseController.d.ts +0 -97
  20. package/dist/utils/BaseControllerHelper.d.ts +0 -27
  21. package/dist/utils/BaseKafka.d.ts +0 -37
  22. package/dist/utils/BaseModel.d.ts +0 -44
  23. package/dist/utils/BaseProducer.d.ts +0 -42
  24. package/dist/utils/BaseRedis.d.ts +0 -36
  25. package/dist/utils/BaseRedisConnector.d.ts +0 -10
  26. package/dist/utils/BaseRouter.d.ts +0 -91
  27. package/dist/utils/BaseSocketHandler.d.ts +0 -37
  28. package/dist/utils/DatabaseConnector.d.ts +0 -26
  29. package/dist/utils/ErrorHandler.d.ts +0 -5
  30. package/dist/utils/IBaseModel.d.ts +0 -9
  31. package/dist/utils/Logger.d.ts +0 -8
  32. package/dist/utils/Mailer.d.ts +0 -23
  33. package/dist/utils/Mixins.d.ts +0 -72
  34. package/dist/utils/PushNotifier.d.ts +0 -19
  35. package/dist/utils/RedisQueryHelper.d.ts +0 -38
  36. package/dist/utils/RouterFactory.d.ts +0 -12
  37. package/dist/utils/ServeKafka.d.ts +0 -16
  38. package/dist/utils/TokenGenerator.d.ts +0 -11
  39. package/dist/utils/Uploader.d.ts +0 -127
  40. package/dist/utils/WebSocketServer.d.ts +0 -29
  41. package/dist/utils/uploader-s3.d.ts +0 -68
@@ -1,68 +0,0 @@
1
- /// <reference types="node" />
2
- import { ApplicationOptionType } from "../types/ApplicationOptionType";
3
- import { S3, DeleteObjectRequest } from "@aws-sdk/client-s3";
4
- import { AttachmentMetadataType } from "../types/AttachmentMetadataTypes";
5
- export default class UploaderS3 {
6
- static client: S3;
7
- static uploadSessions: Record<string, string>;
8
- /**
9
- * Initializes the S3 client instance
10
- */
11
- static init(options: ApplicationOptionType): Promise<void>;
12
- /**
13
- * Validates configuration options
14
- */
15
- static hasValidConfig(options: ApplicationOptionType): boolean;
16
- /**
17
- * Lists all available S3 buckets
18
- */
19
- static listBuckets(): Promise<void>;
20
- /**
21
- * Starts a new multipart upload session
22
- * @param bucketName S3 bucket name
23
- * @param key Key for the object in S3
24
- */
25
- static startMultipartUpload(bucketName: string, key: string): Promise<string>;
26
- /**
27
- * Uploads a file part to S3
28
- * @param bucketName S3 bucket name
29
- * @param key Key for the object in S3
30
- * @param uploadId Multipart upload session ID
31
- * @param partNumber Part number for the upload
32
- * @param chunk Chunk of the file to upload
33
- */
34
- static uploadPart(bucketName: string, key: string, uploadId: string, partNumber: number, chunk: Buffer): Promise<string | null>;
35
- /**
36
- * Completes a multipart upload
37
- * @param bucketName S3 bucket name
38
- * @param key Key for the object in S3
39
- * @param uploadId Multipart upload session ID
40
- * @param parts List of uploaded parts
41
- */
42
- static completeMultipartUpload(bucketName: string, key: string, uploadId: string, parts: {
43
- PartNumber: number;
44
- ETag: string;
45
- }[]): Promise<AttachmentMetadataType>;
46
- /**
47
- * Aborts a multipart upload
48
- * @param bucketName S3 bucket name
49
- * @param key Key for the object in S3
50
- * @param uploadId Multipart upload session ID
51
- */
52
- static abortMultipartUpload(bucketName: string, key: string, uploadId: string): Promise<void>;
53
- /**
54
- * Directly uploads a file to S3 without chunking
55
- * @param bucketName S3 bucket name
56
- * @param key Key for the object in S3
57
- * @param fileContent The content of the file to upload
58
- * @param contentType The MIME type of the file
59
- */
60
- static uploadFile(bucketName: string, key: string, fileContent: Buffer | Uint8Array | Blob | string, contentType: string): Promise<AttachmentMetadataType>;
61
- /**
62
- * Deletes all incomplete multipart uploads in the specified bucket
63
- * @param bucketName S3 bucket name
64
- */
65
- static deleteIncompleteUploads(bucketName: string): Promise<void>;
66
- static deleteFile(request: DeleteObjectRequest): Promise<void>;
67
- }
68
- //# sourceMappingURL=uploader-s3.d.ts.map