This repository has been archived by the owner on May 16, 2023. It is now read-only.
/
tokens.ts
148 lines (146 loc) · 3.82 KB
/
tokens.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import { Token } from "./base";
import { AppComponent } from "./app.component";
/**
* For more information on Tokens, see the Token interface definition
* in base.ts. This is an unordered list of all tokens that can supply
* values for POST body templates and URL endpoints for both the demo
* tenant and authenticated users. The demoTenantValue and
* authenticatedUserValue fields are checked first, and then the
* defaultValue fields.
*/
export const Tokens: Token[] = [
{
placeholder: "group-id",
demoTenantValue: "02bd9fd6-8f93-4758-87c3-1fb73740a315",
},
{
placeholder: "drive-item-id",
demoTenantValue: "01BYE5RZZ5OJSCSRM6BZDY7ZEFZ3NJ2QAY",
},
{
placeholder: "section-id",
demoTenantValue: "1-fb22b2f1-379f-4da4-bf7b-be5dcca7b99a",
},
{
placeholder: "notebook-id",
demoTenantValue: "1-fb22b2f1-379f-4da4-bf7b-be5dcca7b99a",
},
{
placeholder: "group-id-with-plan",
demoTenantValue: "1e770bc2-3c5f-487f-871f-16fbdf1c8ed8",
},
{
placeholder: "plan-id",
demoTenantValue: "CONGZUWfGUu4msTgNP66e2UAAySi",
},
{
placeholder: "{bucket-id}",
demoTenantValue: "1m6FwcAAZ0eW5J1Abe7ndWUAJ1ca",
},
{
placeholder: "{bucket-name}",
demoTenantValue: "New Bucket",
},
{
placeholder: "task-id",
demoTenantValue: "oIx3zN98jEmVOM-4mUJzSGUANeje",
},
{
placeholder: "task-title",
defaultValue: "New Task",
},
{
placeholder: "extension-id",
demoTenantValue: "com.contoso.roamingSettings",
},
{
placeholder: "host-name",
demoTenantValue: "M365x214355.sharepoint.com",
},
{
placeholder: "server-relative-path",
demoTenantValue: "sites/contoso/Departments/SM/MarketingDocuments",
},
{
placeholder: "group-id-for-teams",
demoTenantValue: "02bd9fd6-8f93-4758-87c3-1fb73740a315",
},
{
placeholder: "team-id",
demoTenantValue: "02bd9fd6-8f93-4758-87c3-1fb73740a315",
},
{
placeholder: "channel-id",
demoTenantValue: "19:d0bba23c2fc8413991125a43a54cc30e@thread.skype",
},
{
placeholder: "message-id",
demoTenantValue: "1501527481624"
},
{
placeholder: "reply-id",
demoTenantValue: "1501527483334"
},
{
placeholder: "application-id",
demoTenantValue: "03c2bc3d-adaf-45b9-86e2-e95bddc6ad3d"
},
{
placeholder: "destination-address",
demoTenantValue: "1.2.3.5"
},
{
placeholder: "today",
defaultValueFn: () => {
return (new Date()).toISOString()
}
},
{
placeholder: "todayMinusHour",
defaultValueFn: () => {
let todayMinusHour = new Date();
todayMinusHour.setHours(new Date().getHours() - 1);
return todayMinusHour.toISOString()
}
},
{
placeholder: "coworker-mail",
demoTenantValue: "meganb@M365x214355.onmicrosoft.com",
authenticatedUserValueFn: () => {
return AppComponent.explorerValues.authentication.user.emailAddress;
}
},
{
placeholder: "next-week",
defaultValueFn: () => {
let today = new Date();
let nextWeek = new Date();
nextWeek.setDate(today.getDate() + 7);
return nextWeek.toISOString()
}
},
{
placeholder: "user-mail",
demoTenantValue: "MiriamG@M365x214355.onmicrosoft.com",
authenticatedUserValueFn: () => {
return AppComponent.explorerValues.authentication.user.emailAddress;
}
},
{
placeholder: "domain",
defaultValueFn: () => {
return "contoso.com"
},
authenticatedUserValueFn: () => {
return AppComponent.explorerValues.authentication.user.emailAddress.split("@")[1];
}
},
{
placeholder: "list-id",
defaultValue: "d7689e2b-941a-4cd3-bb24-55cddee54294",
},
{
placeholder: "list-title",
defaultValue: "Contoso Home",
}
]