@mcpher/gas-fakes 2.3.18 → 2.5.2

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 (89) hide show
  1. package/README.md +15 -32
  2. package/package.json +1 -2
  3. package/src/cli/app.js +30 -2
  4. package/src/cli/server.js +32 -0
  5. package/src/cli/setup.js +24 -0
  6. package/src/cli/togas.js +176 -0
  7. package/src/index.js +2 -0
  8. package/src/services/common/fakeui.js +45 -0
  9. package/src/services/content/app.js +3 -0
  10. package/src/services/content/contentservice.js +14 -0
  11. package/src/services/content/textoutput.js +45 -0
  12. package/src/services/documentapp/fakedocumentapp.js +1 -1
  13. package/src/services/enums/contentenums.js +15 -0
  14. package/src/services/enums/htmlenums.js +13 -0
  15. package/src/services/enums/scriptenums.js +6 -0
  16. package/src/services/formapp/fakeformapp.js +5 -0
  17. package/src/services/html/app.js +9 -0
  18. package/src/services/html/consumerworker.js +129 -0
  19. package/src/services/html/googlescriptrun.js +91 -0
  20. package/src/services/html/htmloutput.js +127 -0
  21. package/src/services/html/htmloutputmetatag.js +14 -0
  22. package/src/services/html/htmlservice.js +94 -0
  23. package/src/services/html/htmltemplate.js +63 -0
  24. package/src/services/html/serverworker.js +135 -0
  25. package/src/services/html/webapp.js +266 -0
  26. package/src/services/html/worker.js +63 -0
  27. package/src/services/libhandlerapp/fakelibrary.js +2 -2
  28. package/src/services/scriptapp/app.js +44 -0
  29. package/src/services/scriptapp/fakeauthorizationinfo.js +22 -0
  30. package/src/services/slidesapp/fakeslidesapp.js +5 -0
  31. package/src/services/spreadsheetapp/fakebooleancondition.js +14 -2
  32. package/src/services/spreadsheetapp/fakegradientcondition.js +1 -1
  33. package/src/services/spreadsheetapp/fakeovergridimage.js +25 -0
  34. package/src/services/spreadsheetapp/fakesheet.js +23 -1
  35. package/src/services/spreadsheetapp/fakespreadsheet.js +68 -11
  36. package/src/services/spreadsheetapp/fakespreadsheetapp.js +70 -9
  37. package/src/services/stores/fakestores.js +7 -0
  38. package/src/support/auth.js +2 -0
  39. package/src/support/proxies.js +1 -1
  40. package/src/support/sxauth.js +20 -12
  41. package/src/support/utils.js +480 -200
  42. package/src/support/workersync/sxhtml.js +8 -0
  43. package/src/support/workersync/synchronizer.js +8 -1
  44. package/src/support/workersync/worker.js +5 -0
  45. package/api-docs/kdrive_api.json +0 -69958
  46. package/appsscript.json +0 -102
  47. package/gf_agent/README.md +0 -101
  48. package/gf_agent/SKILL.md +0 -484
  49. package/gf_agent/documentation.md +0 -105
  50. package/gf_agent/gf-agent-contributor/SKILL.md +0 -56
  51. package/gf_agent/index.md +0 -21
  52. package/gf_agent/knowledge/00-execution-context.md +0 -5
  53. package/gf_agent/knowledge/01-drive.md +0 -12
  54. package/gf_agent/knowledge/02-syntax.md +0 -14
  55. package/gf_agent/knowledge/03-auth.md +0 -15
  56. package/gf_agent/knowledge/04-advanced.md +0 -46
  57. package/gf_agent/knowledge/05-sheets-forms.md +0 -27
  58. package/gf_agent/knowledge/06-jdbc-cloudsql.md +0 -21
  59. package/gf_agent/knowledge/07-jdbc-auth-details.md +0 -30
  60. package/gf_agent/knowledge/08-docs-limitations.md +0 -4
  61. package/gf_agent/knowledge/09-orchestrator-pattern.md +0 -55
  62. package/gf_agent/knowledge/10-sandbox-security.md +0 -62
  63. package/gf_agent/knowledge/11-chart-builder-limitations.md +0 -15
  64. package/gf_agent/knowledge/12-gmail-eventual-consistency.md +0 -13
  65. package/gf_agent/knowledge/13-advanced-services-discovery.md +0 -29
  66. package/gf_agent/knowledge/14-utilities-parity.md +0 -13
  67. package/gf_agent/knowledge/15-logging-efficiency.md +0 -15
  68. package/gf_agent/knowledge/README.md +0 -16
  69. package/gf_agent/scripts/SKILL.template.md +0 -63
  70. package/gf_agent/scripts/builder.js +0 -118
  71. package/gf_agent/skills/base.md +0 -156
  72. package/gf_agent/skills/cache.md +0 -20
  73. package/gf_agent/skills/calendar.md +0 -780
  74. package/gf_agent/skills/charts.md +0 -127
  75. package/gf_agent/skills/document.md +0 -6752
  76. package/gf_agent/skills/drive.md +0 -423
  77. package/gf_agent/skills/forms.md +0 -4036
  78. package/gf_agent/skills/gmail.md +0 -576
  79. package/gf_agent/skills/jdbc.md +0 -3101
  80. package/gf_agent/skills/lock.md +0 -20
  81. package/gf_agent/skills/properties.md +0 -19
  82. package/gf_agent/skills/script.md +0 -50
  83. package/gf_agent/skills/slides.md +0 -5054
  84. package/gf_agent/skills/spreadsheet.md +0 -56075
  85. package/gf_agent/skills/urlfetch.md +0 -28
  86. package/gf_agent/skills/utilities.md +0 -50
  87. package/gf_agent/skills/xml.md +0 -270
  88. package/skills-lock.json +0 -10
  89. package/src/services/documentapp/fakeui.js +0 -27
@@ -1,28 +0,0 @@
1
- # Service: urlfetch
2
-
3
- ## Class: HTTPResponse
4
-
5
- Supported Methods:
6
- - `getAllHeaders()`
7
- - `getAs(String)`
8
- - `getBlob()`
9
- - `getContent()`
10
- - `getContentText()`
11
- - `getContentText(String)`
12
- - `getHeaders()`
13
- - `getResponseCode()`
14
- - `fetch(String,Object)`
15
- - `fetch(String)`
16
- - `fetchAll(Object)`
17
- - `getRequest(String,Object)`
18
- - `getRequest(String)`
19
-
20
- ## Class: UrlFetchApp
21
-
22
- Supported Methods:
23
- - `fetch(String,Object)`
24
- - `fetch(String)`
25
- - `fetchAll(Object)`
26
- - `getRequest(String,Object)`
27
- - `getRequest(String)`
28
-
@@ -1,50 +0,0 @@
1
- # Service: utilities
2
-
3
- ## Class: Utilities
4
-
5
- Supported Methods:
6
- - `base64Decode(String,Charset)`
7
- - `base64Decode(String)`
8
- - `base64DecodeWebSafe(String,Charset)`
9
- - `base64DecodeWebSafe(String)`
10
- - `base64Encode(Byte)`
11
- - `base64Encode(String,Charset)`
12
- - `base64Encode(String)`
13
- - `base64EncodeWebSafe(Byte)`
14
- - `base64EncodeWebSafe(String,Charset)`
15
- - `base64EncodeWebSafe(String)`
16
- - `computeDigest(DigestAlgorithm,Byte)`
17
- - `computeDigest(DigestAlgorithm,String,Charset)`
18
- - `computeDigest(DigestAlgorithm,String)`
19
- - `computeHmacSha256Signature(Byte,Byte)`
20
- - `computeHmacSha256Signature(String,String,Charset)`
21
- - `computeHmacSha256Signature(String,String)`
22
- - `computeHmacSignature(MacAlgorithm,Byte,Byte)`
23
- - `computeHmacSignature(MacAlgorithm,String,String,Charset)`
24
- - `computeHmacSignature(MacAlgorithm,String,String)`
25
- - `computeRsaSha1Signature(String,String,Charset)`
26
- - `computeRsaSha1Signature(String,String)`
27
- - `computeRsaSha256Signature(String,String,Charset)`
28
- - `computeRsaSha256Signature(String,String)`
29
- - `computeRsaSignature(RsaAlgorithm,String,String,Charset)`
30
- - `computeRsaSignature(RsaAlgorithm,String,String)`
31
- - `formatDate(Date,String,String)`
32
- - `formatString(String,Object...)`
33
- - `getUuid()`
34
- - `gzip(BlobSource,String)`
35
- - `gzip(BlobSource)`
36
- - `newBlob(Byte,String,String)`
37
- - `newBlob(Byte,String)`
38
- - `newBlob(Byte)`
39
- - `newBlob(String,String,String)`
40
- - `newBlob(String,String)`
41
- - `newBlob(String)`
42
- - `parseCsv(String,Char)`
43
- - `parseCsv(String)`
44
- - `parseDate(String,String,String)`
45
- - `sleep(Integer)`
46
- - `ungzip(BlobSource)`
47
- - `unzip(BlobSource)`
48
- - `zip(BlobSource,String)`
49
- - `zip(BlobSource)`
50
-
@@ -1,270 +0,0 @@
1
- # Service: xml
2
-
3
- ## Class: Attribute
4
-
5
- Supported Methods:
6
- - `getName()`
7
- - `getNamespace()`
8
- - `getRootElement()`
9
- - `getAttribute(String,Namespace)`
10
- - `getAttribute(String)`
11
- - `getChild(String,Namespace)`
12
- - `getChild(String)`
13
- - `getChildren()`
14
- - `getChildren(String,Namespace)`
15
- - `getChildren(String)`
16
- - `getChildText(String,Namespace)`
17
- - `getChildText(String)`
18
- - `getName()`
19
- - `getNamespace()`
20
- - `getNamespace(String)`
21
- - `getQualifiedName()`
22
- - `getText()`
23
- - `getValue()`
24
- - `getName()`
25
- - `format(Document)`
26
- - `format(Element)`
27
- - `getPrefix()`
28
- - `getURI()`
29
- - `getText()`
30
- - `getValue()`
31
- - `getNamespace(String,String)`
32
- - `getNamespace(String)`
33
- - `getPrettyFormat()`
34
- - `getRawFormat()`
35
- - `parse(String)`
36
-
37
- ## Class: Cdata
38
-
39
- Supported Methods:
40
- - `getRootElement()`
41
- - `getAttribute(String,Namespace)`
42
- - `getAttribute(String)`
43
- - `getChild(String,Namespace)`
44
- - `getChild(String)`
45
- - `getChildren()`
46
- - `getChildren(String,Namespace)`
47
- - `getChildren(String)`
48
- - `getChildText(String,Namespace)`
49
- - `getChildText(String)`
50
- - `getName()`
51
- - `getNamespace()`
52
- - `getNamespace(String)`
53
- - `getQualifiedName()`
54
- - `getText()`
55
- - `getValue()`
56
- - `getName()`
57
- - `format(Document)`
58
- - `format(Element)`
59
- - `getPrefix()`
60
- - `getURI()`
61
- - `getText()`
62
- - `getValue()`
63
- - `getNamespace(String,String)`
64
- - `getNamespace(String)`
65
- - `getPrettyFormat()`
66
- - `getRawFormat()`
67
- - `parse(String)`
68
-
69
- ## Class: Comment
70
-
71
- Supported Methods:
72
- - `getRootElement()`
73
- - `getAttribute(String,Namespace)`
74
- - `getAttribute(String)`
75
- - `getChild(String,Namespace)`
76
- - `getChild(String)`
77
- - `getChildren()`
78
- - `getChildren(String,Namespace)`
79
- - `getChildren(String)`
80
- - `getChildText(String,Namespace)`
81
- - `getChildText(String)`
82
- - `getName()`
83
- - `getNamespace()`
84
- - `getNamespace(String)`
85
- - `getQualifiedName()`
86
- - `getText()`
87
- - `getValue()`
88
- - `getName()`
89
- - `format(Document)`
90
- - `format(Element)`
91
- - `getPrefix()`
92
- - `getURI()`
93
- - `getText()`
94
- - `getValue()`
95
- - `getNamespace(String,String)`
96
- - `getNamespace(String)`
97
- - `getPrettyFormat()`
98
- - `getRawFormat()`
99
- - `parse(String)`
100
-
101
- ## Class: DocType
102
-
103
- Supported Methods:
104
- - `getRootElement()`
105
- - `getAttribute(String,Namespace)`
106
- - `getAttribute(String)`
107
- - `getChild(String,Namespace)`
108
- - `getChild(String)`
109
- - `getChildren()`
110
- - `getChildren(String,Namespace)`
111
- - `getChildren(String)`
112
- - `getChildText(String,Namespace)`
113
- - `getChildText(String)`
114
- - `getName()`
115
- - `getNamespace()`
116
- - `getNamespace(String)`
117
- - `getQualifiedName()`
118
- - `getText()`
119
- - `getValue()`
120
- - `getName()`
121
- - `format(Document)`
122
- - `format(Element)`
123
- - `getPrefix()`
124
- - `getURI()`
125
- - `getText()`
126
- - `getValue()`
127
- - `getNamespace(String,String)`
128
- - `getNamespace(String)`
129
- - `getPrettyFormat()`
130
- - `getRawFormat()`
131
- - `parse(String)`
132
-
133
- ## Class: Document
134
-
135
- Supported Methods:
136
- - `getRootElement()`
137
- - `getAttribute(String,Namespace)`
138
- - `getAttribute(String)`
139
- - `getChild(String,Namespace)`
140
- - `getChild(String)`
141
- - `getChildren()`
142
- - `getChildren(String,Namespace)`
143
- - `getChildren(String)`
144
- - `getChildText(String,Namespace)`
145
- - `getChildText(String)`
146
- - `getName()`
147
- - `getNamespace()`
148
- - `getNamespace(String)`
149
- - `getQualifiedName()`
150
- - `getText()`
151
- - `getValue()`
152
- - `getName()`
153
- - `format(Document)`
154
- - `format(Element)`
155
- - `getPrefix()`
156
- - `getURI()`
157
- - `getText()`
158
- - `getValue()`
159
- - `getNamespace(String,String)`
160
- - `getNamespace(String)`
161
- - `getPrettyFormat()`
162
- - `getRawFormat()`
163
- - `parse(String)`
164
-
165
- ## Class: Element
166
-
167
- Supported Methods:
168
- - `getAttribute(String,Namespace)`
169
- - `getAttribute(String)`
170
- - `getChild(String,Namespace)`
171
- - `getChild(String)`
172
- - `getChildren()`
173
- - `getChildren(String,Namespace)`
174
- - `getChildren(String)`
175
- - `getChildText(String,Namespace)`
176
- - `getChildText(String)`
177
- - `getName()`
178
- - `getNamespace()`
179
- - `getNamespace(String)`
180
- - `getQualifiedName()`
181
- - `getText()`
182
- - `getValue()`
183
- - `getName()`
184
- - `format(Document)`
185
- - `format(Element)`
186
- - `getPrefix()`
187
- - `getURI()`
188
- - `getText()`
189
- - `getValue()`
190
- - `getNamespace(String,String)`
191
- - `getNamespace(String)`
192
- - `getPrettyFormat()`
193
- - `getRawFormat()`
194
- - `parse(String)`
195
-
196
- ## Class: EntityRef
197
-
198
- Supported Methods:
199
- - `getName()`
200
- - `format(Document)`
201
- - `format(Element)`
202
- - `getPrefix()`
203
- - `getURI()`
204
- - `getText()`
205
- - `getValue()`
206
- - `getNamespace(String,String)`
207
- - `getNamespace(String)`
208
- - `getPrettyFormat()`
209
- - `getRawFormat()`
210
- - `parse(String)`
211
-
212
- ## Class: Format
213
-
214
- Supported Methods:
215
- - `format(Document)`
216
- - `format(Element)`
217
- - `getPrefix()`
218
- - `getURI()`
219
- - `getText()`
220
- - `getValue()`
221
- - `getNamespace(String,String)`
222
- - `getNamespace(String)`
223
- - `getPrettyFormat()`
224
- - `getRawFormat()`
225
- - `parse(String)`
226
-
227
- ## Class: Namespace
228
-
229
- Supported Methods:
230
- - `getPrefix()`
231
- - `getURI()`
232
- - `getText()`
233
- - `getValue()`
234
- - `getNamespace(String,String)`
235
- - `getNamespace(String)`
236
- - `getPrettyFormat()`
237
- - `getRawFormat()`
238
- - `parse(String)`
239
-
240
- ## Class: ProcessingInstruction
241
-
242
- Supported Methods:
243
- - `getText()`
244
- - `getValue()`
245
- - `getNamespace(String,String)`
246
- - `getNamespace(String)`
247
- - `getPrettyFormat()`
248
- - `getRawFormat()`
249
- - `parse(String)`
250
-
251
- ## Class: Text
252
-
253
- Supported Methods:
254
- - `getText()`
255
- - `getValue()`
256
- - `getNamespace(String,String)`
257
- - `getNamespace(String)`
258
- - `getPrettyFormat()`
259
- - `getRawFormat()`
260
- - `parse(String)`
261
-
262
- ## Class: XmlService
263
-
264
- Supported Methods:
265
- - `getNamespace(String,String)`
266
- - `getNamespace(String)`
267
- - `getPrettyFormat()`
268
- - `getRawFormat()`
269
- - `parse(String)`
270
-
package/skills-lock.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "version": 1,
3
- "skills": {
4
- "neon-postgres": {
5
- "source": "neondatabase/agent-skills",
6
- "sourceType": "github",
7
- "computedHash": "391693eee67001639ab65474df185da3ea5cf9ee4b99badecfd64561113edbb4"
8
- }
9
- }
10
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * @file Provides a fake implementation of the Ui class for DocumentApp.
3
- */
4
- import { Proxies } from '../../support/proxies.js';
5
- import { notYetImplemented } from '../../support/helpers.js';
6
-
7
- /**
8
- * A fake implementation of the Ui class.
9
- * @class FakeUi
10
- * @implements {GoogleAppsScript.Document.Ui}
11
- * @see https://developers.google.com/apps-script/reference/document/ui
12
- */
13
- class FakeUi {
14
- createAddonMenu() {
15
- return notYetImplemented('Ui.createAddonMenu');
16
- }
17
-
18
- createMenu(caption) {
19
- return notYetImplemented('Ui.createMenu');
20
- }
21
-
22
- showSidebar(userInterface) {
23
- return notYetImplemented('Ui.showSidebar');
24
- }
25
- }
26
-
27
- export const newFakeUi = (...args) => Proxies.guard(new FakeUi(...args));