@aldb2b/common 1.0.4 → 1.0.8

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.
@@ -8,4 +8,5 @@ export declare class MongooseFindOptions {
8
8
  populates?: string | string[] | object[];
9
9
  necessaryProjectionArray?: string[];
10
10
  lean?: string | boolean;
11
+ addPresignedURL?: string | boolean;
11
12
  }
@@ -59,5 +59,10 @@ __decorate([
59
59
  class_validator_1.IsOptional(),
60
60
  __metadata("design:type", Object)
61
61
  ], MongooseFindOptions.prototype, "lean", void 0);
62
+ __decorate([
63
+ swagger_1.ApiPropertyOptional(),
64
+ class_validator_1.IsOptional(),
65
+ __metadata("design:type", Object)
66
+ ], MongooseFindOptions.prototype, "addPresignedURL", void 0);
62
67
  exports.MongooseFindOptions = MongooseFindOptions;
63
68
  //# sourceMappingURL=mongoose-find-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mongoose-find-options.js","sourceRoot":"","sources":["../../src/db/mongoose-find-options.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAA6C;AAE7C,MAAa,mBAAmB;CAoC/B;AAjCC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;kDACQ;AAIrB;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;qDACe;AAI5B;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;iDACC;AAId;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;kDACE;AAIf;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;iDACC;AAId;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;yDACmB;AAIhC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;sDAC4B;AAIzC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;qEACuB;AAIpC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;iDACW;AAnC1B,kDAoCC"}
1
+ {"version":3,"file":"mongoose-find-options.js","sourceRoot":"","sources":["../../src/db/mongoose-find-options.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAA6C;AAE7C,MAAa,mBAAmB;CAwC/B;AArCC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;kDACQ;AAIrB;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;qDACe;AAI5B;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;iDACC;AAId;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;kDACE;AAIf;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;iDACC;AAId;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;yDACmB;AAIhC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;sDAC4B;AAIzC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;qEACuB;AAIpC;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;iDACW;AAIxB;IAFC,6BAAmB,EAAE;IACrB,4BAAU,EAAE;;4DACsB;AAvCrC,kDAwCC"}
package/build/index.d.ts CHANGED
@@ -24,4 +24,11 @@ export * from './types/read-result.interface';
24
24
  export * from './types/update-input-data.interface';
25
25
  export * from './types/user-role.enum';
26
26
  export * from './types/header-user.interface';
27
+ export * from './types/upload-presigned-url.interface';
28
+ export * from './types/download-presigned-url.interface';
27
29
  export * from './middlewares/app.middleware';
30
+ export * from './utils/create-default-directories';
31
+ export * from './utils/equal-array-object';
32
+ export * from './utils/equal-object';
33
+ export * from './utils/parse-query';
34
+ export * from './utils/projection';
package/build/index.js CHANGED
@@ -36,5 +36,12 @@ __exportStar(require("./types/read-result.interface"), exports);
36
36
  __exportStar(require("./types/update-input-data.interface"), exports);
37
37
  __exportStar(require("./types/user-role.enum"), exports);
38
38
  __exportStar(require("./types/header-user.interface"), exports);
39
+ __exportStar(require("./types/upload-presigned-url.interface"), exports);
40
+ __exportStar(require("./types/download-presigned-url.interface"), exports);
39
41
  __exportStar(require("./middlewares/app.middleware"), exports);
42
+ __exportStar(require("./utils/create-default-directories"), exports);
43
+ __exportStar(require("./utils/equal-array-object"), exports);
44
+ __exportStar(require("./utils/equal-object"), exports);
45
+ __exportStar(require("./utils/parse-query"), exports);
46
+ __exportStar(require("./utils/projection"), exports);
40
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA+C;AAC/C,qEAAmD;AAEnD,oEAAkD;AAClD,8DAA4C;AAC5C,+DAA6C;AAC7C,kEAAgD;AAChD,wEAAsD;AACtD,kEAAgD;AAChD,gFAA8D;AAC9D,+DAA6C;AAC7C,yEAAuD;AACvD,mFAAiE;AACjE,iFAA+D;AAC/D,iEAA+C;AAC/C,2EAAyD;AAEzD,kEAAgD;AAEhD,sEAAoD;AACpD,uEAAqD;AAErD,mDAAiC;AACjC,oDAAkC;AAClC,6DAA2C;AAE3C,gEAA8C;AAC9C,sEAAoD;AACpD,yDAAuC;AACvC,gEAA8C;AAE9C,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAkC;AAClC,iEAA+C;AAC/C,qEAAmD;AAEnD,oEAAkD;AAClD,8DAA4C;AAC5C,+DAA6C;AAC7C,kEAAgD;AAChD,wEAAsD;AACtD,kEAAgD;AAChD,gFAA8D;AAC9D,+DAA6C;AAC7C,yEAAuD;AACvD,mFAAiE;AACjE,iFAA+D;AAC/D,iEAA+C;AAC/C,2EAAyD;AAEzD,kEAAgD;AAEhD,sEAAoD;AACpD,uEAAqD;AAErD,mDAAiC;AACjC,oDAAkC;AAClC,6DAA2C;AAE3C,gEAA8C;AAC9C,sEAAoD;AACpD,yDAAuC;AACvC,gEAA8C;AAC9C,yEAAuD;AACvD,2EAAyD;AAEzD,+DAA6C;AAE7C,qEAAmD;AACnD,6DAA2C;AAC3C,uDAAqC;AACrC,sDAAoC;AACpC,qDAAmC"}
@@ -3202,8 +3202,8 @@
3202
3202
  "affectsGlobalScope": false
3203
3203
  },
3204
3204
  "../src/db/mongoose-find-options.ts": {
3205
- "version": "25675946da5fb54f48e8c5b299691ff46433dfb95916e067b14fc51088eae400",
3206
- "signature": "2f1a2eaa12d7375958f7efc04a634cfdff9029f07b6d682268badbba4721b377",
3205
+ "version": "f861b64e6106e5d1f2321a7dfc20716548bb03b901be2f99f201baace96808c5",
3206
+ "signature": "39409bbf0717d3495ad611f8994cee532d60e52bb5bbf3349e50bec723222b95",
3207
3207
  "affectsGlobalScope": false
3208
3208
  },
3209
3209
  "../src/types/user-role.enum.ts": {
@@ -3211,6 +3211,16 @@
3211
3211
  "signature": "4adddacba07630c780f464408c48aede0499e8a1ca3d7e5af5a7a6a81c9f6e63",
3212
3212
  "affectsGlobalScope": false
3213
3213
  },
3214
+ "../src/types/upload-presigned-url.interface.ts": {
3215
+ "version": "233f6a32a7d1fcdedebdad0729b636bf3778620e14ff99d6f3aedcefae3dc8f2",
3216
+ "signature": "2a8b5961488053fbc2a1d65e7ad51713742e672eb245fbfcd56e2cdaeac2e80c",
3217
+ "affectsGlobalScope": false
3218
+ },
3219
+ "../src/types/download-presigned-url.interface.ts": {
3220
+ "version": "625e0c821064cef4ad46db44d1e64020cc242d5845539ed0297bd764497c49bb",
3221
+ "signature": "faf0a8dbab776c560b8caf050bcdb729107127038483ecf413dfb74c1fb5af7b",
3222
+ "affectsGlobalScope": false
3223
+ },
3214
3224
  "../node_modules/@types/range-parser/index.d.ts": {
3215
3225
  "version": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
3216
3226
  "signature": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
@@ -3256,11 +3266,6 @@
3256
3266
  "signature": "1be689a049058d5a313abe7fe9458265b685c70820d5024618bcb5b36380f31f",
3257
3267
  "affectsGlobalScope": false
3258
3268
  },
3259
- "../src/index.ts": {
3260
- "version": "7ee10fcd87d75e67d27803b704b2ef0db6682207a807b7832f1b8b5431709d18",
3261
- "signature": "0c36fbea9249d39d38ad6705ce96cbc9434f1e4769788a873e836cf3577c852b",
3262
- "affectsGlobalScope": false
3263
- },
3264
3269
  "../src/utils/create-default-directories.ts": {
3265
3270
  "version": "7d1a651a9236eaeab047279fd180358440ff0d28ef338fb289bff0ccc3edbb85",
3266
3271
  "signature": "5ed0a70747aafee6c622077e7755d30cdf0b7e6da2089afcbeead36be12f3330",
@@ -3281,6 +3286,11 @@
3281
3286
  "signature": "c6771ad2f66de3dd265f78b1c598104d729347d19c2643dd3d72ef995c77f2f5",
3282
3287
  "affectsGlobalScope": false
3283
3288
  },
3289
+ "../src/index.ts": {
3290
+ "version": "74d855843acc11b55de5c1432edaf292e4a2ebd1be6adad6e260559b30898a9d",
3291
+ "signature": "444a50663f64725c1b7fb534b07fc3083951b453b5e706d0ef7967b3020aa6ee",
3292
+ "affectsGlobalScope": false
3293
+ },
3284
3294
  "../node_modules/@types/minimatch/index.d.ts": {
3285
3295
  "version": "95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2",
3286
3296
  "signature": "95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2",
@@ -5759,10 +5769,17 @@
5759
5769
  "../src/interceptors/response.interceptor.ts",
5760
5770
  "../src/interceptors/serialize.interceptor.ts",
5761
5771
  "../src/middlewares/app.middleware.ts",
5772
+ "../src/types/download-presigned-url.interface.ts",
5762
5773
  "../src/types/header-user.interface.ts",
5763
5774
  "../src/types/read-result.interface.ts",
5764
5775
  "../src/types/update-input-data.interface.ts",
5776
+ "../src/types/upload-presigned-url.interface.ts",
5765
5777
  "../src/types/user-role.enum.ts",
5778
+ "../src/utils/create-default-directories.ts",
5779
+ "../src/utils/equal-array-object.ts",
5780
+ "../src/utils/equal-object.ts",
5781
+ "../src/utils/parse-query.ts",
5782
+ "../src/utils/projection.ts",
5766
5783
  "../src/validators/conditional-required.ts",
5767
5784
  "../src/validators/date-validator.ts",
5768
5785
  "../src/validators/responses/customizeArrayResponse.ts",
@@ -8236,10 +8253,17 @@
8236
8253
  "../src/interceptors/response.interceptor.ts",
8237
8254
  "../src/interceptors/serialize.interceptor.ts",
8238
8255
  "../src/middlewares/app.middleware.ts",
8256
+ "../src/types/download-presigned-url.interface.ts",
8239
8257
  "../src/types/header-user.interface.ts",
8240
8258
  "../src/types/read-result.interface.ts",
8241
8259
  "../src/types/update-input-data.interface.ts",
8260
+ "../src/types/upload-presigned-url.interface.ts",
8242
8261
  "../src/types/user-role.enum.ts",
8262
+ "../src/utils/create-default-directories.ts",
8263
+ "../src/utils/equal-array-object.ts",
8264
+ "../src/utils/equal-object.ts",
8265
+ "../src/utils/parse-query.ts",
8266
+ "../src/utils/projection.ts",
8243
8267
  "../src/validators/conditional-required.ts",
8244
8268
  "../src/validators/date-validator.ts",
8245
8269
  "../src/validators/responses/customizeArrayResponse.ts",
@@ -8925,9 +8949,11 @@
8925
8949
  "../src/interceptors/response.interceptor.ts",
8926
8950
  "../src/interceptors/serialize.interceptor.ts",
8927
8951
  "../src/middlewares/app.middleware.ts",
8952
+ "../src/types/download-presigned-url.interface.ts",
8928
8953
  "../src/types/header-user.interface.ts",
8929
8954
  "../src/types/read-result.interface.ts",
8930
8955
  "../src/types/update-input-data.interface.ts",
8956
+ "../src/types/upload-presigned-url.interface.ts",
8931
8957
  "../src/types/user-role.enum.ts",
8932
8958
  "../src/utils/create-default-directories.ts",
8933
8959
  "../src/utils/equal-array-object.ts",
@@ -0,0 +1,4 @@
1
+ export interface DownloadPresignedURL {
2
+ file: string;
3
+ downloadURL: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=download-presigned-url.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download-presigned-url.interface.js","sourceRoot":"","sources":["../../src/types/download-presigned-url.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface UploadPresignedURL {
2
+ file: string;
3
+ uploadURL: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=upload-presigned-url.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-presigned-url.interface.js","sourceRoot":"","sources":["../../src/types/upload-presigned-url.interface.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.4",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",