@mcpher/gas-fakes 1.2.0 → 1.2.3

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 (83) hide show
  1. package/package.json +10 -2
  2. package/src/index.js +6 -0
  3. package/src/services/advcalendar/app.js +9 -0
  4. package/src/services/advcalendar/calendarpropslist.js +257 -0
  5. package/src/services/advcalendar/fakeadvcalendar.js +68 -0
  6. package/src/services/advcalendar/fakeadvcalendaracl.js +21 -0
  7. package/src/services/advcalendar/fakeadvcalendarcalendarlist.js +21 -0
  8. package/src/services/advcalendar/fakeadvcalendarcalendars.js +21 -0
  9. package/src/services/advcalendar/fakeadvcalendarchannels.js +21 -0
  10. package/src/services/advcalendar/fakeadvcalendarcolors.js +21 -0
  11. package/src/services/advcalendar/fakeadvcalendarevents.js +21 -0
  12. package/src/services/advcalendar/fakeadvcalendarfreebusy.js +21 -0
  13. package/src/services/advcalendar/fakeadvcalendarsettings.js +21 -0
  14. package/src/services/advchat/app.js +9 -0
  15. package/src/services/advchat/fakeadvchat.js +701 -0
  16. package/src/services/advchat/fakeadvchatspaces.js +29 -0
  17. package/src/services/advgmail/app.js +3 -5
  18. package/src/services/advpeople/app.js +9 -0
  19. package/src/services/advpeople/fakeadvpeople.js +39 -0
  20. package/src/services/advpeople/fakeadvpeoplepeople.js +21 -0
  21. package/src/services/advpeople/peoplepropslist.js +353 -0
  22. package/src/services/advtasks/app.js +9 -0
  23. package/src/services/advtasks/fakeadvtasks.js +40 -0
  24. package/src/services/advtasks/fakeadvtaskstasklists.js +21 -0
  25. package/src/services/advtasks/taskspropslist.js +48 -0
  26. package/src/services/advworkspacevents/app.js +9 -0
  27. package/src/services/advworkspacevents/fakeworkspaceevents.js +40 -0
  28. package/src/services/advworkspacevents/fakeworkspaceeventssubscriptions.js +21 -0
  29. package/src/services/advworkspacevents/workspaceeventspropslist.js +258 -0
  30. package/src/services/driveapp/driveiterators.js +21 -7
  31. package/src/services/driveapp/fakedriveapp.js +8 -0
  32. package/src/services/driveapp/fakedrivefolder.js +9 -0
  33. package/src/services/driveapp/fakefolderapp.js +16 -6
  34. package/src/services/mimetype/app.js +8 -0
  35. package/src/services/mimetype/fakemimetype.js +58 -0
  36. package/src/services/scriptapp/app.js +5 -4
  37. package/src/services/spreadsheetapp/fakesheetrange.js +1 -1
  38. package/src/services/spreadsheetapp/fakespreadsheet.js +1 -1
  39. package/src/services/spreadsheetapp/fakespreadsheetapp.js +6 -1
  40. package/src/services/stores/fakestores.js +67 -37
  41. package/src/services/stores/gasflex.js +3 -1
  42. package/src/support/calendarcacher.js +7 -0
  43. package/src/support/chatcacher.js +8 -0
  44. package/src/support/peoplecacher.js +7 -0
  45. package/src/support/proxies.js +20 -3
  46. package/src/support/sxdrive.js +3 -3
  47. package/src/support/taskscacher.js +7 -0
  48. package/src/support/workspaceeventscacher.js +7 -0
  49. package/.aiexclude +0 -6
  50. package/fakeadvdocuments.js +0 -0
  51. package/gasmess/bruce/appsscript.json +0 -47
  52. package/gasmess/bruce/bare.js +0 -1
  53. package/gasmess/bruce/basic.js +0 -33
  54. package/gasmess/bruce/d.js +0 -4
  55. package/gasmess/bruce/d1.js +0 -4
  56. package/gasmess/bruce/docelems.js +0 -50
  57. package/gasmess/bruce/dreport.js +0 -81
  58. package/gasmess/bruce/gasfakes.json +0 -8
  59. package/gasmess/bruce/package-lock.json +0 -3891
  60. package/gasmess/bruce/package.json +0 -18
  61. package/gasmess/bruce/pbx.js +0 -227
  62. package/gasmess/bruce/sorting.js +0 -106
  63. package/gasmess/bruce/testlogging.js +0 -13
  64. package/gasmess/tanaike/for_simple_test.js +0 -7
  65. package/gasmess/tanaike/gasfakes.json +0 -8
  66. package/gasmess/tanaike/sample1.js +0 -129
  67. package/gasmess/tanaike/sample2.js +0 -66
  68. package/gasmess/tanaike/sample3.js +0 -36
  69. package/gasmess/tanaike/sample4.js +0 -59
  70. package/gasmess/tanaike/sample5.js +0 -63
  71. package/gasmess/tanaike/tempfolder.js +0 -28
  72. package/gasmess/tempfolder.js +0 -29
  73. package/gprompts/gas-inventory.js +0 -96
  74. package/gprompts/gas-inventory.json +0 -176
  75. package/gprompts/inventory-list.json +0 -1
  76. package/gprompts/model.json +0 -34
  77. package/gprompts/package-lock.json +0 -1103
  78. package/gprompts/package.json +0 -18
  79. package/gprompts/regenerate-progress-reports.sh +0 -38
  80. package/gprompts/temp_fetch.mjs +0 -9
  81. package/gprompts/update-progress.js +0 -142
  82. package/index.js +0 -0
  83. package/togas.bash +0 -36
@@ -0,0 +1,701 @@
1
+ /**
2
+ * @file advchat/fakeadvchat.js
3
+ * @author Bruce Mcpherson
4
+ *
5
+ * @description This is a fake for the advanced chat service
6
+ *
7
+ */
8
+ import { Proxies } from "../../support/proxies.js";
9
+ import { advClassMaker } from "../../support/helpers.js";
10
+ import { newFakeAdvChatSpaces } from "./fakeadvchatspaces.js";
11
+ import { chatCacher } from "../../support/chatcacher.js";
12
+
13
+ const propsList =
14
+ {
15
+ newGoogleAppsCardV1Columns: [
16
+ "columnItems"
17
+ ],
18
+ newCustomEmojiMetadata: [
19
+ "customEmoji"
20
+ ],
21
+ newCustomEmoji: [
22
+ "emojiName",
23
+ "name",
24
+ "payload",
25
+ "temporaryImageUri",
26
+ "uid"
27
+ ],
28
+ newPermissionSetting: [
29
+ "managersAllowed",
30
+ "membersAllowed"
31
+ ],
32
+ newAttachmentDataRef: [
33
+ "attachmentUploadToken",
34
+ "resourceName"
35
+ ],
36
+ newGoogleAppsCardV1ActionParameter: [
37
+ "key",
38
+ "value"
39
+ ],
40
+ newGoogleAppsCardV1SwitchControl: [
41
+ "controlType",
42
+ "name",
43
+ "onChangeAction",
44
+ "selected",
45
+ "value"
46
+ ],
47
+ newGoogleAppsCardV1TextParagraph: [
48
+ "maxLines",
49
+ "text",
50
+ "textSyntax"
51
+ ],
52
+ newGoogleAppsCardV1MaterialIcon: [
53
+ "fill",
54
+ "grade",
55
+ "name",
56
+ "weight"
57
+ ],
58
+ newGoogleAppsCardV1NestedWidget: [
59
+ "buttonList",
60
+ "image",
61
+ "textParagraph"
62
+ ],
63
+ newUploadAttachmentRequest: [
64
+ "filename"
65
+ ],
66
+ newMessage: [
67
+ "accessoryWidgets",
68
+ "actionResponse",
69
+ "annotations",
70
+ "argumentText",
71
+ "attachedGifs",
72
+ "attachment",
73
+ "cards",
74
+ "cardsV2",
75
+ "clientAssignedMessageId",
76
+ "createTime",
77
+ "deleteTime",
78
+ "deletionMetadata",
79
+ "emojiReactionSummaries",
80
+ "fallbackText",
81
+ "formattedText",
82
+ "lastUpdateTime",
83
+ "matchedUrl",
84
+ "name",
85
+ "privateMessageViewer",
86
+ "quotedMessageMetadata",
87
+ "sender",
88
+ "slashCommand",
89
+ "space",
90
+ "text",
91
+ "thread",
92
+ "threadReply"
93
+ ],
94
+ newImageButton: [
95
+ "icon",
96
+ "iconUrl",
97
+ "name",
98
+ "onClick"
99
+ ],
100
+ newSpaceReadState: [
101
+ "lastReadTime",
102
+ "name"
103
+ ],
104
+ newGoogleAppsCardV1CardAction: [
105
+ "actionLabel",
106
+ "onClick"
107
+ ],
108
+ newPermissionSettings: [
109
+ "manageApps",
110
+ "manageMembersAndGroups",
111
+ "manageWebhooks",
112
+ "modifySpaceDetails",
113
+ "postMessages",
114
+ "replyMessages",
115
+ "toggleHistory",
116
+ "useAtMentionAll"
117
+ ],
118
+ newEmoji: [
119
+ "customEmoji",
120
+ "unicode"
121
+ ],
122
+ newCard: [
123
+ "cardActions",
124
+ "header",
125
+ "name",
126
+ "sections"
127
+ ],
128
+ newColor: [
129
+ "alpha",
130
+ "blue",
131
+ "green",
132
+ "red"
133
+ ],
134
+ newRichLinkMetadata: [
135
+ "calendarEventLinkData",
136
+ "chatSpaceLinkData",
137
+ "driveLinkData",
138
+ "meetSpaceLinkData",
139
+ "richLinkType",
140
+ "uri"
141
+ ],
142
+ newDriveDataRef: [
143
+ "driveFileId"
144
+ ],
145
+ newSpace: [
146
+ "accessSettings",
147
+ "adminInstalled",
148
+ "createTime",
149
+ "customer",
150
+ "displayName",
151
+ "externalUserAllowed",
152
+ "importMode",
153
+ "importModeExpireTime",
154
+ "lastActiveTime",
155
+ "membershipCount",
156
+ "name",
157
+ "permissionSettings",
158
+ "predefinedPermissionSettings",
159
+ "singleUserBotDm",
160
+ "spaceDetails",
161
+ "spaceHistoryState",
162
+ "spaceThreadingState",
163
+ "spaceType",
164
+ "spaceUri",
165
+ "threaded",
166
+ "type"
167
+ ],
168
+ newGoogleAppsCardV1DecoratedText: [
169
+ "bottomLabel",
170
+ "bottomLabelText",
171
+ "button",
172
+ "contentText",
173
+ "endIcon",
174
+ "icon",
175
+ "onClick",
176
+ "startIcon",
177
+ "startIconVerticalAlignment",
178
+ "switchControl",
179
+ "text",
180
+ "topLabel",
181
+ "topLabelText",
182
+ "wrapText"
183
+ ],
184
+ newKeyValue: [
185
+ "bottomLabel",
186
+ "button",
187
+ "content",
188
+ "contentMultiline",
189
+ "icon",
190
+ "iconUrl",
191
+ "onClick",
192
+ "topLabel"
193
+ ],
194
+ newCalendarEventLinkData: [
195
+ "calendarId",
196
+ "eventId"
197
+ ],
198
+ newGoogleAppsCardV1CollapseControl: [
199
+ "collapseButton",
200
+ "expandButton",
201
+ "horizontalAlignment"
202
+ ],
203
+ newQuotedMessageMetadata: [
204
+ "lastUpdateTime",
205
+ "name"
206
+ ],
207
+ newGoogleAppsCardV1ExpressionData: [
208
+ "conditions",
209
+ "eventActions",
210
+ "expression",
211
+ "id"
212
+ ],
213
+ newGoogleAppsCardV1EventAction: [
214
+ "actionRuleId",
215
+ "commonWidgetAction",
216
+ "postEventTriggers"
217
+ ],
218
+ newGoogleAppsCardV1Divider: [],
219
+ newMembership: [
220
+ "createTime",
221
+ "deleteTime",
222
+ "groupMember",
223
+ "member",
224
+ "name",
225
+ "role",
226
+ "state"
227
+ ],
228
+ newGoogleAppsCardV1CardFixedFooter: [
229
+ "primaryButton",
230
+ "secondaryButton"
231
+ ],
232
+ newAnnotation: [
233
+ "customEmojiMetadata",
234
+ "length",
235
+ "richLinkMetadata",
236
+ "slashCommand",
237
+ "startIndex",
238
+ "type",
239
+ "userMention"
240
+ ],
241
+ newDeletionMetadata: [
242
+ "deletionType"
243
+ ],
244
+ newGoogleAppsCardV1ImageComponent: [
245
+ "altText",
246
+ "borderStyle",
247
+ "cropStyle",
248
+ "imageUri"
249
+ ],
250
+ newWorkflowDataSourceMarkup: [
251
+ "includeVariables",
252
+ "type"
253
+ ],
254
+ newGoogleAppsCardV1PlatformDataSource: [
255
+ "commonDataSource",
256
+ "hostAppDataSource"
257
+ ],
258
+ newGoogleAppsCardV1GridItem: [
259
+ "id",
260
+ "image",
261
+ "layout",
262
+ "subtitle",
263
+ "title"
264
+ ],
265
+ newThread: [
266
+ "name",
267
+ "threadKey"
268
+ ],
269
+ newImage: [
270
+ "aspectRatio",
271
+ "imageUrl",
272
+ "onClick"
273
+ ],
274
+ newGoogleAppsCardV1OnClick: [
275
+ "action",
276
+ "card",
277
+ "openDynamicLinkAction",
278
+ "openLink",
279
+ "overflowMenu"
280
+ ],
281
+ newSlashCommandMetadata: [
282
+ "bot",
283
+ "commandId",
284
+ "commandName",
285
+ "triggersDialog",
286
+ "type"
287
+ ],
288
+ newDriveLinkData: [
289
+ "driveDataRef",
290
+ "mimeType"
291
+ ],
292
+ newEmojiReactionSummary: [
293
+ "emoji",
294
+ "reactionCount"
295
+ ],
296
+ newDialog: [
297
+ "body"
298
+ ],
299
+ newGoogleAppsCardV1Grid: [
300
+ "borderStyle",
301
+ "columnCount",
302
+ "items",
303
+ "onClick",
304
+ "title"
305
+ ],
306
+ newUserMentionMetadata: [
307
+ "type",
308
+ "user"
309
+ ],
310
+ newGoogleAppsCardV1ChipList: [
311
+ "chips",
312
+ "layout"
313
+ ],
314
+ newGoogleAppsCardV1Section: [
315
+ "collapseControl",
316
+ "collapsible",
317
+ "header",
318
+ "id",
319
+ "uncollapsibleWidgetsCount",
320
+ "widgets"
321
+ ],
322
+ newGoogleAppsCardV1ImageCropStyle: [
323
+ "aspectRatio",
324
+ "type"
325
+ ],
326
+ newGoogleAppsCardV1TextInput: [
327
+ "autoCompleteAction",
328
+ "hintText",
329
+ "hostAppDataSource",
330
+ "initialSuggestions",
331
+ "label",
332
+ "name",
333
+ "onChangeAction",
334
+ "placeholderText",
335
+ "type",
336
+ "validation",
337
+ "value"
338
+ ],
339
+ newGoogleAppsCardV1Suggestions: [
340
+ "items"
341
+ ],
342
+ newSlashCommand: [
343
+ "commandId"
344
+ ],
345
+ newGoogleAppsCardV1UpdateVisibilityAction: [
346
+ "visibility"
347
+ ],
348
+ newGoogleAppsCardV1Validation: [
349
+ "characterLimit",
350
+ "inputType"
351
+ ],
352
+ newGoogleAppsCardV1BorderStyle: [
353
+ "cornerRadius",
354
+ "strokeColor",
355
+ "type"
356
+ ],
357
+ newDialogAction: [
358
+ "actionStatus",
359
+ "dialog"
360
+ ],
361
+ newGoogleAppsCardV1Card: [
362
+ "cardActions",
363
+ "displayStyle",
364
+ "expressionData",
365
+ "fixedFooter",
366
+ "header",
367
+ "name",
368
+ "peekCardHeader",
369
+ "sectionDividerStyle",
370
+ "sections"
371
+ ],
372
+ newGoogleAppsCardV1CardHeader: [
373
+ "imageAltText",
374
+ "imageType",
375
+ "imageUrl",
376
+ "subtitle",
377
+ "title"
378
+ ],
379
+ newUser: [
380
+ "displayName",
381
+ "domainId",
382
+ "isAnonymous",
383
+ "name",
384
+ "type"
385
+ ],
386
+ newGoogleAppsCardV1Column: [
387
+ "horizontalAlignment",
388
+ "horizontalSizeStyle",
389
+ "verticalAlignment",
390
+ "widgets"
391
+ ],
392
+ newButton: [
393
+ "imageButton",
394
+ "textButton"
395
+ ],
396
+ newGroup: [
397
+ "name"
398
+ ],
399
+ newWidgetMarkup: [
400
+ "buttons",
401
+ "image",
402
+ "keyValue",
403
+ "textParagraph"
404
+ ],
405
+ newMembershipCount: [
406
+ "joinedDirectHumanUserCount",
407
+ "joinedGroupCount"
408
+ ],
409
+ newGoogleAppsCardV1OpenLink: [
410
+ "onClose",
411
+ "openAs",
412
+ "url"
413
+ ],
414
+ newGoogleAppsCardV1OverflowMenuItem: [
415
+ "disabled",
416
+ "onClick",
417
+ "startIcon",
418
+ "text"
419
+ ],
420
+ newGoogleAppsCardV1SuggestionItem: [
421
+ "text"
422
+ ],
423
+ newSelectionItems: [
424
+ "items"
425
+ ],
426
+ newGoogleAppsCardV1Icon: [
427
+ "altText",
428
+ "iconUrl",
429
+ "imageType",
430
+ "knownIcon",
431
+ "materialIcon"
432
+ ],
433
+ newCardAction: [
434
+ "actionLabel",
435
+ "onClick"
436
+ ],
437
+ newGoogleAppsCardV1CommonWidgetAction: [
438
+ "updateVisibilityAction"
439
+ ],
440
+ newGoogleAppsCardV1Action: [
441
+ "allWidgetsAreRequired",
442
+ "function",
443
+ "interaction",
444
+ "loadIndicator",
445
+ "parameters",
446
+ "persistValues",
447
+ "requiredWidgets"
448
+ ],
449
+ newTextParagraph: [
450
+ "text"
451
+ ],
452
+ newCompleteImportSpaceRequest: [],
453
+ newTextButton: [
454
+ "onClick",
455
+ "text"
456
+ ],
457
+ newFormAction: [
458
+ "actionMethodName",
459
+ "parameters"
460
+ ],
461
+ newGoogleAppsCardV1DataSourceConfig: [
462
+ "platformDataSource",
463
+ "remoteDataSource"
464
+ ],
465
+ newGoogleAppsCardV1Condition: [
466
+ "actionRuleId",
467
+ "expressionDataCondition"
468
+ ],
469
+ newChatClientDataSourceMarkup: [
470
+ "spaceDataSource"
471
+ ],
472
+ newGoogleAppsCardV1Image: [
473
+ "altText",
474
+ "imageUrl",
475
+ "onClick"
476
+ ],
477
+ newMatchedUrl: [
478
+ "url"
479
+ ],
480
+ newSpaceDetails: [
481
+ "description",
482
+ "guidelines"
483
+ ],
484
+ newGoogleAppsCardV1Widgets: [
485
+ "buttonList",
486
+ "chipList",
487
+ "dateTimePicker",
488
+ "decoratedText",
489
+ "image",
490
+ "selectionInput",
491
+ "textInput",
492
+ "textParagraph"
493
+ ],
494
+ newAttachment: [
495
+ "attachmentDataRef",
496
+ "contentName",
497
+ "contentType",
498
+ "downloadUri",
499
+ "driveDataRef",
500
+ "name",
501
+ "source",
502
+ "thumbnailUri"
503
+ ],
504
+ newGoogleAppsCardV1ButtonList: [
505
+ "buttons"
506
+ ],
507
+ newGoogleAppsCardV1SelectionInput: [
508
+ "dataSourceConfigs",
509
+ "externalDataSource",
510
+ "hintText",
511
+ "items",
512
+ "label",
513
+ "multiSelectMaxSelectedItems",
514
+ "multiSelectMinQueryLength",
515
+ "name",
516
+ "onChangeAction",
517
+ "platformDataSource",
518
+ "type"
519
+ ],
520
+ newGoogleAppsCardV1DateTimePicker: [
521
+ "hostAppDataSource",
522
+ "label",
523
+ "name",
524
+ "onChangeAction",
525
+ "timezoneOffsetDate",
526
+ "type",
527
+ "valueMsEpoch"
528
+ ],
529
+ newChatSpaceLinkData: [
530
+ "message",
531
+ "space",
532
+ "thread"
533
+ ],
534
+ newHostAppDataSourceMarkup: [
535
+ "chatDataSource",
536
+ "workflowDataSource"
537
+ ],
538
+ newAccessoryWidget: [
539
+ "buttonList"
540
+ ],
541
+ newSpaceDataSource: [
542
+ "defaultToCurrentSpace"
543
+ ],
544
+ newCustomEmojiPayload: [
545
+ "fileContent",
546
+ "filename"
547
+ ],
548
+ newGoogleAppsCardV1Chip: [
549
+ "altText",
550
+ "disabled",
551
+ "enabled",
552
+ "icon",
553
+ "label",
554
+ "onClick"
555
+ ],
556
+ newMeetSpaceLinkData: [
557
+ "huddleStatus",
558
+ "meetingCode",
559
+ "type"
560
+ ],
561
+ newActionParameter: [
562
+ "key",
563
+ "value"
564
+ ],
565
+ newGoogleAppsCardV1ExpressionDataCondition: [
566
+ "conditionType"
567
+ ],
568
+ newGoogleAppsCardV1Widget: [
569
+ "buttonList",
570
+ "carousel",
571
+ "chipList",
572
+ "columns",
573
+ "dateTimePicker",
574
+ "decoratedText",
575
+ "divider",
576
+ "eventActions",
577
+ "grid",
578
+ "horizontalAlignment",
579
+ "id",
580
+ "image",
581
+ "selectionInput",
582
+ "textInput",
583
+ "textParagraph",
584
+ "visibility"
585
+ ],
586
+ newSpaceNotificationSetting: [
587
+ "muteSetting",
588
+ "name",
589
+ "notificationSetting"
590
+ ],
591
+ newAttachedGif: [
592
+ "uri"
593
+ ],
594
+ newGoogleAppsCardV1Carousel: [
595
+ "carouselCards"
596
+ ],
597
+ newSetUpSpaceRequest: [
598
+ "memberships",
599
+ "requestId",
600
+ "space"
601
+ ],
602
+ newGoogleAppsCardV1OverflowMenu: [
603
+ "items"
604
+ ],
605
+ newSection: [
606
+ "header",
607
+ "widgets"
608
+ ],
609
+ newGoogleAppsCardV1CarouselCard: [
610
+ "footerWidgets",
611
+ "widgets"
612
+ ],
613
+ newCardHeader: [
614
+ "imageStyle",
615
+ "imageUrl",
616
+ "subtitle",
617
+ "title"
618
+ ],
619
+ newReaction: [
620
+ "emoji",
621
+ "name",
622
+ "user"
623
+ ],
624
+ newGoogleAppsCardV1Trigger: [
625
+ "actionRuleId"
626
+ ],
627
+ newActionStatus: [
628
+ "statusCode",
629
+ "userFacingMessage"
630
+ ],
631
+ newGoogleAppsCardV1SelectionItem: [
632
+ "bottomText",
633
+ "selected",
634
+ "startIconUri",
635
+ "text",
636
+ "value"
637
+ ],
638
+ newAccessSettings: [
639
+ "accessState",
640
+ "audience"
641
+ ],
642
+ newCardWithId: [
643
+ "card",
644
+ "cardId"
645
+ ],
646
+ newUpdatedWidget: [
647
+ "suggestions",
648
+ "widget"
649
+ ],
650
+ newOpenLink: [
651
+ "url"
652
+ ],
653
+ newGoogleAppsCardV1Button: [
654
+ "altText",
655
+ "color",
656
+ "disabled",
657
+ "icon",
658
+ "onClick",
659
+ "text",
660
+ "type"
661
+ ],
662
+ newActionResponse: [
663
+ "dialogAction",
664
+ "type",
665
+ "updatedWidget",
666
+ "url"
667
+ ],
668
+ newOnClick: [
669
+ "action",
670
+ "openLink"
671
+ ]
672
+ }
673
+
674
+
675
+ class FakeAdvChat {
676
+ constructor() {
677
+ this.__fakeObjectType = "Chat";
678
+
679
+ Reflect.ownKeys(propsList).forEach((p) => {
680
+ this[p] = () => advClassMaker(propsList[p]);
681
+ });
682
+ }
683
+ toString() {
684
+ return "AdvancedServiceIdentifier{name=chat, version=v1}";
685
+ }
686
+
687
+ getVersion() {
688
+ return "v1";
689
+ }
690
+
691
+ get Spaces() {
692
+ return newFakeAdvChatSpaces(this);
693
+ }
694
+
695
+ __getChatPerformance() {
696
+ return chatCacher.getPerformance();
697
+ }
698
+ }
699
+
700
+ export const newFakeAdvChat = (...args) =>
701
+ Proxies.guard(new FakeAdvChat(...args));
@@ -0,0 +1,29 @@
1
+ import { FakeAdvResource } from "../common/fakeadvresource.js";
2
+ import { Syncit } from "../../support/syncit.js";
3
+ import { Proxies } from "../../support/proxies.js";
4
+
5
+ export const newFakeAdvChatSpaces = (...args) =>
6
+ Proxies.guard(new FakeAdvChatSpaces(...args));
7
+
8
+ /**
9
+ * @see https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces
10
+ */
11
+ class FakeAdvChatSpaces extends FakeAdvResource {
12
+ /**
13
+ *
14
+ * @param {object} mainService the main service
15
+ */
16
+ constructor(mainService) {
17
+ super(mainService, "spaces", Syncit.fxChat);
18
+ this.chat = mainService;
19
+ this.__fakeObjectType = "Chat.Spaces";
20
+ }
21
+
22
+ // get Messages() {
23
+ // return newFakeAdvChatMessages(this.chat);
24
+ // }
25
+
26
+ // get Members() {
27
+ // return newFakeAdvChatMembers(this.chat);
28
+ // }
29
+ }