@esri/hub-common 15.23.5 → 15.24.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.
@@ -1,5 +1,5 @@
1
1
  import { authenticateRequest } from "./utils/authenticate-request";
2
- import { createEvent as _createEvent, getEvents as _getEvents, getEvent as _getEvent, updateEvent as _updateEvent, deleteEvent as _deleteEvent, } from "./orval/api/orval-events";
2
+ import { createEvent as _createEvent, getEvents as _getEvents, searchEvents as _searchEvents, getEvent as _getEvent, updateEvent as _updateEvent, deleteEvent as _deleteEvent, } from "./orval/api/orval-events";
3
3
  /**
4
4
  * create an event
5
5
  *
@@ -12,6 +12,7 @@ export async function createEvent(options) {
12
12
  }
13
13
  /**
14
14
  * get events
15
+ * @deprecated use searchEvents instead
15
16
  *
16
17
  * @param {IGetEventsParams} options
17
18
  * @return {Promise<IPagedEventResponse>}
@@ -20,6 +21,16 @@ export async function getEvents(options) {
20
21
  options.token = await authenticateRequest(options);
21
22
  return _getEvents(options.data, options);
22
23
  }
24
+ /**
25
+ * search events
26
+ *
27
+ * @param {ISearchEventsParams} options
28
+ * @return {Promise<IPagedEventResponse>}
29
+ */
30
+ export async function searchEvents(options) {
31
+ options.token = await authenticateRequest(options);
32
+ return _searchEvents(options.data, options);
33
+ }
23
34
  /**
24
35
  * get an event
25
36
  *
@@ -1 +1 @@
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,EAC3B,SAAS,IAAI,UAAU,EACvB,QAAQ,IAAI,SAAS,EACrB,WAAW,IAAI,YAAY,EAC3B,WAAW,IAAI,YAAY,GAC5B,MAAM,0BAA0B,CAAC;AAElC;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,OAA2B;IAE3B,OAAO,CAAC,KAAK,GAAG,MA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B;IAE3B,OAAO,CAAC,KAAK,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACnD,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC"}
@@ -1,3 +1,10 @@
1
+ /* tslint:disable:interface-over-type-literal */
2
+ /**
3
+ * Generated by orval v6.24.0 🍺
4
+ * Do not edit manually.
5
+ * Hub Events Service
6
+ * OpenAPI spec version: 0.0.1
7
+ */
1
8
  import { customClient } from "../custom-client";
2
9
  export var RegistrationSort;
3
10
  (function (RegistrationSort) {
@@ -7,6 +14,14 @@ export var RegistrationSort;
7
14
  RegistrationSort["lastName"] = "lastName";
8
15
  RegistrationSort["username"] = "username";
9
16
  })(RegistrationSort || (RegistrationSort = {}));
17
+ export var GetEventsInclude;
18
+ (function (GetEventsInclude) {
19
+ GetEventsInclude["associations"] = "associations";
20
+ GetEventsInclude["creator"] = "creator";
21
+ GetEventsInclude["location"] = "location";
22
+ GetEventsInclude["onlineMeeting"] = "onlineMeeting";
23
+ GetEventsInclude["registrations"] = "registrations";
24
+ })(GetEventsInclude || (GetEventsInclude = {}));
10
25
  export var EventSortOrder;
11
26
  (function (EventSortOrder) {
12
27
  EventSortOrder["asc"] = "asc";
@@ -73,6 +88,14 @@ export const createEvent = (iCreateEvent, options) => {
73
88
  export const getEvents = (params, options) => {
74
89
  return customClient({ url: `/api/events/v1/events`, method: "GET", params }, options);
75
90
  };
91
+ export const searchEvents = (iSearchEvents, options) => {
92
+ return customClient({
93
+ url: `/api/events/v1/events/search`,
94
+ method: "POST",
95
+ headers: { "Content-Type": "application/json" },
96
+ data: iSearchEvents,
97
+ }, options);
98
+ };
76
99
  export const getEvent = (id, options) => {
77
100
  return customClient({ url: `/api/events/v1/events/${id}`, method: "GET" }, options);
78
101
  };
@@ -1 +1 @@
1
- {"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":"AAQ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AAE,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
+ {"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAmLhD,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;AA2FD,MAAM,CAAN,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,mDAA+B,CAAA;IAC/B,mDAA+B,CAAA;AACjC,CAAC,EANW,gBAAgB,KAAhB,gBAAgB,QAM3B;AAOD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;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,S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AG,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,0BAA0B,EAC1B,WAAW,EACX,mBAAmB,EACnB,WAAW,EAwBX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,iBAAiB,GAGlB,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/events/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,mBAAmB,EACnB,WAAW,EAyBX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,iBAAiB,GAGlB,MAAM,0BAA0B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteEvent = exports.updateEvent = exports.getEvent = exports.getEvents = exports.createEvent = void 0;
3
+ exports.deleteEvent = exports.updateEvent = exports.getEvent = exports.searchEvents = exports.getEvents = exports.createEvent = 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
  /**
@@ -16,6 +16,7 @@ async function createEvent(options) {
16
16
  exports.createEvent = createEvent;
17
17
  /**
18
18
  * get events
19
+ * @deprecated use searchEvents instead
19
20
  *
20
21
  * @param {IGetEventsParams} options
21
22
  * @return {Promise<IPagedEventResponse>}
@@ -25,6 +26,17 @@ async function getEvents(options) {
25
26
  return orval_events_1.getEvents(options.data, options);
26
27
  }
27
28
  exports.getEvents = getEvents;
29
+ /**
30
+ * search events
31
+ *
32
+ * @param {ISearchEventsParams} options
33
+ * @return {Promise<IPagedEventResponse>}
34
+ */
35
+ async function searchEvents(options) {
36
+ options.token = await authenticate_request_1.authenticateRequest(options);
37
+ return orval_events_1.searchEvents(options.data, options);
38
+ }
39
+ exports.searchEvents = searchEvents;
28
40
  /**
29
41
  * get an event
30
42
  *
@@ -1 +1 @@
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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,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,6 +1,13 @@
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.EventAssociationEntityType = exports.EventAttendanceType = exports.EventLocationType = exports.EventStatus = exports.RegistrationRole = exports.RegistrationStatus = exports.EventSort = exports.EventSortOrder = exports.RegistrationSort = void 0;
3
+ exports.deleteRegistration = exports.updateRegistration = exports.getRegistration = exports.getRegistrations = exports.createRegistration = exports.deleteEvent = exports.updateEvent = exports.getEvent = exports.searchEvents = exports.getEvents = exports.createEvent = exports.EventAccess = exports.EventAssociationEntityType = exports.EventAttendanceType = exports.EventLocationType = exports.EventStatus = exports.RegistrationRole = exports.RegistrationStatus = exports.EventSort = exports.EventSortOrder = exports.GetEventsInclude = exports.RegistrationSort = void 0;
4
+ /* tslint:disable:interface-over-type-literal */
5
+ /**
6
+ * Generated by orval v6.24.0 🍺
7
+ * Do not edit manually.
8
+ * Hub Events Service
9
+ * OpenAPI spec version: 0.0.1
10
+ */
4
11
  const custom_client_1 = require("../custom-client");
5
12
  var RegistrationSort;
6
13
  (function (RegistrationSort) {
@@ -10,6 +17,14 @@ var RegistrationSort;
10
17
  RegistrationSort["lastName"] = "lastName";
11
18
  RegistrationSort["username"] = "username";
12
19
  })(RegistrationSort = exports.RegistrationSort || (exports.RegistrationSort = {}));
20
+ var GetEventsInclude;
21
+ (function (GetEventsInclude) {
22
+ GetEventsInclude["associations"] = "associations";
23
+ GetEventsInclude["creator"] = "creator";
24
+ GetEventsInclude["location"] = "location";
25
+ GetEventsInclude["onlineMeeting"] = "onlineMeeting";
26
+ GetEventsInclude["registrations"] = "registrations";
27
+ })(GetEventsInclude = exports.GetEventsInclude || (exports.GetEventsInclude = {}));
13
28
  var EventSortOrder;
14
29
  (function (EventSortOrder) {
15
30
  EventSortOrder["asc"] = "asc";
@@ -76,6 +91,14 @@ exports.createEvent = (iCreateEvent, options) => {
76
91
  exports.getEvents = (params, options) => {
77
92
  return custom_client_1.customClient({ url: `/api/events/v1/events`, method: "GET", params }, options);
78
93
  };
94
+ exports.searchEvents = (iSearchEvents, options) => {
95
+ return custom_client_1.customClient({
96
+ url: `/api/events/v1/events/search`,
97
+ method: "POST",
98
+ headers: { "Content-Type": "application/json" },
99
+ data: iSearchEvents,
100
+ }, options);
101
+ };
79
102
  exports.getEvent = (id, options) => {
80
103
  return custom_client_1.customClient({ url: `/api/events/v1/events/${id}`, method: "GET" }, options);
81
104
  };
@@ -1 +1 @@
1
- {"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":";;;AAQA,oDAAgD;AAgBhD,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;AA+ID,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,+BAAa,CAAA;AACf,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AACD,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,4CAA+B,CAAA;IAC/B,o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E,GAAG,EAAE,8BAA8B;QACnC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,mBAAmB;KAC1B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,gBAAgB,GAAG,CAC9B,MAA+B,EAC/B,OAA8C,EAC9C,EAAE;IACF,OAAO,4BAAY,CACjB,EAAE,GAAG,EAAE,8BAA8B,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAC9D,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
+ {"version":3,"file":"orval-events.js","sourceRoot":"","sources":["../../../../../../src/events/api/orval/api/orval-events.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAChD;;;;;GAKG;AACH,oDAAgD;AAmLhD,IAAY,gBAMX;AAND,WAAY,gBAAg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AA,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,yDAoCkC;AAnChC,0HAAA,0BAA0B,OAAA;AAC1B,2GAAA,WAAW,OAAA;AACX,mHAAA,mBAAmB,OAAA;AACnB,2GAAA,WAAW,OAAA;AAwBX,gHAAA,gBAAgB,OAAA;AAChB,kHAAA,kBAAkB,OAAA;AAClB,gHAAA,gBAAgB,OAAA;AAChB,8GAAA,cAAc,OAAA;AACd,yGAAA,SAAS,OAAA;AACT,iHAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/events/api/types.ts"],"names":[],"mappings":";;AAAA,yDAqCkC;AApChC,0HAAA,0BAA0B,OAAA;AAC1B,2GAAA,WAAW,OAAA;AACX,mHAAA,mBAAmB,OAAA;AACnB,2GAAA,WAAW,OAAA;AAyBX,gHAAA,gBAAgB,OAAA;AAChB,kHAAA,kBAAkB,OAAA;AAClB,gHAAA,gBAAgB,OAAA;AAChB,8GAAA,cAAc,OAAA;AACd,yGAAA,SAAS,OAAA;AACT,iHAAA,iBAAiB,OAAA"}
@@ -1,4 +1,4 @@
1
- import { IEvent, IPagedEventResponse, ICreateEventParams, IGetEventParams, IGetEventsParams, IUpdateEventParams, IDeleteEventParams } from "./types";
1
+ import { IEvent, IPagedEventResponse, ICreateEventParams, IGetEventParams, IGetEventsParams, IUpdateEventParams, IDeleteEventParams, ISearchEventsParams } from "./types";
2
2
  /**
3
3
  * create an event
4
4
  *
@@ -8,11 +8,19 @@ import { IEvent, IPagedEventResponse, ICreateEventParams, IGetEventParams, IGetE
8
8
  export declare function createEvent(options: ICreateEventParams): Promise<IEvent>;
9
9
  /**
10
10
  * get events
11
+ * @deprecated use searchEvents instead
11
12
  *
12
13
  * @param {IGetEventsParams} options
13
14
  * @return {Promise<IPagedEventResponse>}
14
15
  */
15
16
  export declare function getEvents(options: IGetEventsParams): Promise<IPagedEventResponse>;
17
+ /**
18
+ * search events
19
+ *
20
+ * @param {ISearchEventsParams} options
21
+ * @return {Promise<IPagedEventResponse>}
22
+ */
23
+ export declare function searchEvents(options: ISearchEventsParams): Promise<IPagedEventResponse>;
16
24
  /**
17
25
  * get an event
18
26
  *
@@ -4,28 +4,8 @@
4
4
  * Hub Events Service
5
5
  * OpenAPI spec version: 0.0.1
6
6
  */
7
- import { Awaited } from "../awaited-type";
8
7
  import { customClient } from "../custom-client";
9
- export interface IUpdateRegistration {
10
- /** Role of the user in the event */
11
- role?: RegistrationRole;
12
- /** Status of the registration */
13
- status?: RegistrationStatus;
14
- /** Attendance type for this registration */
15
- type?: EventAttendanceType;
16
- }
17
- export interface IPagedRegistrationResponse {
18
- items: IRegistration[];
19
- nextStart: number;
20
- total: number;
21
- }
22
- export declare enum RegistrationSort {
23
- createdAt = "createdAt",
24
- updatedAt = "updatedAt",
25
- firstName = "firstName",
26
- lastName = "lastName",
27
- username = "username"
28
- }
8
+ import { Awaited } from "../awaited-type";
29
9
  export declare type GetRegistrationsParams = {
30
10
  /**
31
11
  * Event id being registered for
@@ -76,6 +56,136 @@ export declare type GetRegistrationsParams = {
76
56
  */
77
57
  sortOrder?: EventSortOrder;
78
58
  };
59
+ export declare type GetEventsParams = {
60
+ /**
61
+ * Comma separated string list of EventAccess. Example: PRIVATE,ORG,PUBLIC
62
+ */
63
+ access?: string;
64
+ /**
65
+ * Comma separated string list of AttendanceTypes. Example: VIRTUAL,IN_PERSON
66
+ */
67
+ attendanceTypes?: string;
68
+ /**
69
+ * boolean to filter events that can be edited by the user
70
+ */
71
+ canEdit?: string;
72
+ /**
73
+ * Comma separated string list of categories
74
+ */
75
+ categories?: string;
76
+ /**
77
+ * Comma separated string list of createdByIds
78
+ */
79
+ createdByIds?: string;
80
+ /**
81
+ * Comma separated string list of edit groupIds
82
+ */
83
+ editGroups?: string;
84
+ /**
85
+ * earliest ISO8601 end date-time for the events
86
+ */
87
+ endDateTimeAfter?: string;
88
+ /**
89
+ * latest ISO8601 end date-time for the events
90
+ */
91
+ endDateTimeBefore?: string;
92
+ /**
93
+ * Comma separated string list of associated entityIds
94
+ */
95
+ entityIds?: string;
96
+ /**
97
+ * Comma separated string list of associated entity types. Example: Hub Site Application,Hub Initiative,Hub Project
98
+ */
99
+ entityTypes?: string;
100
+ /**
101
+ * Comma separated string list of event ids
102
+ */
103
+ eventIds?: string;
104
+ /**
105
+ * JSON stringified esri geometry object
106
+ */
107
+ geometry?: string;
108
+ /**
109
+ * Comma separated string list of relation fields to include in response. Example: associations,creator,location,onlineMeeting,registrations
110
+ */
111
+ include?: string;
112
+ /**
113
+ * orgId string
114
+ */
115
+ orgId?: string;
116
+ /**
117
+ * the max amount of events to return
118
+ */
119
+ num?: string;
120
+ /**
121
+ * Comma separated string list of read groupIds
122
+ */
123
+ readGroups?: string;
124
+ /**
125
+ * Comma separated string list of shared groupIds
126
+ */
127
+ sharedToGroups?: string;
128
+ /**
129
+ * Event property to sort results by
130
+ */
131
+ sortBy?: EventSort;
132
+ /**
133
+ * sort results order desc or asc
134
+ */
135
+ sortOrder?: EventSortOrder;
136
+ /**
137
+ * the index to start at
138
+ */
139
+ start?: string;
140
+ /**
141
+ * earliest ISO8601 start date-time for the events
142
+ */
143
+ startDateTimeAfter?: string;
144
+ /**
145
+ * latest ISO8601 start date-time for the events
146
+ */
147
+ startDateTimeBefore?: string;
148
+ /**
149
+ * comma separated string list of event statuses. Example: PLANNED,CANCELED,REMOVED
150
+ */
151
+ status?: string;
152
+ /**
153
+ * Comma separated string list of tags
154
+ */
155
+ tags?: string;
156
+ /**
157
+ * string to match within an event title
158
+ */
159
+ title?: string;
160
+ /**
161
+ * Comma separated string list of edit groupIds that event is not shared to
162
+ */
163
+ withoutEditGroups?: string;
164
+ /**
165
+ * Comma separated string list of read groupIds that event is not shared to
166
+ */
167
+ withoutReadGroups?: string;
168
+ };
169
+ export interface IUpdateRegistration {
170
+ /** Role of the user in the event */
171
+ role?: RegistrationRole;
172
+ /** Status of the registration */
173
+ status?: RegistrationStatus;
174
+ /** Attendance type for this registration */
175
+ type?: EventAttendanceType;
176
+ }
177
+ export interface IPagedRegistrationResponse {
178
+ items: IRegistration[];
179
+ nextStart: number;
180
+ total: number;
181
+ }
182
+ export declare enum RegistrationSort {
183
+ createdAt = "createdAt",
184
+ updatedAt = "updatedAt",
185
+ firstName = "firstName",
186
+ lastName = "lastName",
187
+ username = "username"
188
+ }
79
189
  export interface ICreateRegistration {
80
190
  /** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
81
191
  agoId?: string;
@@ -158,6 +268,19 @@ export interface IUpdateEvent {
158
268
  /** Title of the event */
159
269
  title?: string;
160
270
  }
271
+ /**
272
+ * esri geometry object
273
+ */
274
+ export declare type ISearchEventsGeometry = {
275
+ [key: string]: any;
276
+ };
277
+ export declare enum GetEventsInclude {
278
+ associations = "associations",
279
+ creator = "creator",
280
+ location = "location",
281
+ onlineMeeting = "onlineMeeting",
282
+ registrations = "registrations"
283
+ }
161
284
  export interface IPagedEventResponse {
162
285
  items: IEvent[];
163
286
  nextStart: number;
@@ -173,112 +296,62 @@ export declare enum EventSort {
173
296
  createdAt = "createdAt",
174
297
  updatedAt = "updatedAt"
175
298
  }
176
- export declare type GetEventsParams = {
177
- /**
178
- * Comma separated string list of EventAccess. Example: PRIVATE,ORG,PUBLIC
179
- */
180
- access?: string;
181
- /**
182
- * Comma separated string list of AttendanceTypes. Example: VIRTUAL,IN_PERSON
183
- */
184
- attendanceTypes?: string;
185
- /**
186
- * boolean to filter events that can be edited by the user
187
- */
188
- canEdit?: string;
189
- /**
190
- * Comma separated string list of categories
191
- */
192
- categories?: string;
193
- /**
194
- * Comma separated string list of createdByIds
195
- */
196
- createdByIds?: string;
197
- /**
198
- * Comma separated string list of edit groupIds
199
- */
200
- editGroups?: string;
201
- /**
202
- * Comma separated string list of associated entityIds
203
- */
204
- entityIds?: string;
205
- /**
206
- * Comma separated string list of associated entity types. Example: Hub Site Application,Hub Initiative,Hub Project
207
- */
208
- entityTypes?: string;
209
- /**
210
- * Comma separated string list of event ids
211
- */
212
- eventIds?: string;
213
- /**
214
- * Comma separated string list of relation fields to include in response. Example: associations,creator,location,onlineMeeting,registrations
215
- */
216
- include?: string;
217
- /**
218
- * orgId string
219
- */
299
+ export interface ISearchEvents {
300
+ /** Array of EventAccess. Example: PRIVATE,ORG,PUBLIC */
301
+ access?: EventAccess[];
302
+ /** Array of AttendanceTypes. Example: VIRTUAL,IN_PERSON */
303
+ attendanceTypes?: EventAttendanceType[];
304
+ /** boolean to filter events that can be edited by the user */
305
+ canEdit?: boolean;
306
+ /** Array of categories */
307
+ categories?: string[];
308
+ /** Array of user ids */
309
+ createdByIds?: string[];
310
+ /** Array of edit groupIds */
311
+ editGroups?: string[];
312
+ /** earliest ISO8601 end date-time for the events */
313
+ endDateTimeAfter?: string;
314
+ /** latest ISO8601 end date-time for the events */
315
+ endDateTimeBefore?: string;
316
+ /** Array of associated entityIds */
317
+ entityIds?: string[];
318
+ /** Array of associated entity types. Example: Hub Site Application,Hub Initiative,Hub Project */
319
+ entityTypes?: EventAssociationEntityType[];
320
+ /** Array of event ids */
321
+ eventIds?: string[];
322
+ /** esri geometry object */
323
+ geometry?: ISearchEventsGeometry;
324
+ /** Array of relation fields to include in response. Example: associations,creator,location,onlineMeeting,registrations */
325
+ include?: GetEventsInclude[];
326
+ /** the max amount of events to return */
327
+ num?: number;
328
+ /** orgId string */
220
329
  orgId?: string;
221
- /**
222
- * the max amount of events to return
223
- */
224
- num?: string;
225
- /**
226
- * Comma separated string list of read groupIds
227
- */
228
- readGroups?: string;
229
- /**
230
- * Comma separated string list of shared groupIds
231
- */
232
- sharedToGroups?: string;
233
- /**
234
- * Event property to sort results by
235
- */
330
+ /** Array of read groupIds */
331
+ readGroups?: string[];
332
+ /** Array of shared groupIds */
333
+ sharedToGroups?: string[];
334
+ /** Event property to sort results by */
236
335
  sortBy?: EventSort;
237
- /**
238
- * sort results order desc or asc
239
- */
336
+ /** sort results order desc or asc */
240
337
  sortOrder?: EventSortOrder;
241
- /**
242
- * the index to start at
243
- */
244
- start?: string;
245
- /**
246
- * earliest ISO8601 start date-time for the events
247
- */
338
+ /** the index to start at */
339
+ start?: number;
340
+ /** earliest ISO8601 start date-time for the events */
248
341
  startDateTimeAfter?: string;
249
- /**
250
- * latest ISO8601 start date-time for the events
251
- */
342
+ /** latest ISO8601 start date-time for the events */
252
343
  startDateTimeBefore?: string;
253
- /**
254
- * earliest ISO8601 end date-time for the events
255
- */
256
- endDateTimeAfter?: string;
257
- /**
258
- * latest ISO8601 end date-time for the events
259
- */
260
- endDateTimeBefore?: string;
261
- /**
262
- * comma separated string list of event statuses. Example: PLANNED,CANCELED,REMOVED
263
- */
264
- status?: string;
265
- /**
266
- * Comma separated string list of tags
267
- */
268
- tags?: string;
269
- /**
270
- * string to match within an event title
271
- */
344
+ /** Array of event statuses. Example: PLANNED,CANCELED,REMOVED */
345
+ status?: EventStatus[];
346
+ /** Array of tags */
347
+ tags?: string[];
348
+ /** string to match within an event title */
272
349
  title?: string;
273
- /**
274
- * Comma separated string list of edit groupIds that event is not shared to
275
- */
276
- withoutEditGroups?: string;
277
- /**
278
- * Comma separated string list of read groupIds that event is not shared to
279
- */
280
- withoutReadGroups?: string;
281
- };
350
+ /** Array of edit groupIds that event is not shared to */
351
+ withoutEditGroups?: string[];
352
+ /** Array of read groupIds that event is not shared to */
353
+ withoutReadGroups?: string[];
354
+ }
282
355
  export interface IRegistrationPermission {
283
356
  canDelete: boolean;
284
357
  canEdit: boolean;
@@ -574,6 +647,7 @@ export declare enum EventAccess {
574
647
  declare type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
575
648
  export declare const createEvent: (iCreateEvent: ICreateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
576
649
  export declare const getEvents: (params?: GetEventsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedEventResponse>;
650
+ export declare const searchEvents: (iSearchEvents: ISearchEvents, options?: SecondParameter<typeof customClient>) => Promise<IPagedEventResponse>;
577
651
  export declare const getEvent: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
578
652
  export declare const updateEvent: (id: string, iUpdateEvent: IUpdateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
579
653
  export declare const deleteEvent: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
@@ -584,6 +658,7 @@ export declare const updateRegistration: (id: string, iUpdateRegistration: IUpda
584
658
  export declare const deleteRegistration: (id: string, options?: SecondParameter<typeof customClient>) => Promise<IRegistration>;
585
659
  export declare type CreateEventResult = NonNullable<Awaited<ReturnType<typeof createEvent>>>;
586
660
  export declare type GetEventsResult = NonNullable<Awaited<ReturnType<typeof getEvents>>>;
661
+ export declare type SearchEventsResult = NonNullable<Awaited<ReturnType<typeof searchEvents>>>;
587
662
  export declare type GetEventResult = NonNullable<Awaited<ReturnType<typeof getEvent>>>;
588
663
  export declare type UpdateEventResult = NonNullable<Awaited<ReturnType<typeof updateEvent>>>;
589
664
  export declare type DeleteEventResult = NonNullable<Awaited<ReturnType<typeof deleteEvent>>>;
@@ -1,6 +1,6 @@
1
- export { EventAssociationEntityType, EventAccess, EventAttendanceType, EventStatus, GetEventsParams, IEventAssociation, ICreateEventAssociation, IOnlineMeeting, ICreateOnlineMeeting, ICreateEvent, ICreateRegistration, IEvent, IEventPermission, IEventLocation, IEventLocationGeometriesItem, ILocationSpatialReference, IEventLocationSpatialReference, ICreateLocationSpatialReference, IEventRegistrationCount, ICreateEventLocation, ICreateEventLocationGeometriesItem, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, GetRegistrationsParams, IUser, RegistrationRole, RegistrationStatus, RegistrationSort, EventSortOrder, EventSort, EventLocationType, IPagedRegistrationResponse, IPagedEventResponse, } from "./orval/api/orval-events";
1
+ export { EventAssociationEntityType, EventAccess, EventAttendanceType, EventStatus, GetEventsParams, ISearchEvents, IEventAssociation, ICreateEventAssociation, IOnlineMeeting, ICreateOnlineMeeting, ICreateEvent, ICreateRegistration, IEvent, IEventPermission, IEventLocation, IEventLocationGeometriesItem, ILocationSpatialReference, IEventLocationSpatialReference, ICreateLocationSpatialReference, IEventRegistrationCount, ICreateEventLocation, ICreateEventLocationGeometriesItem, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, GetRegistrationsParams, IUser, RegistrationRole, RegistrationStatus, RegistrationSort, EventSortOrder, EventSort, EventLocationType, IPagedRegistrationResponse, IPagedEventResponse, } from "./orval/api/orval-events";
2
2
  import { IHubRequestOptions } from "../../types";
3
- import { ICreateEvent, IUpdateEvent, GetEventsParams, ICreateRegistration, IUpdateRegistration, GetRegistrationsParams } from "./orval/api/orval-events";
3
+ import { ICreateEvent, IUpdateEvent, GetEventsParams, ISearchEvents, ICreateRegistration, IUpdateRegistration, GetRegistrationsParams } from "./orval/api/orval-events";
4
4
  /**
5
5
  * options for making requests against the Events API
6
6
  *
@@ -22,6 +22,9 @@ export interface ICreateEventParams extends IEventsRequestOptions {
22
22
  export interface IGetEventsParams extends IEventsRequestOptions {
23
23
  data: GetEventsParams;
24
24
  }
25
+ export interface ISearchEventsParams extends IEventsRequestOptions {
26
+ data: ISearchEvents;
27
+ }
25
28
  export interface IGetEventParams extends IEventsRequestOptions {
26
29
  eventId: string;
27
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "15.23.5",
3
+ "version": "15.24.0",
4
4
  "description": "Common TypeScript types and utility functions for @esri/hub.js.",
5
5
  "main": "dist/node/index.js",
6
6
  "module": "dist/esm/index.js",