@mcpher/gas-fakes 2.5.4 → 2.5.6

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 (30) hide show
  1. package/.claspignore +1 -1
  2. package/README.md +27 -1
  3. package/exgcp.sh +63 -0
  4. package/package.json +1 -1
  5. package/src/services/advslides/fakeadvslides.js +20 -1
  6. package/src/services/documentapp/appenderhelpers.js +8 -3
  7. package/src/services/documentapp/elementhelpers.js +148 -7
  8. package/src/services/documentapp/elementoptions.js +40 -0
  9. package/src/services/documentapp/elements.js +7 -0
  10. package/src/services/documentapp/fakebookmark.js +1 -3
  11. package/src/services/documentapp/fakecontainerelement.js +188 -0
  12. package/src/services/documentapp/fakedate.js +92 -0
  13. package/src/services/documentapp/fakedocument.js +51 -0
  14. package/src/services/documentapp/fakedocumenttab.js +9 -25
  15. package/src/services/documentapp/fakeelement.js +453 -90
  16. package/src/services/documentapp/fakeequation.js +28 -0
  17. package/src/services/documentapp/fakeequationfunction.js +37 -0
  18. package/src/services/documentapp/fakeequationfunctionargumentseparator.js +28 -0
  19. package/src/services/documentapp/fakeequationsymbol.js +37 -0
  20. package/src/services/documentapp/fakefootersection.js +64 -1
  21. package/src/services/documentapp/fakeheadersection.js +64 -0
  22. package/src/services/documentapp/fakeperson.js +67 -0
  23. package/src/services/documentapp/fakerangeelement.js +27 -1
  24. package/src/services/documentapp/fakerichlink.js +79 -0
  25. package/src/services/documentapp/fakesectionelement.js +51 -12
  26. package/src/services/documentapp/faketablecell.js +98 -0
  27. package/src/services/documentapp/nrhelpers.js +2 -1
  28. package/src/services/documentapp/shadowdocument.js +19 -2
  29. package/src/services/spreadsheetapp/fakeembeddedchartbuilder.js +2 -7
  30. package/src/support/sxslides.js +5 -4
@@ -313,11 +313,7 @@ export class FakeEmbeddedChartBuilder {
313
313
 
314
314
  reverseCategories() {
315
315
  ScriptApp.__behavior.checkMethod("EmbeddedChartBuilder", "reverseCategories");
316
- const chartType = this.__apiChart.spec.basicChart ? this.__apiChart.spec.basicChart.chartType : null;
317
- const axisPos = chartType === "BAR" ? "LEFT_AXIS" : "BOTTOM_AXIS";
318
- const axis = this.__getAxis(axisPos);
319
- axis.reverseDirection = true;
320
- return this;
316
+ return notYetImplemented('ChartBuilder.reverseCategories');
321
317
  }
322
318
 
323
319
  setBackgroundColor(color) { return this.setOption("backgroundColor", color); }
@@ -457,8 +453,7 @@ export class FakeEmbeddedChartBuilder {
457
453
 
458
454
  reverseDirection() {
459
455
  ScriptApp.__behavior.checkMethod("EmbeddedChartBuilder", "reverseDirection");
460
- this.__getAxis("BOTTOM_AXIS").reverseDirection = true;
461
- return this;
456
+ return notYetImplemented('ChartBuilder.reverseDirection');
462
457
  }
463
458
 
464
459
  toString() {
@@ -19,12 +19,13 @@ import { getSlidesApiClient } from '../services/advslides/slapis.js';
19
19
  * @param {object} p.options gaxios options
20
20
  * @return {import('./sxdrive.js').SxResult} from the Slides api
21
21
  */
22
- export const sxSlides = async (Auth, { prop, method, params, options = {} }) => {
22
+ export const sxSlides = async (Auth, { subProp, prop, method, params, options = {} }) => {
23
23
 
24
24
  const apiClient = getSlidesApiClient();
25
- const tag = `sxSlides for ${prop}.${method}`;
25
+ const tag = `sxSlides for ${prop}${subProp ? '.' + subProp : ''}.${method}`;
26
26
 
27
27
  return sxRetry(Auth, tag, async () => {
28
- return apiClient[prop][method](params, options);
28
+ const callish = subProp ? apiClient[prop][subProp] : apiClient[prop];
29
+ return callish[method](params, options);
29
30
  });
30
- };
31
+ };