@paris-ias/trees 2.0.26 → 2.0.28

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.
@@ -16,13 +16,13 @@ export interface Files {
16
16
  url: URL
17
17
  size: number
18
18
  fileType: string
19
- catetgory: FileCategory
19
+ category: FileCategory
20
20
  hash: string
21
21
  path: string
22
- thumb: URL
23
22
  createdAt: Date
24
- updatedAt: Date
25
23
  slug: string
24
+ thumb: URL
25
+ updatedAt: Date
26
26
  }
27
27
 
28
28
  export interface FormModule {
@@ -0,0 +1,9 @@
1
+ mutation MultipartFinalize(
2
+ $fileKey: String!
3
+ $fileId: String!
4
+ $parts: [MultipartPartInput!]!
5
+ ) {
6
+ multipartFinalize(fileKey: $fileKey, fileId: $fileId, parts: $parts) {
7
+ fileKey
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ mutation MultipartInit($fileName: String!, $appId: ID) {
2
+ multipartInit(fileName: $fileName, appId: $appId) {
3
+ fileId
4
+ fileKey
5
+ }
6
+ }
@@ -0,0 +1,10 @@
1
+ mutation MultipartPreSignedUrls(
2
+ $fileKey: String!
3
+ $fileId: String!
4
+ $parts: Int!
5
+ ) {
6
+ multipartPreSignedUrls(fileKey: $fileKey, fileId: $fileId, parts: $parts) {
7
+ signedUrl
8
+ PartNumber
9
+ }
10
+ }
@@ -7,6 +7,9 @@
7
7
  "mutations/deleteItem",
8
8
  "mutations/forgotPassword",
9
9
  "mutations/inviteUser",
10
+ "mutations/multipartFinalize",
11
+ "mutations/multipartInit",
12
+ "mutations/multipartPreSignedUrls",
10
13
  "mutations/updateUser",
11
14
  "mutations/upsertApp",
12
15
  "mutations/upsertEvent",
@@ -21,6 +21,28 @@ input FileInput {
21
21
  category: FileCategory
22
22
  }
23
23
 
24
+ input MultipartInitInput {
25
+ fileName: String!
26
+ appId: ID
27
+ }
28
+
29
+ input MultipartPreSignedUrlsInput {
30
+ fileKey: String!
31
+ fileId: String!
32
+ parts: Int!
33
+ }
34
+
35
+ input MultipartPartInput {
36
+ ETag: String!
37
+ PartNumber: Int!
38
+ }
39
+
40
+ input MultipartFinalizeInput {
41
+ fileKey: String!
42
+ fileId: String!
43
+ parts: [MultipartPartInput!]!
44
+ }
45
+
24
46
  input VideoInput {
25
47
  url: AWSURL
26
48
  alt: String
@@ -36,6 +58,20 @@ type FilesList {
36
58
  items: [File]
37
59
  }
38
60
 
61
+ type MultipartInitResult {
62
+ fileId: String!
63
+ fileKey: String!
64
+ }
65
+
66
+ type MultipartPreSignedUrl {
67
+ signedUrl: String!
68
+ PartNumber: Int!
69
+ }
70
+
71
+ type MultipartFinalizeResult {
72
+ fileKey: String!
73
+ }
74
+
39
75
  type Mailing {
40
76
  appId: String
41
77
  name: String
@@ -90,6 +126,9 @@ type Mutation {
90
126
  deleteItem(appId: ID, itemId: ID!, type: String!): Boolean
91
127
  bookEvent(itemId: ID!, slot: SlotInput!): Boolean
92
128
  createNomenclature(options: NomenclatureInput!): Nomenclature
129
+ multipartInit(fileName: String!, appId: ID): MultipartInitResult!
130
+ multipartPreSignedUrls(fileKey: String!, fileId: String!, parts: Int!): [MultipartPreSignedUrl!]!
131
+ multipartFinalize(fileKey: String!, fileId: String!, parts: [MultipartPartInput!]!): MultipartFinalizeResult!
93
132
  }
94
133
 
95
134
  type Query {
@@ -16,13 +16,13 @@ export interface Files {
16
16
  url: URL
17
17
  size: number
18
18
  fileType: string
19
- catetgory: FileCategory
19
+ category: FileCategory
20
20
  hash: string
21
21
  path: string
22
- thumb: URL
23
22
  createdAt: Date
24
- updatedAt: Date
25
23
  slug: string
24
+ thumb: URL
25
+ updatedAt: Date
26
26
  }
27
27
 
28
28
  export interface ListModule {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paris-ias/trees",
3
- "version": "2.0.26",
3
+ "version": "2.0.28",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",