@esri/hub-common 14.113.0 → 14.114.0
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/events.js +1 -1
- package/dist/esm/events/api/events.js.map +1 -1
- package/dist/esm/events/api/orval/api/orval-events.js +8 -0
- package/dist/esm/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/esm/events/api/registrations.js +12 -14
- package/dist/esm/events/api/registrations.js.map +1 -1
- package/dist/esm/events/api/types.js +1 -1
- package/dist/esm/events/api/types.js.map +1 -1
- package/dist/node/events/api/events.js +1 -1
- package/dist/node/events/api/events.js.map +1 -1
- package/dist/node/events/api/orval/api/orval-events.js +9 -1
- package/dist/node/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/node/events/api/registrations.js +13 -14
- package/dist/node/events/api/registrations.js.map +1 -1
- package/dist/node/events/api/types.js +1 -0
- package/dist/node/events/api/types.js.map +1 -1
- package/dist/types/events/api/events.d.ts +3 -3
- package/dist/types/events/api/orval/api/orval-events.d.ts +95 -50
- package/dist/types/events/api/registrations.d.ts +9 -2
- package/dist/types/events/api/types.d.ts +5 -2
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export async function createEvent(options) {
|
|
|
14
14
|
* get events
|
|
15
15
|
*
|
|
16
16
|
* @param {IGetEventsParams} options
|
|
17
|
-
* @return {Promise<
|
|
17
|
+
* @return {Promise<IPagedEventResponse>}
|
|
18
18
|
*/
|
|
19
19
|
export async function getEvents(options) {
|
|
20
20
|
options.token = await authenticateRequest(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/events/api/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/events/api/events.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EACL,WAAW,IAAI,YAAY,EA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,4 +1,12 @@
|
|
|
1
1
|
import { customClient } from "../custom-client";
|
|
2
|
+
export var RegistrationSort;
|
|
3
|
+
(function (RegistrationSort) {
|
|
4
|
+
RegistrationSort["createdAt"] = "createdAt";
|
|
5
|
+
RegistrationSort["updatedAt"] = "updatedAt";
|
|
6
|
+
RegistrationSort["firstName"] = "firstName";
|
|
7
|
+
RegistrationSort["lastName"] = "lastName";
|
|
8
|
+
RegistrationSort["username"] = "username";
|
|
9
|
+
})(RegistrationSort || (RegistrationSort = {}));
|
|
2
10
|
export var SortOrder;
|
|
3
11
|
(function (SortOrder) {
|
|
4
12
|
SortOrder["asc"] = "asc";
|
|
@@ -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;AAOhD,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;AACvB,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAuHD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AACD,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4CAA+B,CAAA;IAC/B,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;AACzB,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAuGD,MAAM,CAAN,IA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AAe,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,27 +1,25 @@
|
|
|
1
1
|
import { authenticateRequest } from "./utils/authenticate-request";
|
|
2
|
-
import { createRegistration as _createRegistration, getRegistration as _getRegistration, updateRegistration as _updateRegistration, deleteRegistration as _deleteRegistration, } from "./orval/api/orval-events";
|
|
2
|
+
import { createRegistration as _createRegistration, getRegistrations as _getRegistrations, getRegistration as _getRegistration, updateRegistration as _updateRegistration, deleteRegistration as _deleteRegistration, } from "./orval/api/orval-events";
|
|
3
3
|
/**
|
|
4
4
|
* create an event registration
|
|
5
5
|
*
|
|
6
|
-
* @param {
|
|
6
|
+
* @param {ICreateRegistrationParams} options
|
|
7
7
|
* @return {Promise<IRegistration>}
|
|
8
8
|
*/
|
|
9
9
|
export async function createRegistration(options) {
|
|
10
10
|
options.token = await authenticateRequest(options);
|
|
11
11
|
return _createRegistration(options.data, options);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// return _getRegistrations(options.data, options);
|
|
24
|
-
// }
|
|
13
|
+
/**
|
|
14
|
+
* get registrations
|
|
15
|
+
*
|
|
16
|
+
* @param {IGetRegistrationsParams} options
|
|
17
|
+
* @return {Promise<IPagedRegistrationResponse>}
|
|
18
|
+
*/
|
|
19
|
+
export async function getRegistrations(options) {
|
|
20
|
+
options.token = await authenticateRequest(options);
|
|
21
|
+
return _getRegistrations(options.data, options);
|
|
22
|
+
}
|
|
25
23
|
/**
|
|
26
24
|
* get a registration
|
|
27
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registrations.js","sourceRoot":"","sources":["../../../../src/events/api/registrations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registrations.js","sourceRoot":"","sources":["../../../../src/events/api/registrations.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EACL,kBAAkB,IAAI,mBAAmB,EACzC,gBAAgB,IAAI,iBAAiB,EACrC,eAAe,IAAI,gBAAgB,EACnC,kBAAkB,IAAI,mBAAmB,EACzC,kBAAkB,IAAI,mBAAmB,GAC1C,MAAM,0BAA0B,CAAC;AAElC;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,OAAO,CAAC,KAAK,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,mBAAmB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAgC;IAEhC,OAAO,CAAC,KAAK,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,iBAAiB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,OAA+B;IAE/B,OAAO,CAAC,KAAK,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,gBAAgB,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,OAAO,CAAC,KAAK,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,mBAAmB,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,OAAO,CAAC,KAAK,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,mBAAmB,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EventAccess, EventAttendanceType, EventStatus, RegistrationRole, RegistrationStatus, SortOrder, EventSort, } from "./orval/api/orval-events";
|
|
1
|
+
export { EventAccess, EventAttendanceType, EventStatus, RegistrationRole, RegistrationStatus, RegistrationSort, SortOrder, EventSort, } from "./orval/api/orval-events";
|
|
2
2
|
//# sourceMappingURL=types.js.map
|
|
@@ -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,EAqBX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,SAAS,EACT,SAAS,GAGV,MAAM,0BAA0B,CAAC"}
|
|
@@ -18,7 +18,7 @@ exports.createEvent = createEvent;
|
|
|
18
18
|
* get events
|
|
19
19
|
*
|
|
20
20
|
* @param {IGetEventsParams} options
|
|
21
|
-
* @return {Promise<
|
|
21
|
+
* @return {Promise<IPagedEventResponse>}
|
|
22
22
|
*/
|
|
23
23
|
async function getEvents(options) {
|
|
24
24
|
options.token = await authenticate_request_1.authenticateRequest(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/events/api/events.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../../src/events/api/events.ts"],"names":[],"mappings":";;;AASA,uEAAmE;AACnE,2DAMkC;AAElC;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,OAA2B;IAE3B,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,0BAAY,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC;AALD,kCAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,SAAS,CAC7B,OAAyB;IAEzB,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,wBAAU,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC;AALD,8BAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,QAAQ,CAAC,OAAwB;IACrD,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,uBAAS,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC;AAHD,4BAGC;AAED;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,OAA2B;IAE3B,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,0BAAY,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AALD,kCAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAC/B,OAA2B;IAE3B,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,0BAAY,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC;AALD,kCAKC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
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.EventStatus = exports.RegistrationRole = exports.RegistrationStatus = exports.EventSort = exports.SortOrder = void 0;
|
|
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 = exports.EventSort = exports.SortOrder = exports.RegistrationSort = void 0;
|
|
4
4
|
const custom_client_1 = require("../custom-client");
|
|
5
|
+
var RegistrationSort;
|
|
6
|
+
(function (RegistrationSort) {
|
|
7
|
+
RegistrationSort["createdAt"] = "createdAt";
|
|
8
|
+
RegistrationSort["updatedAt"] = "updatedAt";
|
|
9
|
+
RegistrationSort["firstName"] = "firstName";
|
|
10
|
+
RegistrationSort["lastName"] = "lastName";
|
|
11
|
+
RegistrationSort["username"] = "username";
|
|
12
|
+
})(RegistrationSort = exports.RegistrationSort || (exports.RegistrationSort = {}));
|
|
5
13
|
var SortOrder;
|
|
6
14
|
(function (SortOrder) {
|
|
7
15
|
SortOrder["asc"] = "asc";
|
|
@@ -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;AAOhD,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;AACvB,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAuHD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AACD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4CAA+B,CAAA;IAC/B,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;AACzB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB;AAuGD,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,gBA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O,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,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteRegistration = exports.updateRegistration = exports.getRegistration = exports.createRegistration = void 0;
|
|
3
|
+
exports.deleteRegistration = exports.updateRegistration = exports.getRegistration = exports.getRegistrations = exports.createRegistration = void 0;
|
|
4
4
|
const authenticate_request_1 = require("./utils/authenticate-request");
|
|
5
5
|
const orval_events_1 = require("./orval/api/orval-events");
|
|
6
6
|
/**
|
|
7
7
|
* create an event registration
|
|
8
8
|
*
|
|
9
|
-
* @param {
|
|
9
|
+
* @param {ICreateRegistrationParams} options
|
|
10
10
|
* @return {Promise<IRegistration>}
|
|
11
11
|
*/
|
|
12
12
|
async function createRegistration(options) {
|
|
@@ -14,18 +14,17 @@ async function createRegistration(options) {
|
|
|
14
14
|
return orval_events_1.createRegistration(options.data, options);
|
|
15
15
|
}
|
|
16
16
|
exports.createRegistration = createRegistration;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// }
|
|
17
|
+
/**
|
|
18
|
+
* get registrations
|
|
19
|
+
*
|
|
20
|
+
* @param {IGetRegistrationsParams} options
|
|
21
|
+
* @return {Promise<IPagedRegistrationResponse>}
|
|
22
|
+
*/
|
|
23
|
+
async function getRegistrations(options) {
|
|
24
|
+
options.token = await authenticate_request_1.authenticateRequest(options);
|
|
25
|
+
return orval_events_1.getRegistrations(options.data, options);
|
|
26
|
+
}
|
|
27
|
+
exports.getRegistrations = getRegistrations;
|
|
29
28
|
/**
|
|
30
29
|
* get a registration
|
|
31
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registrations.js","sourceRoot":"","sources":["../../../../src/events/api/registrations.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"registrations.js","sourceRoot":"","sources":["../../../../src/events/api/registrations.ts"],"names":[],"mappings":";;;AASA,uEAAmE;AACnE,2DAMkC;AAElC;;;;;GAKG;AACI,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,iCAAmB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AALD,gDAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,gBAAgB,CACpC,OAAgC;IAEhC,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,+BAAiB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AALD,4CAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CACnC,OAA+B;IAE/B,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,8BAAgB,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AALD,0CAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,iCAAmB,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC5E,CAAC;AALD,gDAKC;AAED;;;;;GAKG;AACI,KAAK,UAAU,kBAAkB,CACtC,OAAkC;IAElC,OAAO,CAAC,KAAK,GAAG,MAAM,0CAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,iCAAmB,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AALD,gDAKC"}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "EventAttendanceType", { enumerable: true, get: f
|
|
|
6
6
|
Object.defineProperty(exports, "EventStatus", { enumerable: true, get: function () { return orval_events_1.EventStatus; } });
|
|
7
7
|
Object.defineProperty(exports, "RegistrationRole", { enumerable: true, get: function () { return orval_events_1.RegistrationRole; } });
|
|
8
8
|
Object.defineProperty(exports, "RegistrationStatus", { enumerable: true, get: function () { return orval_events_1.RegistrationStatus; } });
|
|
9
|
+
Object.defineProperty(exports, "RegistrationSort", { enumerable: true, get: function () { return orval_events_1.RegistrationSort; } });
|
|
9
10
|
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return orval_events_1.SortOrder; } });
|
|
10
11
|
Object.defineProperty(exports, "EventSort", { enumerable: true, get: function () { return orval_events_1.EventSort; } });
|
|
11
12
|
//# sourceMappingURL=types.js.map
|
|
@@ -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,yDA+BkC;AA9BhC,2GAAA,WAAW,OAAA;AACX,mHAAA,mBAAmB,OAAA;AACnB,2GAAA,WAAW,OAAA;AAqBX,gHAAA,gBAAgB,OAAA;AAChB,kHAAA,kBAAkB,OAAA;AAClB,gHAAA,gBAAgB,OAAA;AAChB,yGAAA,SAAS,OAAA;AACT,yGAAA,SAAS,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEvent, ICreateEventParams, IGetEventParams, IGetEventsParams, IUpdateEventParams, IDeleteEventParams } from "./types";
|
|
1
|
+
import { IEvent, IPagedEventResponse, ICreateEventParams, IGetEventParams, IGetEventsParams, IUpdateEventParams, IDeleteEventParams } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* create an event
|
|
4
4
|
*
|
|
@@ -10,9 +10,9 @@ export declare function createEvent(options: ICreateEventParams): Promise<IEvent
|
|
|
10
10
|
* get events
|
|
11
11
|
*
|
|
12
12
|
* @param {IGetEventsParams} options
|
|
13
|
-
* @return {Promise<
|
|
13
|
+
* @return {Promise<IPagedEventResponse>}
|
|
14
14
|
*/
|
|
15
|
-
export declare function getEvents(options: IGetEventsParams): Promise<
|
|
15
|
+
export declare function getEvents(options: IGetEventsParams): Promise<IPagedEventResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* get an event
|
|
18
18
|
*
|
|
@@ -6,59 +6,49 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { Awaited } from "../awaited-type";
|
|
8
8
|
import { customClient } from "../custom-client";
|
|
9
|
+
export interface IPagedRegistrationResponse {
|
|
10
|
+
items: IRegistration[];
|
|
11
|
+
nextStart: number;
|
|
12
|
+
total: number;
|
|
13
|
+
}
|
|
14
|
+
export declare enum RegistrationSort {
|
|
15
|
+
createdAt = "createdAt",
|
|
16
|
+
updatedAt = "updatedAt",
|
|
17
|
+
firstName = "firstName",
|
|
18
|
+
lastName = "lastName",
|
|
19
|
+
username = "username"
|
|
20
|
+
}
|
|
9
21
|
export declare type GetRegistrationsParams = {
|
|
10
22
|
/**
|
|
11
23
|
* Event id being registered for
|
|
12
24
|
*/
|
|
13
25
|
eventId?: string;
|
|
14
26
|
/**
|
|
15
|
-
* ArcGIS Online id for a user
|
|
16
|
-
*/
|
|
17
|
-
userAgoId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* the max amount of registrations to return
|
|
20
|
-
*/
|
|
21
|
-
num?: string;
|
|
22
|
-
/**
|
|
23
|
-
* the index to start at
|
|
27
|
+
* ArcGIS Online id for a user
|
|
24
28
|
*/
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
export declare type GetEventsParams = {
|
|
29
|
+
userId?: string;
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* comma separated string list of registration roles
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
role?: string;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
startDateTimeBefore?: string;
|
|
36
|
-
/**
|
|
37
|
-
* earliest ISO8601 start date-time for the events
|
|
38
|
-
*/
|
|
39
|
-
startDateTimeAfter?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Comma separated string list of AttendanceTypes
|
|
42
|
-
*/
|
|
43
|
-
attendanceTypes?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Comma separated string list of categories
|
|
35
|
+
* comma separated string list of registration statuses
|
|
46
36
|
*/
|
|
47
|
-
|
|
37
|
+
status?: string;
|
|
48
38
|
/**
|
|
49
|
-
* comma separated string list of
|
|
39
|
+
* comma separated string list of registration types
|
|
50
40
|
*/
|
|
51
|
-
|
|
41
|
+
type?: string;
|
|
52
42
|
/**
|
|
53
|
-
*
|
|
43
|
+
* latest ISO8601 updatedAt for the registrations
|
|
54
44
|
*/
|
|
55
|
-
|
|
45
|
+
updatedAtBefore?: string;
|
|
56
46
|
/**
|
|
57
|
-
*
|
|
47
|
+
* earliest ISO8601 updatedAt for the registrations
|
|
58
48
|
*/
|
|
59
|
-
|
|
49
|
+
updatedAtAfter?: string;
|
|
60
50
|
/**
|
|
61
|
-
* the max amount of
|
|
51
|
+
* the max amount of registrations to return
|
|
62
52
|
*/
|
|
63
53
|
num?: string;
|
|
64
54
|
/**
|
|
@@ -66,22 +56,14 @@ export declare type GetEventsParams = {
|
|
|
66
56
|
*/
|
|
67
57
|
start?: string;
|
|
68
58
|
/**
|
|
69
|
-
*
|
|
59
|
+
* property to sort results by
|
|
70
60
|
*/
|
|
71
|
-
sortBy?:
|
|
61
|
+
sortBy?: RegistrationSort;
|
|
72
62
|
/**
|
|
73
|
-
* sort
|
|
63
|
+
* sort order desc or asc
|
|
74
64
|
*/
|
|
75
65
|
sortOrder?: SortOrder;
|
|
76
66
|
};
|
|
77
|
-
export interface IUpdateRegistration {
|
|
78
|
-
/** Role of the user in the event */
|
|
79
|
-
role?: RegistrationRole;
|
|
80
|
-
/** Status of the registration */
|
|
81
|
-
status?: RegistrationStatus;
|
|
82
|
-
/** Attendance type for this registration */
|
|
83
|
-
type?: EventAttendanceType;
|
|
84
|
-
}
|
|
85
67
|
export interface ICreateRegistration {
|
|
86
68
|
/** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
|
|
87
69
|
agoId?: string;
|
|
@@ -146,6 +128,11 @@ export interface IUpdateEvent {
|
|
|
146
128
|
/** Title of the event */
|
|
147
129
|
title?: string;
|
|
148
130
|
}
|
|
131
|
+
export interface IPagedEventResponse {
|
|
132
|
+
items: IEvent[];
|
|
133
|
+
nextStart: number;
|
|
134
|
+
total: number;
|
|
135
|
+
}
|
|
149
136
|
export declare enum SortOrder {
|
|
150
137
|
asc = "asc",
|
|
151
138
|
desc = "desc"
|
|
@@ -156,6 +143,56 @@ export declare enum EventSort {
|
|
|
156
143
|
createdAt = "createdAt",
|
|
157
144
|
updatedAt = "updatedAt"
|
|
158
145
|
}
|
|
146
|
+
export declare type GetEventsParams = {
|
|
147
|
+
/**
|
|
148
|
+
* Comma separated string list of relation fields to include in response
|
|
149
|
+
*/
|
|
150
|
+
include?: string;
|
|
151
|
+
/**
|
|
152
|
+
* latest ISO8601 start date-time for the events
|
|
153
|
+
*/
|
|
154
|
+
startDateTimeBefore?: string;
|
|
155
|
+
/**
|
|
156
|
+
* earliest ISO8601 start date-time for the events
|
|
157
|
+
*/
|
|
158
|
+
startDateTimeAfter?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Comma separated string list of AttendanceTypes
|
|
161
|
+
*/
|
|
162
|
+
attendanceTypes?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Comma separated string list of categories
|
|
165
|
+
*/
|
|
166
|
+
categories?: string;
|
|
167
|
+
/**
|
|
168
|
+
* comma separated string list of event statuses
|
|
169
|
+
*/
|
|
170
|
+
status?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Comma separated string list of tags
|
|
173
|
+
*/
|
|
174
|
+
tags?: string;
|
|
175
|
+
/**
|
|
176
|
+
* string to match within an event title
|
|
177
|
+
*/
|
|
178
|
+
title?: string;
|
|
179
|
+
/**
|
|
180
|
+
* the max amount of events to return
|
|
181
|
+
*/
|
|
182
|
+
num?: string;
|
|
183
|
+
/**
|
|
184
|
+
* the index to start at
|
|
185
|
+
*/
|
|
186
|
+
start?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Event property to sort results by
|
|
189
|
+
*/
|
|
190
|
+
sortBy?: EventSort;
|
|
191
|
+
/**
|
|
192
|
+
* sort results order desc or asc
|
|
193
|
+
*/
|
|
194
|
+
sortOrder?: SortOrder;
|
|
195
|
+
};
|
|
159
196
|
export interface IRegistrationPermission {
|
|
160
197
|
canDelete: boolean;
|
|
161
198
|
canEdit: boolean;
|
|
@@ -187,7 +224,7 @@ export interface IEvent {
|
|
|
187
224
|
createdById: string | null;
|
|
188
225
|
creator?: IUser;
|
|
189
226
|
description: string | null;
|
|
190
|
-
editGroups: string[]
|
|
227
|
+
editGroups: string[];
|
|
191
228
|
endDateTime: string;
|
|
192
229
|
geometry: IEventGeometry;
|
|
193
230
|
id: string;
|
|
@@ -195,7 +232,7 @@ export interface IEvent {
|
|
|
195
232
|
onlineMeetings?: IOnlineMeeting[];
|
|
196
233
|
orgId: string;
|
|
197
234
|
permission: IEventPermission;
|
|
198
|
-
readGroups: string[]
|
|
235
|
+
readGroups: string[];
|
|
199
236
|
recurrence: string | null;
|
|
200
237
|
registrations?: IRegistration[];
|
|
201
238
|
startDateTime: string;
|
|
@@ -217,6 +254,14 @@ export declare enum RegistrationRole {
|
|
|
217
254
|
ORGANIZER = "ORGANIZER",
|
|
218
255
|
ATTENDEE = "ATTENDEE"
|
|
219
256
|
}
|
|
257
|
+
export interface IUpdateRegistration {
|
|
258
|
+
/** Role of the user in the event */
|
|
259
|
+
role?: RegistrationRole;
|
|
260
|
+
/** Status of the registration */
|
|
261
|
+
status?: RegistrationStatus;
|
|
262
|
+
/** Attendance type for this registration */
|
|
263
|
+
type?: EventAttendanceType;
|
|
264
|
+
}
|
|
220
265
|
export declare enum EventStatus {
|
|
221
266
|
PLANNED = "PLANNED",
|
|
222
267
|
CANCELED = "CANCELED",
|
|
@@ -362,12 +407,12 @@ export interface ICreateEvent {
|
|
|
362
407
|
}
|
|
363
408
|
declare type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
|
|
364
409
|
export declare const createEvent: (iCreateEvent: ICreateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
365
|
-
export declare const getEvents: (params?: GetEventsParams, options?: SecondParameter<typeof customClient>) => Promise<
|
|
410
|
+
export declare const getEvents: (params?: GetEventsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedEventResponse>;
|
|
366
411
|
export declare const getEvent: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
367
412
|
export declare const updateEvent: (id: string, iUpdateEvent: IUpdateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
368
413
|
export declare const deleteEvent: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
|
|
369
414
|
export declare const createRegistration: (iCreateRegistration: ICreateRegistration, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
370
|
-
export declare const getRegistrations: (params?: GetRegistrationsParams, options?: SecondParameter<typeof customClient>) => Promise<
|
|
415
|
+
export declare const getRegistrations: (params?: GetRegistrationsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedRegistrationResponse>;
|
|
371
416
|
export declare const getRegistration: (id: number, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
372
417
|
export declare const updateRegistration: (id: number, iUpdateRegistration: IUpdateRegistration, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
373
418
|
export declare const deleteRegistration: (id: number, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { IRegistration, ICreateRegistrationParams, IDeleteRegistrationParams, IGetRegistrationParams, IUpdateRegistrationParams } from "./types";
|
|
1
|
+
import { IRegistration, ICreateRegistrationParams, IDeleteRegistrationParams, IGetRegistrationParams, IUpdateRegistrationParams, IGetRegistrationsParams, IPagedRegistrationResponse } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* create an event registration
|
|
4
4
|
*
|
|
5
|
-
* @param {
|
|
5
|
+
* @param {ICreateRegistrationParams} options
|
|
6
6
|
* @return {Promise<IRegistration>}
|
|
7
7
|
*/
|
|
8
8
|
export declare function createRegistration(options: ICreateRegistrationParams): Promise<IRegistration>;
|
|
9
|
+
/**
|
|
10
|
+
* get registrations
|
|
11
|
+
*
|
|
12
|
+
* @param {IGetRegistrationsParams} options
|
|
13
|
+
* @return {Promise<IPagedRegistrationResponse>}
|
|
14
|
+
*/
|
|
15
|
+
export declare function getRegistrations(options: IGetRegistrationsParams): Promise<IPagedRegistrationResponse>;
|
|
9
16
|
/**
|
|
10
17
|
* get a registration
|
|
11
18
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { EventAccess, EventAttendanceType, EventStatus, GetEventsParams, IAddress, IAddressExtent, IAddressLocation, ICreateAddress, ICreateEvent, ICreateEventGeometry, ICreateRegistration, IEvent, IEventPermission, IEventCatalogItem, IEventGeometry, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, IUser, RegistrationRole, RegistrationStatus, SortOrder, EventSort, } from "./orval/api/orval-events";
|
|
1
|
+
export { EventAccess, EventAttendanceType, EventStatus, GetEventsParams, IAddress, IAddressExtent, IAddressLocation, IOnlineMeeting, ICreateOnlineMeeting, ICreateAddress, ICreateEvent, ICreateEventGeometry, ICreateRegistration, IEvent, IEventPermission, IEventCatalogItem, IEventGeometry, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, GetRegistrationsParams, IUser, RegistrationRole, RegistrationStatus, RegistrationSort, SortOrder, EventSort, IPagedRegistrationResponse, IPagedEventResponse, } from "./orval/api/orval-events";
|
|
2
2
|
import { IHubRequestOptions } from "../../types";
|
|
3
|
-
import { ICreateEvent, IUpdateEvent, ICreateRegistration, IUpdateRegistration,
|
|
3
|
+
import { ICreateEvent, IUpdateEvent, GetEventsParams, ICreateRegistration, IUpdateRegistration, GetRegistrationsParams } from "./orval/api/orval-events";
|
|
4
4
|
/**
|
|
5
5
|
* options for making requests against the Events API
|
|
6
6
|
*
|
|
@@ -35,6 +35,9 @@ export interface IDeleteEventParams extends IEventsRequestOptions {
|
|
|
35
35
|
export interface ICreateRegistrationParams extends IEventsRequestOptions {
|
|
36
36
|
data: ICreateRegistration;
|
|
37
37
|
}
|
|
38
|
+
export interface IGetRegistrationsParams extends IEventsRequestOptions {
|
|
39
|
+
data: GetRegistrationsParams;
|
|
40
|
+
}
|
|
38
41
|
export interface IGetRegistrationParams extends IEventsRequestOptions {
|
|
39
42
|
registrationId: number;
|
|
40
43
|
}
|