You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The ID of the parent folder which contain the file. If not specified as part of a create request, the file will be placed directly in the user's My Drive folder.",
27
+
`The ID of the parent folder which contains the file. If not specified as part of a
28
+
create request, the file will be placed directly in the user's My Drive folder.`,
24
29
optional: true,
25
30
asyncoptions({ prevContext }){
26
31
const{ nextPageToken }=prevContext;
@@ -41,31 +46,25 @@ module.exports = {
41
46
uploadType: {
42
47
type: "string",
43
48
label: "Upload Type",
44
-
description: `The type of upload request to the /upload URI. If you are uploading data (using an /upload URI), this field is required. If you are creating a metadata-only file, this field is not required.
49
+
description: `The type of upload request to the /upload URI. If you are uploading data
50
+
(using an /upload URI), this field is required. If you are creating a metadata-only file,
51
+
this field is not required.
45
52
media - Simple upload. Upload the media only, without any metadata.
46
53
multipart - Multipart upload. Upload both the media and its metadata, in a single request.
47
-
resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests where the first request includes the metadata.
48
-
`,
54
+
resumable - Resumable upload. Upload the file in a resumable fashion, using a series of
55
+
at least two requests where the first request includes the metadata.`,
49
56
options: [
50
-
{
51
-
label: "Media (upload the media only, without any metadata)",
52
-
value: "media",
53
-
},
54
-
{
55
-
label: "Multipart (upload both the media and its metadata, in a single request)",
56
-
value: "multipart",
57
-
},
58
-
{
59
-
label: "Resumable (Upload the file in a resumable fashion, using a series of requests)",
60
-
value: "resumable",
61
-
},
57
+
"media",
58
+
"multipart",
59
+
"resumable",
62
60
],
63
61
},
64
62
fileUrl: {
65
63
type: "string",
66
64
label: "File URL",
67
65
description:
68
-
"The URL of the file you want to upload to Google Drive. Must specify either File URL or File Path.",
66
+
`The URL of the file you want to upload to Google Drive. Must specify either File URL
67
+
or File Path.`,
69
68
optional: true,
70
69
},
71
70
filePath: {
@@ -78,14 +77,18 @@ module.exports = {
78
77
ignoreDefaultVisibility: {
79
78
type: "boolean",
80
79
label: "Ignore Default Visibility",
81
-
description: "Whether to ignore the domain's default visibility settings for the created file. Domain administrators can choose to make all uploaded files visible to the domain by default; this parameter bypasses that behavior for the request. Permissions are still inherited from parent folders.",
80
+
description: `Whether to ignore the domain's default visibility settings for the created
81
+
file. Domain administrators can choose to make all uploaded files visible to the domain
82
+
by default; this parameter bypasses that behavior for the request. Permissions are still
83
+
inherited from parent folders.`,
82
84
default: false,
83
85
},
84
86
includePermissionsForView: {
85
87
type: "string",
86
88
label: "Include Permissions For View",
87
89
description:
88
-
"Specifies which additional view's permissions to include in the response. Only 'published' is supported.",
90
+
`Specifies which additional view's permissions to include in the response. Only
91
+
'published' is supported.`,
89
92
optional: true,
90
93
options: [
91
94
"published",
@@ -95,7 +98,9 @@ module.exports = {
95
98
type: "boolean",
96
99
label: "Keep Revision Forever",
97
100
description:
98
-
"Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.",
101
+
`Whether to set the 'keepForever' field in the new head revision. This is only applicable
102
+
to files with binary content in Google Drive. Only 200 revisions for the file can be kept
103
+
forever. If the limit is reached, try deleting pinned revisions.`,
99
104
default: false,
100
105
},
101
106
ocrLanguage: {
@@ -104,6 +109,7 @@ module.exports = {
104
109
description:
105
110
"A language hint for OCR processing during image import (ISO 639-1 code).",
106
111
optional: true,
112
+
options: isoLanguages,
107
113
},
108
114
useContentAsIndexableText: {
109
115
type: "boolean",
@@ -116,35 +122,41 @@ module.exports = {
116
122
type: "boolean",
117
123
label: "Supports All Drives",
118
124
description:
119
-
"Whether to include shared drives. Set to 'true' if saving to a shared drive. Defaults to 'false' if left blank.",
125
+
`Whether to include shared drives. Set to 'true' if saving to a shared drive.
126
+
Defaults to 'false' if left blank.`,
120
127
optional: true,
121
128
},
122
129
contentHintsIndexableText: {
123
130
type: "string",
124
131
label: "Content Hints Indexable Text",
125
132
description:
126
-
"Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements.",
133
+
`Text to be indexed for the file to improve fullText queries. This is limited to 128KB in
134
+
length and may contain HTML elements.`,
127
135
optional: true,
128
136
},
129
137
contentRestrictionsReadOnly: {
130
138
type: "boolean",
131
139
label: "Content Restrictions Read Only",
132
140
description:
133
-
"Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.",
141
+
`Whether the content of the file is read-only. If a file is read-only, a new revision of
142
+
the file may not be added, comments may not be added or modified, and the title of the file
143
+
may not be modified.`,
134
144
optional: true,
135
145
},
136
146
contentRestrictionsReason: {
137
147
type: "string",
138
148
label: "Content Restrictions Reason",
139
149
description:
140
-
"Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.",
150
+
`Reason for why the content of the file is restricted. This is only mutable on requests
151
+
that also set readOnly=true.`,
141
152
optional: true,
142
153
},
143
154
copyRequiresWriterPermission: {
144
155
type: "boolean",
145
156
label: "Copy Requires Writer Permission",
146
157
description:
147
-
"Whether the options to copy, print, or download this file, should be disabled for readers and commenters.",
158
+
`Whether the options to copy, print, or download this file, should be disabled for
159
+
readers and commenters.`,
148
160
optional: true,
149
161
},
150
162
description: {
@@ -157,16 +169,25 @@ module.exports = {
157
169
type: "string",
158
170
label: "Folder Color RGB",
159
171
description:
160
-
"The color for a folder as an RGB hex string. If an unsupported color is specified, the closest color in the palette will be used instead.",
172
+
`The color for a folder as an RGB hex string. If an unsupported color is specified,
173
+
the closest color in the palette will be used instead.`,
161
174
optional: true,
162
175
},
163
176
mimeType: {
164
177
type: "string",
165
178
label: "Mime Type",
166
-
description: `The MIME type of the file. Google Drive will attempt to automatically detect an appropriate value from uploaded content if no value is provided. The value cannot be changed unless a new revision is uploaded. If a file is created with a Google Doc MIME type, the uploaded content will be imported if possible.
167
-
Google Workspace and Drive MIME Types: https://developers.google.com/drive/api/v3/mime-types
168
-
`,
179
+
description: `The MIME type of the file. Google Drive will attempt to automatically detect
180
+
an appropriate value from uploaded content if no value is provided. The value cannot be
181
+
changed unless a new revision is uploaded. If a file is created with a Google Doc MIME
182
+
type, the uploaded content will be imported if possible. Google Workspace and Drive
0 commit comments