@or-sdk/files 3.8.2 → 3.9.0

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/CHANGELOG.md +9 -0
  2. package/dist/cjs/Files.js +223 -114
  3. package/dist/cjs/Files.js.map +1 -1
  4. package/dist/cjs/index.js +0 -1
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/types/system-files.js +3 -0
  7. package/dist/cjs/types/system-files.js.map +1 -0
  8. package/dist/cjs/types/ttl.js +3 -0
  9. package/dist/cjs/types/ttl.js.map +1 -0
  10. package/dist/cjs/types/upload-files.js +3 -0
  11. package/dist/cjs/types/upload-files.js.map +1 -0
  12. package/dist/esm/Files.js +158 -84
  13. package/dist/esm/Files.js.map +1 -1
  14. package/dist/esm/index.js +0 -1
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/system-files.js +2 -0
  17. package/dist/esm/types/system-files.js.map +1 -0
  18. package/dist/esm/types/ttl.js +2 -0
  19. package/dist/esm/types/ttl.js.map +1 -0
  20. package/dist/esm/types/upload-files.js +2 -0
  21. package/dist/esm/types/upload-files.js.map +1 -0
  22. package/dist/types/Files.d.ts +164 -6
  23. package/dist/types/Files.d.ts.map +1 -1
  24. package/dist/types/index.d.ts +1 -1
  25. package/dist/types/index.d.ts.map +1 -1
  26. package/dist/types/types/system-files.d.ts +9 -0
  27. package/dist/types/types/system-files.d.ts.map +1 -0
  28. package/dist/types/types/ttl.d.ts +7 -0
  29. package/dist/types/types/ttl.d.ts.map +1 -0
  30. package/dist/types/types/upload-files.d.ts +130 -0
  31. package/dist/types/types/upload-files.d.ts.map +1 -0
  32. package/dist/types/types.d.ts +51 -72
  33. package/dist/types/types.d.ts.map +1 -1
  34. package/package.json +5 -5
  35. package/src/Files.ts +317 -166
  36. package/src/index.ts +1 -1
  37. package/src/types/system-files.ts +29 -0
  38. package/src/types/ttl.ts +6 -0
  39. package/src/types/upload-files.ts +170 -0
  40. package/src/types.ts +50 -88
  41. package/tsconfig.types.json +3 -2
@@ -0,0 +1,9 @@
1
+ import type { ExtendedFileModel, UploadFileProps } from '../types';
2
+ export type UploadSystemFileParams = Pick<UploadFileProps, 'fileName' | 'prefix' | 'contentType' | 'cacheControl' | 'expiresAt' | 'fileContent' | 'onUploadProgress' | 'knownLength'>;
3
+ export type GetSystemFileUploadUrlParams = Pick<UploadSystemFileParams, 'fileName' | 'prefix' | 'cacheControl' | 'expiresAt'>;
4
+ export type UploadSystemFileParamsLegacy = Pick<UploadSystemFileParams, 'fileName' | 'prefix' | 'contentType' | 'cacheControl' | 'knownLength'> & {
5
+ file: ExtendedFileModel;
6
+ ttl?: number;
7
+ abortSignal?: AbortSignal;
8
+ };
9
+ //# sourceMappingURL=system-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-files.d.ts","sourceRoot":"","sources":["../../../src/types/system-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEnE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,eAAe,EACb,UAAU,GACV,QAAQ,GACR,aAAa,GACb,cAAc,GACd,WAAW,GACX,aAAa,GACb,kBAAkB,GAClB,aAAa,CAChB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,sBAAsB,EACtB,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,WAAW,CACrD,CAAA;AAID,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,sBAAsB,EACtB,UAAU,GAAG,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,aAAa,CACvE,GAAG;IACF,IAAI,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * - `Date` valid date instance
3
+ * - `number` amount of milliseconds since midnight Jan 1 1970 UTC (aka UNIX timestamp in milliseconds)
4
+ * - `string` valid Date string that represents datetime
5
+ * */
6
+ export type Timestamp = Date | number | string;
7
+ //# sourceMappingURL=ttl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ttl.d.ts","sourceRoot":"","sources":["../../../src/types/ttl.ts"],"names":[],"mappings":"AAAA;;;;KAIK;AACL,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC"}
@@ -0,0 +1,130 @@
1
+ import type { AxiosProgressEvent } from 'axios';
2
+ import type { ReadStream } from 'node:fs';
3
+ import type { Timestamp } from './ttl';
4
+ export type { AxiosProgressEvent };
5
+ export type RequestOptions = {
6
+ /** Signal from AbortController to abort active request */
7
+ signal?: AbortSignal;
8
+ };
9
+ export type UploadBaseParams = {
10
+ /**
11
+ * Name of the file
12
+ * @example 'my_file.json'
13
+ */
14
+ fileName: string;
15
+ /**
16
+ * File path prefix
17
+ * @example If fine name is 'my_file.json' and prefix is 'path/to/file/' the result file path is:
18
+ * 'path/to/file/my_file.json'
19
+ *
20
+ * @example If fine name is 'my_file.json' and prefix is 'name_prefix_' the result file path is:
21
+ * 'name_prefix_my_file.json'
22
+ */
23
+ prefix?: string;
24
+ /**
25
+ * [MIME type](https://www.iana.org/assignments/media-types/media-types.xhtml)
26
+ * of the file.
27
+ * @default 'binary/octet-stream'
28
+ * @example 'application/json'
29
+ */
30
+ contentType?: string;
31
+ /** Max size of the file in bytes */
32
+ maxFileSize?: number;
33
+ /**
34
+ * Custom cache control setting for a file
35
+ *
36
+ * Examples:
37
+ * - `max-age=<seconds>`
38
+ * Specifies the maximum time (in seconds) a resource is considered fresh.
39
+ * For example, max-age=86400 means the resource is cached for 1 day.
40
+ * - `no-cache`
41
+ * Force to validate with the origin server before serving a cached copy.
42
+ * Useful for content that changes frequently.
43
+ */
44
+ cacheControl?: string;
45
+ rewriteMode?: 'rewrite' | 'prevent-rewrite';
46
+ /** Datetime when file should expire and be deleted */
47
+ expiresAt?: Timestamp;
48
+ /**
49
+ * If `true` after upload file would be publicly available by it's URL.
50
+ * If `false` access to file is possible only via temporary signed URL to a file.
51
+ * @default false
52
+ */
53
+ isPublic?: boolean;
54
+ };
55
+ export type UploadUrlProps = UploadBaseParams;
56
+ export type UploadUrlPropsLegacy = Omit<UploadUrlProps, 'expiresAt' | 'fileName' | 'prefix' | 'isPublic'> & {
57
+ key: string;
58
+ };
59
+ export type GetUploadUrlDataPayload = Omit<UploadUrlProps, 'expiresAt' | 'fileName' | 'prefix' | 'isPublic'> & {
60
+ key: string;
61
+ contentType: string;
62
+ ttl?: string;
63
+ };
64
+ export type UploadUrlResponse = {
65
+ url: string;
66
+ downloadUrl: string;
67
+ fields: UploadFields;
68
+ };
69
+ export type UploadFields = {
70
+ key: string;
71
+ bucket: string;
72
+ Policy: string;
73
+ 'X-Amz-Date': string;
74
+ 'X-Amz-Signature': string;
75
+ 'X-Amz-Algorithm': string;
76
+ 'X-Amz-Credential': string;
77
+ 'X-Amz-Security-Token': string;
78
+ 'cache-control'?: string;
79
+ };
80
+ /** Buffer and ReadStream only supported in Node.js */
81
+ export type FileModel = File | Blob | Buffer | ReadStream;
82
+ /** Allows to use string as a file value */
83
+ export type ExtendedFileModel = FileModel | string;
84
+ export type UploadFileBaseParams = UploadBaseParams & {
85
+ /** File contents */
86
+ fileContent: ExtendedFileModel;
87
+ /** Callback function to be called with upload progress events */
88
+ onUploadProgress?: (event: ProgressEvent | AxiosProgressEvent) => void;
89
+ /** Size of the file in bytes. Helpful when file is an instance of ReadStream in Node.js */
90
+ knownLength?: number;
91
+ /** If `true` method will wait after file upload until file system will update to include file */
92
+ waitTillFileAddedInDb?: boolean;
93
+ };
94
+ export type UploadFileProps = UploadFileBaseParams;
95
+ /** Optional config for uploading files */
96
+ export type UploadFileOptions = RequestOptions & {
97
+ /**
98
+ * Maximum wait time for update of the data base in milliseconds.
99
+ * @default 60_000
100
+ */
101
+ waitForDatabaseUpdateTimeout?: number;
102
+ /**
103
+ * Interval between checking if database was updated in milliseconds.
104
+ * @default 2_000
105
+ */
106
+ waitForDatabaseUpdatePollInterval?: number;
107
+ };
108
+ export type UploadToSignedUrlParameters = Pick<UploadFileProps, 'fileName' | 'fileContent' | 'contentType' | 'cacheControl' | 'knownLength' | 'onUploadProgress'> & {
109
+ signedUrl: UploadUrlResponse;
110
+ };
111
+ export type UploadToSignedUrlParameters2 = {
112
+ signedUrl: UploadUrlResponse;
113
+ file: FileModel;
114
+ fileName: string;
115
+ cacheControl?: string;
116
+ /** Size of the file in bytes. Helpful when file is an instance of ReadStream in Node.js */
117
+ knownLength?: number;
118
+ contentType?: string;
119
+ signal?: AbortSignal;
120
+ onUploadProgress?: (event: ProgressEvent | AxiosProgressEvent) => void;
121
+ };
122
+ export type UploadFilePropsLegacy = Pick<UploadFileProps, 'prefix' | 'cacheControl' | 'isPublic' | 'rewriteMode' | 'maxFileSize' | 'knownLength' | 'waitTillFileAddedInDb'> & {
123
+ name: string;
124
+ fileModel: ExtendedFileModel;
125
+ type?: string;
126
+ ttl?: number;
127
+ progress?: (event: ProgressEvent | AxiosProgressEvent) => void;
128
+ abortSignal?: AbortSignal;
129
+ };
130
+ //# sourceMappingURL=upload-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/types/upload-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,MAAM,MAAM,cAAc,GAAG;IAC3B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,QA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IACrB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,kBAAkB,KAAK,IAAI,CAAC;CACxE,CAAA;AAGD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,eAAe,EACb,QAAQ,GACR,cAAc,GACd,UAAU,GACV,aAAa,GACb,aAAa,GACb,aAAa,GACb,uBAAuB,CAC1B,GAAG;IACF,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,kBAAkB,KAAK,IAAI,CAAC;IAC/D,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAA"}
@@ -1,13 +1,59 @@
1
1
  import type { Token } from '@or-sdk/base';
2
- import type { AxiosProgressEvent } from 'axios';
3
- import type { ReadStream } from 'node:fs';
4
- export type FilesConfig = {
2
+ export type * from './types/system-files';
3
+ export type * from './types/upload-files';
4
+ export type * from './types/ttl';
5
+ export type { Token };
6
+ export type FilesConfigBase = {
7
+ /**
8
+ * token
9
+ */
5
10
  token: Token;
6
- discoveryUrl?: string;
11
+ /**
12
+ * Account ID for cross-account requests (super admin only)
13
+ */
7
14
  accountId?: string;
8
- filesApiUrl?: string;
15
+ };
16
+ export type FilesConfigWithDiscovery = FilesConfigBase & {
17
+ /**
18
+ * URL of OneReach service discovery API.
19
+ *
20
+ * Allows to fetch URLs of needed API's instead of defining them in the constructor.
21
+ *
22
+ * @example 'https://discovery.<env>.api.onereach.ai'
23
+ */
24
+ discoveryUrl: string;
25
+ /**
26
+ * Direct service url, can be used to avoid discovery api call
27
+ *
28
+ * Not needed if {@link FilesConfig.discoveryUrl} is defined.
29
+ *
30
+ * @example 'https://files-api.svc.<env>.api.onereach.ai'
31
+ */
32
+ filesApiUrl?: never;
33
+ /** @deprecated Use {@link FilesConfig.filesApiUrl} instead */
34
+ serviceUrl?: never;
35
+ };
36
+ export type FilesConfigWithExplicitUrls = FilesConfigBase & {
37
+ /**
38
+ * Direct service url, can be used to avoid discovery api call
39
+ *
40
+ * Not needed if {@link FilesConfig.discoveryUrl} is defined.
41
+ *
42
+ * @example 'https://files-api.svc.<env>.api.onereach.ai'
43
+ */
44
+ filesApiUrl: string;
45
+ /** @deprecated Use {@link FilesConfig.filesApiUrl} instead */
9
46
  serviceUrl?: string;
47
+ /**
48
+ * URL of OneReach service discovery API.
49
+ *
50
+ * Not needed if {@link FilesConfig.filesApiUrl} is defined.
51
+ *
52
+ * @example 'https://discovery.<env>.api.onereach.ai'
53
+ */
54
+ discoveryUrl?: never;
10
55
  };
56
+ export type FilesConfig = FilesConfigWithDiscovery | FilesConfigWithExplicitUrls;
11
57
  export type GetItemsQuery = {
12
58
  prefix: string;
13
59
  isPublic?: boolean;
@@ -44,71 +90,4 @@ export type FileItemSelect = {
44
90
  export type GetItemsListResponse = {
45
91
  items: FileItem[];
46
92
  };
47
- export type UploadUrlProps = {
48
- key: string;
49
- contentType: string;
50
- maxFileSize?: number;
51
- cacheControl?: string;
52
- rewriteMode?: 'rewrite' | 'prevent-rewrite';
53
- };
54
- export type UploadFields = {
55
- key: string;
56
- bucket: string;
57
- Policy: string;
58
- 'X-Amz-Date': string;
59
- 'X-Amz-Signature': string;
60
- 'X-Amz-Algorithm': string;
61
- 'X-Amz-Credential': string;
62
- 'X-Amz-Security-Token': string;
63
- 'cache-control'?: string;
64
- };
65
- export type GetUploadUrlDataPayload = UploadUrlProps & {
66
- ttl?: string;
67
- };
68
- export type UploadUrlResponse = {
69
- url: string;
70
- downloadUrl: string;
71
- fields: UploadFields;
72
- };
73
- export type UploadSystemUrlResponse = {
74
- url: string;
75
- fields: UploadFields;
76
- downloadUrl: string;
77
- };
78
- export type FileModel = File | Blob | Buffer | ReadStream;
79
- export type UploadFileProps = {
80
- type: string;
81
- name: string;
82
- fileModel: FileModel;
83
- prefix: string;
84
- isPublic: boolean;
85
- progress?: (event: ProgressEvent | AxiosProgressEvent) => void;
86
- rewriteMode?: 'rewrite' | 'prevent-rewrite';
87
- ttl?: number;
88
- maxFileSize?: number;
89
- knownLength?: number;
90
- cacheControl?: string;
91
- abortSignal?: AbortSignal;
92
- waitTillFileAddedInDb?: boolean;
93
- };
94
- export type UploadSystemFileParams = {
95
- prefix: string;
96
- file: FileModel;
97
- cacheControl?: string;
98
- ttl: number;
99
- fileName: string;
100
- contentType?: string;
101
- knownLength?: number;
102
- abortSignal?: AbortSignal;
103
- };
104
- export type UploadToSignedUrlParameters = {
105
- signedUrl: UploadUrlResponse;
106
- file: FileModel;
107
- fileName: string;
108
- cacheControl?: string;
109
- knownLength?: number;
110
- contentType?: string;
111
- signal?: AbortSignal;
112
- onUploadProgress?: (event: ProgressEvent | AxiosProgressEvent) => void;
113
- };
114
93
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IAIxB,KAAK,EAAE,KAAK,CAAC;IAIb,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,WAAW,CAAC,EAAE,MAAM,CAAC;IAIrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,OAAO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C,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/files",
3
- "version": "3.8.2",
3
+ "version": "3.9.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -9,11 +9,11 @@
9
9
  },
10
10
  "types": "dist/types/index.d.ts",
11
11
  "scripts": {
12
- "build": "pnpm clean && pnpm build:esm & pnpm build:cjs",
12
+ "build": "pnpm clean && concurrently 'pnpm:build:*(!watch)'",
13
13
  "build:cjs": "tsc --project tsconfig.json",
14
14
  "build:esm": "tsc --project tsconfig.esm.json",
15
15
  "build:types": "tsc --project tsconfig.types.json",
16
- "build:watch": "concurrently -r --hide 1,2 \"pnpm build:watch:cjs\" \"pnpm build:watch:esm\" \"pnpm build:watch:types\"",
16
+ "build:watch": "concurrently 'pnpm:build:watch:*'",
17
17
  "build:watch:cjs": "tsc --project tsconfig.json -w",
18
18
  "build:watch:esm": "tsc --project tsconfig.esm.json -w",
19
19
  "build:watch:types": "tsc --project tsconfig.types.json -w",
@@ -21,7 +21,7 @@
21
21
  "dev": "pnpm build:watch:esm"
22
22
  },
23
23
  "dependencies": {
24
- "@or-sdk/base": "^0.42.5",
24
+ "@or-sdk/base": "^0.43.0",
25
25
  "form-data": "4.0.4",
26
26
  "typescript-memoize": "^1.1.1"
27
27
  },
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "c6887f491665f09fe3588ef5384d0d3f2d42412d"
35
+ "gitHead": "ce62679c119c54ef41fd0d8f7084c563c3b21b24"
36
36
  }