pangea-server 3.3.170 → 3.3.172

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.
@@ -4,6 +4,7 @@ type ColStrOptions = ColGeneralOptions & {
4
4
  minLength?: StringLength | number;
5
5
  maxLength: StringLength | number;
6
6
  regex?: RegExp;
7
+ caseSensitive?: boolean;
7
8
  };
8
9
  export declare function ColStr(options: ColStrOptions): (target: any, propertyName: string) => void;
9
10
  export declare function ColText(options?: Partial<ColStrOptions>): (target: any, propertyName: string) => void;
@@ -40,7 +40,7 @@ const column_1 = require("./column");
40
40
  // resources
41
41
  const resources_1 = require("../../../resources");
42
42
  function ColStr(options) {
43
- return getStrColumn(seq.DataType.STRING(getLength(255, options.maxLength)), options);
43
+ return getStrColumn(seq.DataType.STRING({ length: getLength(255, options.maxLength), binary: options.caseSensitive }), options);
44
44
  }
45
45
  function ColText(options) {
46
46
  return getStrColumn('TEXT', options);
@@ -22,6 +22,8 @@ export declare namespace Val {
22
22
  type IdOptional = Val.Id | 0;
23
23
  type Ids = Val.Id[];
24
24
  type MaxItems<T extends number> = tags.MaxItems<T>;
25
+ type FileName = Val.MaxLen<120>;
26
+ type FileType = Val.MaxLen<30>;
25
27
  interface IdParams {
26
28
  id: Val.Id;
27
29
  }
@@ -31,8 +33,6 @@ export declare namespace Val {
31
33
  search?: Val.Str | '' | null;
32
34
  }
33
35
  }
34
- type FileName = Val.MaxLen<120>;
35
- type FileType = Val.MaxLen<30>;
36
36
  export interface BaseValidator {
37
37
  EmptyParamsRoute: {};
38
38
  IdParamsRoute: {
@@ -40,19 +40,19 @@ export interface BaseValidator {
40
40
  };
41
41
  GenerateUploadUrlsRoute: {
42
42
  body: {
43
- fileTypes: FileType[];
43
+ fileTypes: Val.FileType[];
44
44
  };
45
45
  };
46
46
  ConfirmUploadedFileRoute: {
47
47
  params: Val.IdParams;
48
48
  body: {
49
- fileName: FileName;
49
+ fileName: Val.FileName;
50
50
  };
51
51
  };
52
52
  ConfirmUploadedFilesRoute: {
53
53
  params: Val.IdParams;
54
54
  body: {
55
- fileNames: FileName[];
55
+ fileNames: Val.FileName[];
56
56
  };
57
57
  };
58
58
  RemoveFileOfArrayRoute: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.170",
4
+ "version": "3.3.172",
5
5
  "engines": {
6
6
  "node": "22.14.0"
7
7
  },