Skip to content

Commit 6ed8725

Browse files
ElizabethSamuel-MSFTgithub-actions
andauthored
Automatically generated docs (#2441)
* Automatically generated docs * Get latest --------- Co-authored-by: github-actions <[email protected]>
1 parent 7d14bf0 commit 6ed8725

File tree

149 files changed

+3642
-843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3642
-843
lines changed

docs/docs-ref-autogen/outlook/outlook/office.appointmentcompose.yml

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,13 @@ properties:
629629
message: "Progress indicator with id = " + id
630630
};
631631
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
632-
handleResult);
632+
(result) => {
633+
if (result.status === Office.AsyncResultStatus.Failed) {
634+
console.log(`Failed to add progress notification with id = ${id}. Try using a different ID.`);
635+
return;
636+
}
637+
console.log(`Added progress notification with id = ${id}.`);
638+
});
633639
634640
635641
...
@@ -648,7 +654,13 @@ properties:
648654
persistent: false
649655
};
650656
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
651-
handleResult);
657+
(result) => {
658+
if (result.status === Office.AsyncResultStatus.Failed) {
659+
console.log(`Failed to add informational notification with id = ${id}. Try using a different ID.`);
660+
return;
661+
}
662+
console.log(`Added informational notification with id = ${id}.`);
663+
});
652664
653665
654666
...
@@ -667,7 +679,13 @@ properties:
667679
persistent: true
668680
};
669681
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
670-
handleResult);
682+
(result) => {
683+
if (result.status === Office.AsyncResultStatus.Failed) {
684+
console.log(`Failed to add persistent informational notification with id = ${id}. Try using a different ID.`);
685+
return;
686+
}
687+
console.log(`Added persistent informational notification with id = ${id}.`);
688+
});
671689
672690
673691
...
@@ -682,8 +700,7 @@ properties:
682700
console.log(asyncResult.error.message);
683701
return;
684702
}
685-
686-
console.log(asyncResult.value);
703+
console.log(JSON.stringify(asyncResult.value));
687704
});
688705
689706
@@ -703,7 +720,13 @@ properties:
703720
icon: "icon2",
704721
persistent: false
705722
},
706-
handleResult);
723+
(result) => {
724+
if (result.status === Office.AsyncResultStatus.Failed) {
725+
console.log(`Failed to replace notification with id = ${id}. ${result.error.message}.`);
726+
return;
727+
}
728+
console.log(`Replaced notification with id = ${id}.`);
729+
});
707730
708731
...
709732
@@ -713,8 +736,14 @@ properties:
713736
const id = (document.getElementById("notificationId") as
714737
HTMLInputElement).value;
715738
716-
Office.context.mailbox.item.notificationMessages.removeAsync(id,
717-
handleResult);
739+
Office.context.mailbox.item.notificationMessages.removeAsync(id, (result)
740+
=> {
741+
if (result.status === Office.AsyncResultStatus.Failed) {
742+
console.log(`Failed to remove notification with id = ${id}. ${result.error.message}.`);
743+
return;
744+
}
745+
console.log(`Removed notification with id = ${id}.`);
746+
});
718747
719748
```
720749
@@ -1554,7 +1583,11 @@ methods:
15541583
getFileName(attachmentUrl),
15551584
{ isInline: false },
15561585
(result) => {
1557-
console.log(result);
1586+
if (result.status === Office.AsyncResultStatus.Failed) {
1587+
console.log(`Failed to add attachment: ${result.error.message}.`);
1588+
return;
1589+
}
1590+
console.log(`Added attachment with ID: ${result.value}`);
15581591
}
15591592
);
15601593
@@ -1800,7 +1833,11 @@ methods:
18001833
"logo.png",
18011834
{ isInline: false },
18021835
(result) => {
1803-
console.log(result);
1836+
if (result.status === Office.AsyncResultStatus.Failed) {
1837+
console.log(`Failed to add attachment from Base64-encoded string: ${result.error.message}.`);
1838+
return;
1839+
}
1840+
console.log(`Added attachment from a Base64-encoded string with ID: ${result.value}`);
18041841
}
18051842
);
18061843
@@ -3723,7 +3760,6 @@ methods:
37233760
console.error(result.error.message);
37243761
return;
37253762
}
3726-
37273763
console.log(`Attachment removed successfully.`);
37283764
}
37293765
);

docs/docs-ref-autogen/outlook/outlook/office.appointmentread.yml

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,13 @@ properties:
821821
message: "Progress indicator with id = " + id
822822
};
823823
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
824-
handleResult);
824+
(result) => {
825+
if (result.status === Office.AsyncResultStatus.Failed) {
826+
console.log(`Failed to add progress notification with id = ${id}. Try using a different ID.`);
827+
return;
828+
}
829+
console.log(`Added progress notification with id = ${id}.`);
830+
});
825831
826832
827833
...
@@ -840,7 +846,13 @@ properties:
840846
persistent: false
841847
};
842848
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
843-
handleResult);
849+
(result) => {
850+
if (result.status === Office.AsyncResultStatus.Failed) {
851+
console.log(`Failed to add informational notification with id = ${id}. Try using a different ID.`);
852+
return;
853+
}
854+
console.log(`Added informational notification with id = ${id}.`);
855+
});
844856
845857
846858
...
@@ -859,7 +871,13 @@ properties:
859871
persistent: true
860872
};
861873
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
862-
handleResult);
874+
(result) => {
875+
if (result.status === Office.AsyncResultStatus.Failed) {
876+
console.log(`Failed to add persistent informational notification with id = ${id}. Try using a different ID.`);
877+
return;
878+
}
879+
console.log(`Added persistent informational notification with id = ${id}.`);
880+
});
863881
864882
865883
...
@@ -874,8 +892,7 @@ properties:
874892
console.log(asyncResult.error.message);
875893
return;
876894
}
877-
878-
console.log(asyncResult.value);
895+
console.log(JSON.stringify(asyncResult.value));
879896
});
880897
881898
@@ -895,7 +912,13 @@ properties:
895912
icon: "icon2",
896913
persistent: false
897914
},
898-
handleResult);
915+
(result) => {
916+
if (result.status === Office.AsyncResultStatus.Failed) {
917+
console.log(`Failed to replace notification with id = ${id}. ${result.error.message}.`);
918+
return;
919+
}
920+
console.log(`Replaced notification with id = ${id}.`);
921+
});
899922
900923
...
901924
@@ -905,8 +928,14 @@ properties:
905928
const id = (document.getElementById("notificationId") as
906929
HTMLInputElement).value;
907930
908-
Office.context.mailbox.item.notificationMessages.removeAsync(id,
909-
handleResult);
931+
Office.context.mailbox.item.notificationMessages.removeAsync(id, (result)
932+
=> {
933+
if (result.status === Office.AsyncResultStatus.Failed) {
934+
console.log(`Failed to remove notification with id = ${id}. ${result.error.message}.`);
935+
return;
936+
}
937+
console.log(`Removed notification with id = ${id}.`);
938+
});
910939
911940
```
912941

docs/docs-ref-autogen/outlook/outlook/office.mailbox.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3361,7 +3361,11 @@ methods:
33613361
'</soap:Envelope>';
33623362
33633363
Office.context.mailbox.makeEwsRequestAsync(request, (result) => {
3364-
console.log(result);
3364+
if (result.status === Office.AsyncResultStatus.Failed) {
3365+
console.log(`Failed to make EWS request: ${result.error.message}.`);
3366+
return;
3367+
}
3368+
console.log(result.value);
33653369
});
33663370
33673371
```

docs/docs-ref-autogen/outlook/outlook/office.mailboxenums.actiontype.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ remarks: >-
4444
4545
4646
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
47-
handleResult);
47+
(result) => {
48+
if (result.status === Office.AsyncResultStatus.Failed) {
49+
console.log(`Failed to add insight notification with id = ${id}. Try using a different ID.`);
50+
return;
51+
}
52+
console.log(`Added insight notification with id = ${id}.`);
53+
});
4854
4955
```
5056

docs/docs-ref-autogen/outlook/outlook/office.mailboxenums.itemnotificationmessagetype.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ remarks: >-
3434
message: "Error notification message with id = " + id
3535
};
3636
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
37-
handleResult);
37+
(result) => {
38+
if (result.status === Office.AsyncResultStatus.Failed) {
39+
console.log(`Failed to add error notification with id = ${id}. Try using a different ID.`);
40+
return;
41+
}
42+
console.log(`Added error notification with id = ${id}.`);
43+
});
3844
3945
```
4046

docs/docs-ref-autogen/outlook/outlook/office.messagecompose.yml

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ remarks: >-
5353
getFileName(attachmentUrl),
5454
{ isInline: false },
5555
(result) => {
56-
console.log(result);
56+
if (result.status === Office.AsyncResultStatus.Failed) {
57+
console.log(`Failed to add attachment: ${result.error.message}.`);
58+
return;
59+
}
60+
console.log(`Added attachment with ID: ${result.value}`);
5761
}
5862
);
5963
@@ -779,7 +783,13 @@ properties:
779783
message: "Progress indicator with id = " + id
780784
};
781785
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
782-
handleResult);
786+
(result) => {
787+
if (result.status === Office.AsyncResultStatus.Failed) {
788+
console.log(`Failed to add progress notification with id = ${id}. Try using a different ID.`);
789+
return;
790+
}
791+
console.log(`Added progress notification with id = ${id}.`);
792+
});
783793
784794
785795
...
@@ -798,7 +808,13 @@ properties:
798808
persistent: false
799809
};
800810
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
801-
handleResult);
811+
(result) => {
812+
if (result.status === Office.AsyncResultStatus.Failed) {
813+
console.log(`Failed to add informational notification with id = ${id}. Try using a different ID.`);
814+
return;
815+
}
816+
console.log(`Added informational notification with id = ${id}.`);
817+
});
802818
803819
804820
...
@@ -817,7 +833,13 @@ properties:
817833
persistent: true
818834
};
819835
Office.context.mailbox.item.notificationMessages.addAsync(id, details,
820-
handleResult);
836+
(result) => {
837+
if (result.status === Office.AsyncResultStatus.Failed) {
838+
console.log(`Failed to add persistent informational notification with id = ${id}. Try using a different ID.`);
839+
return;
840+
}
841+
console.log(`Added persistent informational notification with id = ${id}.`);
842+
});
821843
822844
823845
...
@@ -832,8 +854,7 @@ properties:
832854
console.log(asyncResult.error.message);
833855
return;
834856
}
835-
836-
console.log(asyncResult.value);
857+
console.log(JSON.stringify(asyncResult.value));
837858
});
838859
839860
@@ -853,7 +874,13 @@ properties:
853874
icon: "icon2",
854875
persistent: false
855876
},
856-
handleResult);
877+
(result) => {
878+
if (result.status === Office.AsyncResultStatus.Failed) {
879+
console.log(`Failed to replace notification with id = ${id}. ${result.error.message}.`);
880+
return;
881+
}
882+
console.log(`Replaced notification with id = ${id}.`);
883+
});
857884
858885
...
859886
@@ -863,8 +890,14 @@ properties:
863890
const id = (document.getElementById("notificationId") as
864891
HTMLInputElement).value;
865892
866-
Office.context.mailbox.item.notificationMessages.removeAsync(id,
867-
handleResult);
893+
Office.context.mailbox.item.notificationMessages.removeAsync(id, (result)
894+
=> {
895+
if (result.status === Office.AsyncResultStatus.Failed) {
896+
console.log(`Failed to remove notification with id = ${id}. ${result.error.message}.`);
897+
return;
898+
}
899+
console.log(`Removed notification with id = ${id}.`);
900+
});
868901
869902
```
870903
@@ -1294,7 +1327,11 @@ methods:
12941327
getFileName(attachmentUrl),
12951328
{ isInline: false },
12961329
(result) => {
1297-
console.log(result);
1330+
if (result.status === Office.AsyncResultStatus.Failed) {
1331+
console.log(`Failed to add attachment: ${result.error.message}.`);
1332+
return;
1333+
}
1334+
console.log(`Added attachment with ID: ${result.value}`);
12981335
}
12991336
);
13001337
@@ -1547,7 +1584,11 @@ methods:
15471584
"logo.png",
15481585
{ isInline: false },
15491586
(result) => {
1550-
console.log(result);
1587+
if (result.status === Office.AsyncResultStatus.Failed) {
1588+
console.log(`Failed to add attachment from Base64-encoded string: ${result.error.message}.`);
1589+
return;
1590+
}
1591+
console.log(`Added attachment from a Base64-encoded string with ID: ${result.value}`);
15511592
}
15521593
);
15531594
@@ -4250,7 +4291,6 @@ methods:
42504291
console.error(result.error.message);
42514292
return;
42524293
}
4253-
42544294
console.log(`Attachment removed successfully.`);
42554295
}
42564296
);

0 commit comments

Comments
 (0)