@esri/hub-common 14.107.1 → 14.107.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.
- package/dist/esm/events/api/orval/api/orval-events.js +6 -6
- package/dist/esm/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/esm/events/api/types.js.map +1 -1
- package/dist/node/events/api/orval/api/orval-events.js +7 -7
- package/dist/node/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/node/events/api/types.js.map +1 -1
- package/dist/types/events/api/orval/api/orval-events.d.ts +96 -76
- package/dist/types/events/api/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { customClient } from "../custom-client";
|
|
2
|
-
export var EventStatus;
|
|
3
|
-
(function (EventStatus) {
|
|
4
|
-
EventStatus["PLANNED"] = "PLANNED";
|
|
5
|
-
EventStatus["CANCELED"] = "CANCELED";
|
|
6
|
-
EventStatus["REMOVED"] = "REMOVED";
|
|
7
|
-
})(EventStatus || (EventStatus = {}));
|
|
8
2
|
export var RegistrationStatus;
|
|
9
3
|
(function (RegistrationStatus) {
|
|
10
4
|
RegistrationStatus["PENDING"] = "PENDING";
|
|
@@ -18,6 +12,12 @@ export var RegistrationRole;
|
|
|
18
12
|
RegistrationRole["ORGANIZER"] = "ORGANIZER";
|
|
19
13
|
RegistrationRole["ATTENDEE"] = "ATTENDEE";
|
|
20
14
|
})(RegistrationRole || (RegistrationRole = {}));
|
|
15
|
+
export var EventStatus;
|
|
16
|
+
(function (EventStatus) {
|
|
17
|
+
EventStatus["PLANNED"] = "PLANNED";
|
|
18
|
+
EventStatus["CANCELED"] = "CANCELED";
|
|
19
|
+
EventStatus["REMOVED"] = "REMOVED";
|
|
20
|
+
})(EventStatus || (EventStatus = {}));
|
|
21
21
|
export var EventAttendanceType;
|
|
22
22
|
(function (EventAttendanceType) {
|
|
23
23
|
EventAttendanceType["VIRTUAL"] = "VIRTUAL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA6JhD,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;AACrB,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AACD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AACD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AAwED,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8CAAuB,CAAA;AACzB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AACD,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0BAAW,CAAA;IACX,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB;AA6DD,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,YAA0B,EAC1B,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,uBAAuB;QAC5B,MAAM,EAAE,MAAM;QAC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;QAC/C,IAAI,EAAE,mBAAmB;KAC1B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,8BAA8B,EAAE,MAAM,EAAE,KAAK,EAAE,EACtD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,EAAU,EACV,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC5D,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,EAAU,EACV,mBAAwC,EACxC,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB;QACE,GAAG,EAAE,gCAAgC,EAAE,EAAE;QACzC,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,mBAAmB;KAC1B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,EAAU,EACV,OAA8C,EAC9C,EAAE;IACF,OAAO,YAAY,CACjB,EAAE,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAC/D,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/events/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,WAAW,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/events/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,WAAW,EAkBX,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteRegistration = exports.updateRegistration = exports.getRegistration = exports.getRegistrations = exports.createRegistration = exports.deleteEvent = exports.updateEvent = exports.getEvent = exports.getEvents = exports.createEvent = exports.EventAccess = exports.EventAttendanceType = exports.
|
|
3
|
+
exports.deleteRegistration = exports.updateRegistration = exports.getRegistration = exports.getRegistrations = exports.createRegistration = exports.deleteEvent = exports.updateEvent = exports.getEvent = exports.getEvents = exports.createEvent = exports.EventAccess = exports.EventAttendanceType = exports.EventStatus = exports.RegistrationRole = exports.RegistrationStatus = void 0;
|
|
4
4
|
const custom_client_1 = require("../custom-client");
|
|
5
|
-
var EventStatus;
|
|
6
|
-
(function (EventStatus) {
|
|
7
|
-
EventStatus["PLANNED"] = "PLANNED";
|
|
8
|
-
EventStatus["CANCELED"] = "CANCELED";
|
|
9
|
-
EventStatus["REMOVED"] = "REMOVED";
|
|
10
|
-
})(EventStatus = exports.EventStatus || (exports.EventStatus = {}));
|
|
11
5
|
var RegistrationStatus;
|
|
12
6
|
(function (RegistrationStatus) {
|
|
13
7
|
RegistrationStatus["PENDING"] = "PENDING";
|
|
@@ -21,6 +15,12 @@ var RegistrationRole;
|
|
|
21
15
|
RegistrationRole["ORGANIZER"] = "ORGANIZER";
|
|
22
16
|
RegistrationRole["ATTENDEE"] = "ATTENDEE";
|
|
23
17
|
})(RegistrationRole = exports.RegistrationRole || (exports.RegistrationRole = {}));
|
|
18
|
+
var EventStatus;
|
|
19
|
+
(function (EventStatus) {
|
|
20
|
+
EventStatus["PLANNED"] = "PLANNED";
|
|
21
|
+
EventStatus["CANCELED"] = "CANCELED";
|
|
22
|
+
EventStatus["REMOVED"] = "REMOVED";
|
|
23
|
+
})(EventStatus = exports.EventStatus || (exports.EventStatus = {}));
|
|
24
24
|
var EventAttendanceType;
|
|
25
25
|
(function (EventAttendanceType) {
|
|
26
26
|
EventAttendanceType["VIRTUAL"] = "VIRTUAL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":";;;AAQA,oDAAgD;
|
|
1
|
+
{"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":";;;AAQA,oDAAgD;AA6JhD,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;AACrB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AACD,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AACD,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAwED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8CAAuB,CAAA;AACzB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AACD,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0BAAW,CAAA;IACX,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AA6DY,QAAA,WAAW,GAAG,CACzB,YAA0B,EAC1B,OAA8C,EAC9C,EAAE;IAC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,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,mBAAmB;KAC1B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,gBAAgB,GAAG,CAC9B,OAA8C,EAC9C,EAAE;IACF,OAAO,4BAAY,CACjB,EAAE,GAAG,EAAE,8BAA8B,EAAE,MAAM,EAAE,KAAK,EAAE,EACtD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,eAAe,GAAG,CAC7B,EAAU,EACV,OAA8C,EAC9C,EAAE;IACF,OAAO,4BAAY,CACjB,EAAE,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC5D,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,kBAAkB,GAAG,CAChC,EAAU,EACV,mBAAwC,EACxC,OAA8C,EAC9C,EAAE;IACF,OAAO,4BAAY,CACjB;QACE,GAAG,EAAE,gCAAgC,EAAE,EAAE;QACzC,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,mBAAmB;KAC1B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,kBAAkB,GAAG,CAChC,EAAU,EACV,OAA8C,EAC9C,EAAE;IACF,OAAO,4BAAY,CACjB,EAAE,GAAG,EAAE,gCAAgC,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,EAC/D,OAAO,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/events/api/types.ts"],"names":[],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/events/api/types.ts"],"names":[],"mappings":";;AAAA,yDAuBkC;AAtBhC,2GAAA,WAAW,OAAA;AACX,mHAAA,mBAAmB,OAAA;AACnB,2GAAA,WAAW,OAAA;AAkBX,gHAAA,gBAAgB,OAAA;AAChB,kHAAA,kBAAkB,OAAA"}
|
|
@@ -31,6 +31,10 @@ export declare type GetEventsParams = {
|
|
|
31
31
|
* comma separated string list of event statuses
|
|
32
32
|
*/
|
|
33
33
|
status?: string;
|
|
34
|
+
/**
|
|
35
|
+
* string to match within an event title
|
|
36
|
+
*/
|
|
37
|
+
title?: string;
|
|
34
38
|
/**
|
|
35
39
|
* the max amount of events to return
|
|
36
40
|
*/
|
|
@@ -40,6 +44,14 @@ export declare type GetEventsParams = {
|
|
|
40
44
|
*/
|
|
41
45
|
start?: string;
|
|
42
46
|
};
|
|
47
|
+
export interface IUpdateRegistration {
|
|
48
|
+
/** Role of the user in the event */
|
|
49
|
+
role?: RegistrationRole;
|
|
50
|
+
/** Status of the registration */
|
|
51
|
+
status?: RegistrationStatus;
|
|
52
|
+
/** Attendance type for this registration */
|
|
53
|
+
type?: EventAttendanceType;
|
|
54
|
+
}
|
|
43
55
|
export interface ICreateRegistration {
|
|
44
56
|
/** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
|
|
45
57
|
agoId?: string;
|
|
@@ -71,6 +83,8 @@ export interface IUpdateEvent {
|
|
|
71
83
|
addresses?: ICreateAddress[];
|
|
72
84
|
/** Flag for all day event */
|
|
73
85
|
allDay?: boolean;
|
|
86
|
+
/** Boolean to indicate if users can register for an event */
|
|
87
|
+
allowRegistration?: boolean;
|
|
74
88
|
/** Valid ways to attend the event */
|
|
75
89
|
attendanceType?: EventAttendanceType[];
|
|
76
90
|
/** Description of the event */
|
|
@@ -96,28 +110,9 @@ export interface IUpdateEvent {
|
|
|
96
110
|
/** Title of the event */
|
|
97
111
|
title?: string;
|
|
98
112
|
}
|
|
99
|
-
export
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export declare type IAddressExtent = {
|
|
103
|
-
[key: string]: any;
|
|
104
|
-
};
|
|
105
|
-
export interface IAddress {
|
|
106
|
-
address: string;
|
|
107
|
-
address2: string | null;
|
|
108
|
-
capacity: number | null;
|
|
109
|
-
createdAt: string;
|
|
110
|
-
description: string | null;
|
|
111
|
-
event?: IEvent;
|
|
112
|
-
eventId: string;
|
|
113
|
-
extent: IAddressExtent;
|
|
114
|
-
geoAddress: string;
|
|
115
|
-
geoAddrType: string;
|
|
116
|
-
geoScore: number;
|
|
117
|
-
id: string;
|
|
118
|
-
location: IAddressLocation;
|
|
119
|
-
updatedAt: string;
|
|
120
|
-
venue: string | null;
|
|
113
|
+
export interface IRegistrationPermission {
|
|
114
|
+
canDelete: boolean;
|
|
115
|
+
canEdit: boolean;
|
|
121
116
|
}
|
|
122
117
|
export declare type IEventGeometry = {
|
|
123
118
|
[key: string]: any;
|
|
@@ -125,10 +120,43 @@ export declare type IEventGeometry = {
|
|
|
125
120
|
export declare type IEventCatalogItem = {
|
|
126
121
|
[key: string]: any;
|
|
127
122
|
};
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
123
|
+
export interface IEventPermission {
|
|
124
|
+
canDelete: boolean;
|
|
125
|
+
canEdit: boolean;
|
|
126
|
+
canSetAccessToOrg: boolean;
|
|
127
|
+
canSetAccessToPrivate: boolean;
|
|
128
|
+
canSetAccessToPublic: boolean;
|
|
129
|
+
canSetStatusToCancelled: boolean;
|
|
130
|
+
canSetStatusToRemoved: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface IEvent {
|
|
133
|
+
access: EventAccess;
|
|
134
|
+
addresses?: IAddress[];
|
|
135
|
+
allDay: boolean;
|
|
136
|
+
allowRegistration: boolean;
|
|
137
|
+
attendanceType: EventAttendanceType[];
|
|
138
|
+
catalog: IEventCatalogItem[] | null;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
createdById: string;
|
|
141
|
+
creator?: IUser;
|
|
142
|
+
description: string | null;
|
|
143
|
+
editGroups: string[] | null;
|
|
144
|
+
endDateTime: string;
|
|
145
|
+
geometry: IEventGeometry;
|
|
146
|
+
id: string;
|
|
147
|
+
notifyAttendees: boolean;
|
|
148
|
+
onlineMeetings?: IOnlineMeeting[];
|
|
149
|
+
orgId: string;
|
|
150
|
+
permission: IEventPermission;
|
|
151
|
+
readGroups: string[] | null;
|
|
152
|
+
recurrence: string | null;
|
|
153
|
+
registrations?: IRegistration[];
|
|
154
|
+
startDateTime: string;
|
|
155
|
+
status: EventStatus;
|
|
156
|
+
summary: string | null;
|
|
157
|
+
timeZone: string;
|
|
158
|
+
title: string;
|
|
159
|
+
updatedAt: string;
|
|
132
160
|
}
|
|
133
161
|
export declare enum RegistrationStatus {
|
|
134
162
|
PENDING = "PENDING",
|
|
@@ -141,27 +169,16 @@ export declare enum RegistrationRole {
|
|
|
141
169
|
ORGANIZER = "ORGANIZER",
|
|
142
170
|
ATTENDEE = "ATTENDEE"
|
|
143
171
|
}
|
|
144
|
-
export
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
event?: IEvent;
|
|
149
|
-
eventId: string;
|
|
150
|
-
id: number;
|
|
151
|
-
role: RegistrationRole;
|
|
152
|
-
status: RegistrationStatus;
|
|
153
|
-
type: EventAttendanceType;
|
|
154
|
-
updatedAt: string;
|
|
155
|
-
user?: IUser;
|
|
156
|
-
userId: string;
|
|
172
|
+
export declare enum EventStatus {
|
|
173
|
+
PLANNED = "PLANNED",
|
|
174
|
+
CANCELED = "CANCELED",
|
|
175
|
+
REMOVED = "REMOVED"
|
|
157
176
|
}
|
|
158
177
|
export interface IOnlineMeeting {
|
|
159
178
|
capacity: number | null;
|
|
160
179
|
createdAt: string;
|
|
161
180
|
details: string | null;
|
|
162
|
-
event?: IEvent;
|
|
163
181
|
eventId: string;
|
|
164
|
-
id: string;
|
|
165
182
|
updatedAt: string;
|
|
166
183
|
url: string;
|
|
167
184
|
}
|
|
@@ -176,6 +193,42 @@ export interface IUser {
|
|
|
176
193
|
updatedAt: string;
|
|
177
194
|
username: string;
|
|
178
195
|
}
|
|
196
|
+
export interface IRegistration {
|
|
197
|
+
createdAt: string;
|
|
198
|
+
createdBy?: IUser;
|
|
199
|
+
createdById: string;
|
|
200
|
+
event?: IEvent;
|
|
201
|
+
eventId: string;
|
|
202
|
+
id: number;
|
|
203
|
+
permission: IRegistrationPermission;
|
|
204
|
+
role: RegistrationRole;
|
|
205
|
+
status: RegistrationStatus;
|
|
206
|
+
type: EventAttendanceType;
|
|
207
|
+
updatedAt: string;
|
|
208
|
+
user?: IUser;
|
|
209
|
+
userId: string;
|
|
210
|
+
}
|
|
211
|
+
export declare type IAddressLocation = {
|
|
212
|
+
[key: string]: any;
|
|
213
|
+
};
|
|
214
|
+
export declare type IAddressExtent = {
|
|
215
|
+
[key: string]: any;
|
|
216
|
+
};
|
|
217
|
+
export interface IAddress {
|
|
218
|
+
address: string;
|
|
219
|
+
address2: string | null;
|
|
220
|
+
capacity: number | null;
|
|
221
|
+
createdAt: string;
|
|
222
|
+
description: string | null;
|
|
223
|
+
eventId: string;
|
|
224
|
+
extent: IAddressExtent;
|
|
225
|
+
geoAddress: string;
|
|
226
|
+
geoAddrType: string;
|
|
227
|
+
geoScore: number;
|
|
228
|
+
location: IAddressLocation;
|
|
229
|
+
updatedAt: string;
|
|
230
|
+
venue: string | null;
|
|
231
|
+
}
|
|
179
232
|
/**
|
|
180
233
|
* GeoJSON formatted geometry related to the event
|
|
181
234
|
*/
|
|
@@ -194,46 +247,11 @@ export declare enum EventAttendanceType {
|
|
|
194
247
|
VIRTUAL = "VIRTUAL",
|
|
195
248
|
IN_PERSON = "IN_PERSON"
|
|
196
249
|
}
|
|
197
|
-
export interface IUpdateRegistration {
|
|
198
|
-
/** Role of the user in the event */
|
|
199
|
-
role?: RegistrationRole;
|
|
200
|
-
/** Status of the registration */
|
|
201
|
-
status?: RegistrationStatus;
|
|
202
|
-
/** Attendance type for this registration */
|
|
203
|
-
type?: EventAttendanceType;
|
|
204
|
-
}
|
|
205
250
|
export declare enum EventAccess {
|
|
206
251
|
PRIVATE = "PRIVATE",
|
|
207
252
|
ORG = "ORG",
|
|
208
253
|
PUBLIC = "PUBLIC"
|
|
209
254
|
}
|
|
210
|
-
export interface IEvent {
|
|
211
|
-
access: EventAccess;
|
|
212
|
-
addresses?: IAddress[];
|
|
213
|
-
allDay: boolean;
|
|
214
|
-
attendanceType: EventAttendanceType[];
|
|
215
|
-
catalog: IEventCatalogItem[] | null;
|
|
216
|
-
createdAt: string;
|
|
217
|
-
createdById: string;
|
|
218
|
-
creator?: IUser;
|
|
219
|
-
description: string | null;
|
|
220
|
-
editGroups: string[] | null;
|
|
221
|
-
endDateTime: string;
|
|
222
|
-
geometry: IEventGeometry;
|
|
223
|
-
id: string;
|
|
224
|
-
notifyAttendees: boolean;
|
|
225
|
-
onlineMeetings?: IOnlineMeeting[];
|
|
226
|
-
orgId: string;
|
|
227
|
-
readGroups: string[] | null;
|
|
228
|
-
recurrence: string | null;
|
|
229
|
-
registrations?: IRegistration[];
|
|
230
|
-
startDateTime: string;
|
|
231
|
-
status: EventStatus;
|
|
232
|
-
summary: string | null;
|
|
233
|
-
timeZone: string;
|
|
234
|
-
title: string;
|
|
235
|
-
updatedAt: string;
|
|
236
|
-
}
|
|
237
255
|
export interface ICreateAddress {
|
|
238
256
|
/** Street address */
|
|
239
257
|
address: string;
|
|
@@ -255,6 +273,8 @@ export interface ICreateEvent {
|
|
|
255
273
|
agoId?: string;
|
|
256
274
|
/** Flag for all day event */
|
|
257
275
|
allDay?: boolean;
|
|
276
|
+
/** Boolean to indicate if users can register for an event */
|
|
277
|
+
allowRegistration?: boolean;
|
|
258
278
|
/** Valid ways to attend the event */
|
|
259
279
|
attendanceType?: EventAttendanceType[];
|
|
260
280
|
/** Description of the event */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EventAccess, EventAttendanceType, EventStatus, GetEventsParams, IAddress, IAddressExtent, IAddressLocation, ICreateAddress, ICreateEvent, ICreateEventGeometry, ICreateRegistration, IEvent, IEventCatalogItem, IEventGeometry, IRegistration, IUpdateEvent, IUpdateRegistration, IUser, RegistrationRole, RegistrationStatus, } from "./orval/api/orval-events";
|
|
1
|
+
export { EventAccess, EventAttendanceType, EventStatus, GetEventsParams, IAddress, IAddressExtent, IAddressLocation, ICreateAddress, ICreateEvent, ICreateEventGeometry, ICreateRegistration, IEvent, IEventPermission, IEventCatalogItem, IEventGeometry, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, IUser, RegistrationRole, RegistrationStatus, } from "./orval/api/orval-events";
|
|
2
2
|
import { IHubRequestOptions } from "../../types";
|
|
3
3
|
import { ICreateEvent, IUpdateEvent, ICreateRegistration, IUpdateRegistration, GetEventsParams } from "./orval/api/orval-events";
|
|
4
4
|
/**
|