@esri/hub-common 28.1.0 → 28.3.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/ArcGISContext.js +10 -0
- package/dist/esm/ArcGISContext.js.map +1 -1
- package/dist/esm/ArcGISContextManager.js +57 -13
- package/dist/esm/ArcGISContextManager.js.map +1 -1
- package/dist/esm/core/schemas/internal/addDynamicSlugValidation.js +19 -11
- package/dist/esm/core/schemas/internal/addDynamicSlugValidation.js.map +1 -1
- package/dist/esm/core/schemas/internal/getSlugSchemaElement.js +6 -7
- package/dist/esm/core/schemas/internal/getSlugSchemaElement.js.map +1 -1
- package/dist/esm/events/api/orval/api/orval-events.js +12 -0
- package/dist/esm/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/esm/events/api/registrations.js +11 -1
- package/dist/esm/events/api/registrations.js.map +1 -1
- package/dist/esm/events/api/types.js.map +1 -1
- package/dist/esm/items/_internal/slugs.js +15 -0
- package/dist/esm/items/_internal/slugs.js.map +1 -1
- package/dist/esm/items/slugs.js +3 -3
- package/dist/esm/items/slugs.js.map +1 -1
- package/dist/esm/pages/HubPages.js +9 -6
- package/dist/esm/pages/HubPages.js.map +1 -1
- package/dist/esm/permissions/HubPermissionPolicies.js +14 -2
- package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/node/ArcGISContext.js +10 -0
- package/dist/node/ArcGISContext.js.map +1 -1
- package/dist/node/ArcGISContextManager.js +56 -12
- package/dist/node/ArcGISContextManager.js.map +1 -1
- package/dist/node/core/schemas/internal/addDynamicSlugValidation.js +19 -11
- package/dist/node/core/schemas/internal/addDynamicSlugValidation.js.map +1 -1
- package/dist/node/core/schemas/internal/getSlugSchemaElement.js +6 -7
- package/dist/node/core/schemas/internal/getSlugSchemaElement.js.map +1 -1
- package/dist/node/events/api/orval/api/orval-events.js +14 -1
- package/dist/node/events/api/orval/api/orval-events.js.map +1 -1
- package/dist/node/events/api/registrations.js +11 -0
- package/dist/node/events/api/registrations.js.map +1 -1
- package/dist/node/events/api/types.js.map +1 -1
- package/dist/node/items/_internal/slugs.js +16 -0
- package/dist/node/items/_internal/slugs.js.map +1 -1
- package/dist/node/items/slugs.js +3 -3
- package/dist/node/items/slugs.js.map +1 -1
- package/dist/node/pages/HubPages.js +8 -5
- package/dist/node/pages/HubPages.js.map +1 -1
- package/dist/node/permissions/HubPermissionPolicies.js +14 -2
- package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
- package/dist/types/ArcGISContext.d.ts +5 -0
- package/dist/types/ArcGISContextManager.d.ts +1 -0
- package/dist/types/content/_internal/internalContentUtils.d.ts +1 -1
- package/dist/types/core/schemas/internal/addDynamicSlugValidation.d.ts +2 -2
- package/dist/types/core/types/types.d.ts +1 -1
- package/dist/types/events/_internal/validations.d.ts +3 -3
- package/dist/types/events/api/orval/api/orval-events.d.ts +76 -54
- package/dist/types/events/api/registrations.d.ts +8 -1
- package/dist/types/events/api/types.d.ts +5 -2
- package/dist/types/items/_internal/slugs.d.ts +6 -0
- package/dist/types/items/slugs.d.ts +3 -2
- package/dist/types/search/wellKnownFacets.d.ts +1 -1
- package/dist/types/types/IArcGISContext.d.ts +6 -0
- package/dist/types/types/IArcGISContextManagerOptions.d.ts +4 -0
- package/dist/types/types/IArcGISContextOptions.d.ts +4 -0
- package/package.json +8 -1
package/dist/node/items/slugs.js
CHANGED
|
@@ -11,8 +11,9 @@ const slugs_1 = require("./_internal/slugs");
|
|
|
11
11
|
const slugConverters_1 = require("./_internal/slugConverters");
|
|
12
12
|
/**
|
|
13
13
|
* Create a slug, namespaced to an org and accounting for the 256 character limit
|
|
14
|
-
* of individual typekeywords.
|
|
15
|
-
*
|
|
14
|
+
* of individual typekeywords. Slugs are typically used to lookup items by a
|
|
15
|
+
* human readable name in urls. There is no means to ensure they are unique,
|
|
16
|
+
* so they should be used in conjunction with an id or other unique identifier.
|
|
16
17
|
* @param title
|
|
17
18
|
* @param orgKey
|
|
18
19
|
* @returns
|
|
@@ -133,7 +134,6 @@ function getUniqueSlug(slugInfo, requestOptions, step = 0) {
|
|
|
133
134
|
? combinedSlug
|
|
134
135
|
: getUniqueSlug(slugInfo, requestOptions, step + 1))
|
|
135
136
|
.catch((e) => {
|
|
136
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
137
137
|
throw Error(`Error in getUniqueSlug ${e}`);
|
|
138
138
|
});
|
|
139
139
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slugs.js","sourceRoot":"","sources":["../../../src/items/slugs.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"slugs.js","sourceRoot":"","sources":["../../../src/items/slugs.ts"],"names":[],"mappings":";;AAgBA,sCAiBC;AAUD,wCAWC;AAeD,sCAgBC;AAcD,0CAiCC;AAcD,sCAqBC;AAvKD,iEAAgF;AAGhF,8CAA2C;AAC3C,6CAA0E;AAC1E,+DAAkE;AAElE;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,KAAa,EAAE,MAAM,GAAG,EAAE;IACtD,kGAAkG;IAClG,0DAA0D;IAC1D,+CAA+C;IAC/C,uDAAuD;IACvD,uDAAuD;IACvD,uDAAuD;IACvD,sDAAsD;IACtD,MAAM,UAAU,GAAG,CAAC,CAAC;IACrB,MAAM,SAAS,GAAG,IAAA,iBAAO,EAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,4FAA4F;QAC5F,wGAAwG;QACxG,6GAA6G;QAC7G,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAA,oBAAY,EAAC,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CAAC;AACnE,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,YAAsB,EAAE,IAAY;IACjE,+BAA+B;IAC/B,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAC7C,CAAC,KAAa,EAAE,E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|
18
18
|
const computeProps_1 = require("./_internal/computeProps");
|
|
19
19
|
const arcgis_rest_portal_1 = require("@esri/arcgis-rest-portal");
|
|
20
20
|
const defaults_1 = require("./defaults");
|
|
21
|
-
const ensureUniqueEntitySlug_1 = require("../items/_internal/ensureUniqueEntitySlug");
|
|
22
21
|
const computeLinks_1 = require("./_internal/computeLinks");
|
|
23
22
|
const fetch_1 = require("../items/fetch");
|
|
24
23
|
const createModel_1 = require("../models/createModel");
|
|
@@ -27,6 +26,7 @@ const getModel_1 = require("../models/getModel");
|
|
|
27
26
|
const updateModel_1 = require("../models/updateModel");
|
|
28
27
|
const get_prop_1 = require("../objects/get-prop");
|
|
29
28
|
const map_by_1 = require("../utils/map-by");
|
|
29
|
+
const slugs_2 = require("../items/_internal/slugs");
|
|
30
30
|
/**
|
|
31
31
|
* @private
|
|
32
32
|
* Create a new Hub Page item
|
|
@@ -46,8 +46,10 @@ async function createPage(partialPage, requestOptions) {
|
|
|
46
46
|
if (!page.slug) {
|
|
47
47
|
page.slug = (0, slugs_1.constructSlug)(page.name, page.orgUrlKey);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
else {
|
|
50
|
+
page.slug = (0, slugs_2.constructEntitySlug)(page);
|
|
51
|
+
}
|
|
52
|
+
page.typeKeywords = (0, slugs_1.setSlugKeyword)(page.typeKeywords, page.slug);
|
|
51
53
|
// Map page object onto a default page Model
|
|
52
54
|
const mapper = new PropertyMapper_1.PropertyMapper((0, getPropertyMap_1.getPropertyMap)());
|
|
53
55
|
// create model from object, using the default model as a starting point
|
|
@@ -67,8 +69,9 @@ async function createPage(partialPage, requestOptions) {
|
|
|
67
69
|
* @param requestOptions
|
|
68
70
|
*/
|
|
69
71
|
async function updatePage(page, requestOptions) {
|
|
70
|
-
//
|
|
71
|
-
|
|
72
|
+
// We no longer enforce slug uniqueness, and leave that up to the user.
|
|
73
|
+
page.slug = (0, slugs_2.constructEntitySlug)(page);
|
|
74
|
+
page.typeKeywords = (0, slugs_1.setSlugKeyword)(page.typeKeywords, page.slug);
|
|
72
75
|
// get the backing item & data
|
|
73
76
|
const model = await (0, getModel_1.getModel)(page.id, requestOptions);
|
|
74
77
|
// create the PropertyMapper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubPages.js","sourceRoot":"","sources":["../../../src/pages/HubPages.ts"],"names":[],"mappings":";;AAsCA,
|
|
1
|
+
{"version":3,"file":"HubPages.js","sourceRoot":"","sources":["../../../src/pages/HubPages.ts"],"names":[],"mappings":";;AAsCA,gCAiCC;AAQD,gCA0BC;AAQD,8BAMC;AASD,gDASC;AAUD,8CAOC;AAQD,gCAOC;AASD,wDAsDC;AAxOD,sDAAkD;AAClD,oFAAmF;AACnF,wDAA6D;AAC7D,mEAAgE;AAIhE,kCAA8C;AAC9C,0CAA+D;AAC/D,qEAAkE;AAClE,+DAA4D;AAC5D,2DAAwD;AAExD,iEAAwE;AACxE,yCAA8D;AAC9D,2DAAwD;AACxD,0CAA8D;AAE9D,uDAAoD;AACpD,qEAAkE;AAClE,iDAA8C;AAC9C,uDAAoD;AACpD,kDAA8C;AAE9C,4CAAwC;AAExC,oDAA+D;AAG/D;;;;;;;;GAQG;AACI,KAAK,UAAU,UAAU,CAC9B,WAA8B,EAC9B,cAAmC;IAEnC,kCAAkC;IAClC,2CAA2C;IAC3C,MAAM,IAAI,mCAAQ,uBAAY,GAAK,WAAW,CAAE,CAAC;IAEjD,gCAAgC;IAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;IAE9C,uDAAuD;IACvD,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAA,qBAAa,EAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,IAAI,GAAG,IAAA,2BAAmB,EAAC,IAAiB,CAAC,C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AAY,CAAC,CAAC;IACxC,+CAA+C;IAC/C,MAAM,WAAW,GAAG,IAAA,cAAK,EAAC,YAAY,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,aAAM,CAAC,CAAC;IAC9D,wBAAwB;IACxB,IAAI,QAAQ,GAAG,EAAE,CAAC;IAClB,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;QACvB,mEAAmE;QACnE,QAAQ,GAAG,MAAM,IAAA,mCAAoB,EAAC,IAAI,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;IAC3E,CAAC;IAED,yCAAyC;IACzC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACrB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAA,kBAAO,EAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,eAAe;IACf,MAAM,CAAC,KAAK,GAAG,IAAA,2BAAY,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAElD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -349,12 +349,24 @@ const SystemPermissionPolicies = [
|
|
|
349
349
|
// Temporary permission for gating the translations for https://devtopia.esri.com/dc/hub/issues/14700
|
|
350
350
|
{
|
|
351
351
|
permission: "hub:feature:translations:14700",
|
|
352
|
-
environments: [
|
|
352
|
+
environments: [
|
|
353
|
+
"devext",
|
|
354
|
+
"qaext",
|
|
355
|
+
"production",
|
|
356
|
+
"enterprise",
|
|
357
|
+
"enterprise-k8s",
|
|
358
|
+
],
|
|
353
359
|
},
|
|
354
360
|
// Temporary permission for gating the translations for https://devtopia.esri.com/dc/hub/issues/14701
|
|
355
361
|
{
|
|
356
362
|
permission: "hub:feature:translations:14701",
|
|
357
|
-
environments: [
|
|
363
|
+
environments: [
|
|
364
|
+
"devext",
|
|
365
|
+
"qaext",
|
|
366
|
+
"production",
|
|
367
|
+
"enterprise",
|
|
368
|
+
"enterprise-k8s",
|
|
369
|
+
],
|
|
358
370
|
},
|
|
359
371
|
];
|
|
360
372
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubPermissionPolicies.js","sourceRoot":"","sources":["../../../src/permissions/HubPermissionPolicies.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"HubPermissionPolicies.js","sourceRoot":"","sources":["../../../src/permissions/HubPermissionPolicies.ts"],"names":[],"mappings":";;;AA8YA,kDAEC;AAhZD,8FAAgG;AAChG,qFAAuF;AACvF,4EAA+E;AAC/E,8FAAgG;AAChG,qFAAuF;AACvF,oFAAsF;AACtF,+EAAiF;AACjF,4EAA8E;AAC9E,6EAA0E;AAC1E,uHAAyH;AACzH,wFAA0F;AAC1F,+EAAiF;AACjF,4EAA8E;AAI9E,2CAA2C;AAC3C,8DAA8D;AAC9D,MAAM;AACN,gDAAgD;AAChD,2BAA2B;AAC3B,iCAAiC;AACjC,8CAA8C;AAC9C,OAAO;AACP,MAAM;AACN,uDAAuD;AACvD,2BAA2B;AAC3B,8CAA8C;AAC9C,oBAAoB;AACpB,UAAU;AACV,iDAAiD;AACjD,gCAAgC;AAChC,kCAAkC;AAClC,WAAW;AACX,UAAU;AACV,2CAA2C;AAC3C,uCAAuC;AACvC,oCAAoC;AACpC,WAAW;AACX,SAAS;AACT,OAAO;AACP,MAAM;AACN,gDAAgD;AAChD,iCAAiC;AACjC,2BAA2B;AAC3B,8CAA8C;AAC9C,oBAAoB;AACpB,UAAU;AACV,2CAA2C;AAC3C,gCAAgC;AAChC,kCAAkC;AAClC,WAAW;AACX,SAAS;AACT,OAAO;AACP,MAAM;AACN,6CAA6C;AAC7C,iCAAiC;AACjC,2BAA2B;AAC3B,8CAA8C;AAC9C,oBAAoB;AACpB,UAAU;AACV,2CAA2C;AAC3C,gCAAgC;AAChC,kCAAkC;AAClC,WAAW;AACX,SAAS;AACT,OAAO;AACP,KAAK;AAEL;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAwB;I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,EAAE,CAAC,2BAA2B,CAAC;QAC3C,YAAY,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,OAAO,CAAC;KAChD;IACD,qGAAqG;IACrG;QACE,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE;YACZ,QAAQ;YACR,OAAO;YACP,YAAY;YACZ,YAAY;YACZ,gBAAgB;SACjB;KACF;IACD,qGAAqG;IACrG;QACE,UAAU,EAAE,gCAAgC;QAC5C,YAAY,EAAE;YACZ,QAAQ;YACR,OAAO;YACP,YAAY;YACZ,YAAY;YACZ,gBAAgB;SACjB;KACF;CACF,CAAC;AAEF;;GAEG;AACU,QAAA,sBAAsB,GAAwB;IACzD,GAAG,2CAAuB;IAC1B,GAAG,gDAAyB;IAC5B,GAAG,sDAA4B;IAC/B,GAAG,sDAA4B;IAC/B,GAAG,gDAAyB;IAC5B,GAAG,gDAAyB;IAC5B,GAAG,4CAAuB;IAC1B,GAAG,0CAAsB;IACzB,GAAG,kDAA0B;IAC7B,GAAG,uDAA0B;IAC7B,GAAG,sEAAoC;IACvC,GAAG,wBAAwB;IAC3B,GAAG,4CAAuB;IAC1B,GAAG,0CAAsB;CAC1B,CAAC;AAEF;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,UAAsB;IACxD,OAAO,8BAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -41,6 +41,7 @@ export declare class ArcGISContext implements IArcGISContext {
|
|
|
41
41
|
private _hubHomeUrl;
|
|
42
42
|
private _portalSelf;
|
|
43
43
|
private _portalSettings;
|
|
44
|
+
private _livingAtlasGroupIds;
|
|
44
45
|
private _currentUser;
|
|
45
46
|
private _properties;
|
|
46
47
|
private _serviceStatus;
|
|
@@ -210,6 +211,10 @@ export declare class ArcGISContext implements IArcGISContext {
|
|
|
210
211
|
* Returns the portal settings object as IPortalSettings
|
|
211
212
|
*/
|
|
212
213
|
get portalSettings(): IPortalSettings;
|
|
214
|
+
/**
|
|
215
|
+
* Returns the array of Living Atlas Group Ids for the current environment
|
|
216
|
+
*/
|
|
217
|
+
get livingAtlasGroupIds(): string[];
|
|
213
218
|
/**
|
|
214
219
|
* Return the properties hash that was passed in.
|
|
215
220
|
* Useful for app-specific context such as the active
|
|
@@ -221,7 +221,7 @@ export declare function getValueFromMetadata(metadata: any, identifier: keyof IM
|
|
|
221
221
|
*/
|
|
222
222
|
export declare function parseISODateString(isoString: string): {
|
|
223
223
|
date: Date;
|
|
224
|
-
precision: "
|
|
224
|
+
precision: "year" | "month" | "day" | "time";
|
|
225
225
|
};
|
|
226
226
|
/**
|
|
227
227
|
* Get the spatial reference as an object for an item
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IConfigurationSchema } from "../types";
|
|
2
2
|
import { EditorOptions } from "./EditorOptions";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* based on the orgUrlKey
|
|
4
|
+
* Add slug max length and pattern validation to schema
|
|
5
|
+
* based on the orgUrlKey. We no longer enforce uniqueness.
|
|
6
6
|
* @param schema
|
|
7
7
|
* @param options
|
|
8
8
|
* @returns
|
|
@@ -19,7 +19,7 @@ export declare const EntityResourceMap: {
|
|
|
19
19
|
* what source was used. The values are used in IHubLocation.type.
|
|
20
20
|
* Please note that adding more values will require changes in the location picker
|
|
21
21
|
*/
|
|
22
|
-
export type IHubLocationType = "none" | "custom" | "org" | "item";
|
|
22
|
+
export type IHubLocationType = "none" | "custom" | "org" | "item" | "address";
|
|
23
23
|
/**
|
|
24
24
|
* Sort field for Hub Groups
|
|
25
25
|
*/
|
|
@@ -22,7 +22,7 @@ export declare const URL_VALIDATIONS_WHEN_ONLINE_OR_HYBRID: {
|
|
|
22
22
|
if: {
|
|
23
23
|
properties: {
|
|
24
24
|
attendanceType: {
|
|
25
|
-
enum: ("
|
|
25
|
+
enum: ("online" | "both")[];
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -42,7 +42,7 @@ export declare const FIXED_ONLINE_ATTENDANCE_VALIDATIONS: {
|
|
|
42
42
|
const: "fixed";
|
|
43
43
|
};
|
|
44
44
|
attendanceType: {
|
|
45
|
-
enum: ("
|
|
45
|
+
enum: ("online" | "both")[];
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
};
|
|
@@ -62,7 +62,7 @@ export declare const FIXED_IN_PERSON_ATTENDANCE_VALIDATIONS: {
|
|
|
62
62
|
const: "fixed";
|
|
63
63
|
};
|
|
64
64
|
attendanceType: {
|
|
65
|
-
enum: ("
|
|
65
|
+
enum: ("inPerson" | "both")[];
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
};
|
|
@@ -5,6 +5,56 @@
|
|
|
5
5
|
* OpenAPI spec version: 0.0.1
|
|
6
6
|
*/
|
|
7
7
|
import { customClient } from "../custom-client";
|
|
8
|
+
export type GetRegistrationsParams = {
|
|
9
|
+
/**
|
|
10
|
+
* Event id being registered for
|
|
11
|
+
*/
|
|
12
|
+
eventId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* ArcGIS Online id for a user
|
|
15
|
+
*/
|
|
16
|
+
userId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* comma separated string list of registration roles
|
|
19
|
+
*/
|
|
20
|
+
role?: string;
|
|
21
|
+
/**
|
|
22
|
+
* comma separated string list of registration statuses
|
|
23
|
+
*/
|
|
24
|
+
status?: string;
|
|
25
|
+
/**
|
|
26
|
+
* comma separated string list of registration types
|
|
27
|
+
*/
|
|
28
|
+
type?: string;
|
|
29
|
+
/**
|
|
30
|
+
* latest ISO8601 updatedAt for the registrations
|
|
31
|
+
*/
|
|
32
|
+
updatedAtBefore?: string;
|
|
33
|
+
/**
|
|
34
|
+
* earliest ISO8601 updatedAt for the registrations
|
|
35
|
+
*/
|
|
36
|
+
updatedAtAfter?: string;
|
|
37
|
+
/**
|
|
38
|
+
* filter to be matched to firstName, lastName, or username
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
* the max amount of registrations to return
|
|
43
|
+
*/
|
|
44
|
+
num?: string;
|
|
45
|
+
/**
|
|
46
|
+
* the index to start at
|
|
47
|
+
*/
|
|
48
|
+
start?: string;
|
|
49
|
+
/**
|
|
50
|
+
* property to sort results by
|
|
51
|
+
*/
|
|
52
|
+
sortBy?: RegistrationSort;
|
|
53
|
+
/**
|
|
54
|
+
* sort order desc or asc
|
|
55
|
+
*/
|
|
56
|
+
sortOrder?: EventSortOrder;
|
|
57
|
+
};
|
|
8
58
|
export type GetEventParams = {
|
|
9
59
|
/**
|
|
10
60
|
* Comma-separated list of relations to include (e.g. resources)
|
|
@@ -23,6 +73,18 @@ export declare enum RegistrationSort {
|
|
|
23
73
|
lastName = "lastName",
|
|
24
74
|
username = "username"
|
|
25
75
|
}
|
|
76
|
+
export interface IInviteRegistrations {
|
|
77
|
+
/** Event id to invite registrants to */
|
|
78
|
+
eventId: string;
|
|
79
|
+
/** Array of user agoIds to invite (max 25) */
|
|
80
|
+
inviteeIds: string[];
|
|
81
|
+
/** Role for the registrants */
|
|
82
|
+
role?: RegistrationRole;
|
|
83
|
+
/** Registration status to assign to invitees */
|
|
84
|
+
status?: RegistrationStatus;
|
|
85
|
+
/** Attendance type for the registrations */
|
|
86
|
+
type: EventAttendanceType;
|
|
87
|
+
}
|
|
26
88
|
/**
|
|
27
89
|
* Type of the event resource
|
|
28
90
|
*/
|
|
@@ -147,56 +209,6 @@ export declare enum EventSortOrder {
|
|
|
147
209
|
asc = "asc",
|
|
148
210
|
desc = "desc"
|
|
149
211
|
}
|
|
150
|
-
export type GetRegistrationsParams = {
|
|
151
|
-
/**
|
|
152
|
-
* Event id being registered for
|
|
153
|
-
*/
|
|
154
|
-
eventId?: string;
|
|
155
|
-
/**
|
|
156
|
-
* ArcGIS Online id for a user
|
|
157
|
-
*/
|
|
158
|
-
userId?: string;
|
|
159
|
-
/**
|
|
160
|
-
* comma separated string list of registration roles
|
|
161
|
-
*/
|
|
162
|
-
role?: string;
|
|
163
|
-
/**
|
|
164
|
-
* comma separated string list of registration statuses
|
|
165
|
-
*/
|
|
166
|
-
status?: string;
|
|
167
|
-
/**
|
|
168
|
-
* comma separated string list of registration types
|
|
169
|
-
*/
|
|
170
|
-
type?: string;
|
|
171
|
-
/**
|
|
172
|
-
* latest ISO8601 updatedAt for the registrations
|
|
173
|
-
*/
|
|
174
|
-
updatedAtBefore?: string;
|
|
175
|
-
/**
|
|
176
|
-
* earliest ISO8601 updatedAt for the registrations
|
|
177
|
-
*/
|
|
178
|
-
updatedAtAfter?: string;
|
|
179
|
-
/**
|
|
180
|
-
* filter to be matched to firstName, lastName, or username
|
|
181
|
-
*/
|
|
182
|
-
name?: string;
|
|
183
|
-
/**
|
|
184
|
-
* the max amount of registrations to return
|
|
185
|
-
*/
|
|
186
|
-
num?: string;
|
|
187
|
-
/**
|
|
188
|
-
* the index to start at
|
|
189
|
-
*/
|
|
190
|
-
start?: string;
|
|
191
|
-
/**
|
|
192
|
-
* property to sort results by
|
|
193
|
-
*/
|
|
194
|
-
sortBy?: RegistrationSort;
|
|
195
|
-
/**
|
|
196
|
-
* sort order desc or asc
|
|
197
|
-
*/
|
|
198
|
-
sortOrder?: EventSortOrder;
|
|
199
|
-
};
|
|
200
212
|
export declare enum EventSort {
|
|
201
213
|
title = "title",
|
|
202
214
|
startDateTime = "startDateTime",
|
|
@@ -414,9 +426,11 @@ export interface IEventLocation {
|
|
|
414
426
|
/** @nullable */
|
|
415
427
|
placeAddr: string | null;
|
|
416
428
|
/** @nullable */
|
|
429
|
+
placeAddr2: string | null;
|
|
430
|
+
/** @nullable */
|
|
417
431
|
placeName: string | null;
|
|
418
432
|
/** @nullable */
|
|
419
|
-
postal:
|
|
433
|
+
postal: string | null;
|
|
420
434
|
/** @nullable */
|
|
421
435
|
region: string | null;
|
|
422
436
|
/** @nullable */
|
|
@@ -580,7 +594,8 @@ export declare enum EventLocationType {
|
|
|
580
594
|
none = "none",
|
|
581
595
|
custom = "custom",
|
|
582
596
|
org = "org",
|
|
583
|
-
item = "item"
|
|
597
|
+
item = "item",
|
|
598
|
+
address = "address"
|
|
584
599
|
}
|
|
585
600
|
export interface ICreateLocationSpatialReference {
|
|
586
601
|
latestVcsWkid?: number;
|
|
@@ -605,10 +620,12 @@ export interface ICreateEventLocation {
|
|
|
605
620
|
nbrhd?: string;
|
|
606
621
|
/** Place address */
|
|
607
622
|
placeAddr?: string;
|
|
623
|
+
/** Place address 2 (e.g. building number, room number, or other directions) */
|
|
624
|
+
placeAddr2?: string;
|
|
608
625
|
/** Place name */
|
|
609
626
|
placeName?: string;
|
|
610
|
-
/** Postal */
|
|
611
|
-
postal?:
|
|
627
|
+
/** Postal code */
|
|
628
|
+
postal?: string;
|
|
612
629
|
/** Region */
|
|
613
630
|
region?: string;
|
|
614
631
|
/** Spatial reference */
|
|
@@ -686,6 +703,10 @@ export declare const createRegistration: (iCreateRegistration: ICreateRegistrati
|
|
|
686
703
|
* Get a list of registrations matching request criteria.
|
|
687
704
|
*/
|
|
688
705
|
export declare const getRegistrations: (params?: GetRegistrationsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedRegistrationResponse>;
|
|
706
|
+
/**
|
|
707
|
+
* Invite users to register for an event. Requires event edit permission.
|
|
708
|
+
*/
|
|
709
|
+
export declare const inviteRegistrations: (iInviteRegistrations: IInviteRegistrations, options?: SecondParameter<typeof customClient>) => Promise<IRegistration[]>;
|
|
689
710
|
/**
|
|
690
711
|
* Get a registration by id.
|
|
691
712
|
*/
|
|
@@ -707,6 +728,7 @@ export type CreateEventResourceResult = NonNullable<Awaited<ReturnType<typeof cr
|
|
|
707
728
|
export type DeleteEventResourceResult = NonNullable<Awaited<ReturnType<typeof deleteEventResource>>>;
|
|
708
729
|
export type CreateRegistrationResult = NonNullable<Awaited<ReturnType<typeof createRegistration>>>;
|
|
709
730
|
export type GetRegistrationsResult = NonNullable<Awaited<ReturnType<typeof getRegistrations>>>;
|
|
731
|
+
export type InviteRegistrationsResult = NonNullable<Awaited<ReturnType<typeof inviteRegistrations>>>;
|
|
710
732
|
export type GetRegistrationResult = NonNullable<Awaited<ReturnType<typeof getRegistration>>>;
|
|
711
733
|
export type UpdateRegistrationResult = NonNullable<Awaited<ReturnType<typeof updateRegistration>>>;
|
|
712
734
|
export type DeleteRegistrationResult = NonNullable<Awaited<ReturnType<typeof deleteRegistration>>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRegistration, ICreateRegistrationParams, IDeleteRegistrationParams, IGetRegistrationParams, IUpdateRegistrationParams, IGetRegistrationsParams, IPagedRegistrationResponse } from "./types";
|
|
1
|
+
import { IRegistration, ICreateRegistrationParams, IDeleteRegistrationParams, IGetRegistrationParams, IUpdateRegistrationParams, IGetRegistrationsParams, IInviteRegistrationsParams, IPagedRegistrationResponse } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* create an event registration
|
|
4
4
|
*
|
|
@@ -34,3 +34,10 @@ export declare function updateRegistration(options: IUpdateRegistrationParams):
|
|
|
34
34
|
* @return {Promise<IRegistration>}
|
|
35
35
|
*/
|
|
36
36
|
export declare function deleteRegistration(options: IDeleteRegistrationParams): Promise<IRegistration>;
|
|
37
|
+
/**
|
|
38
|
+
* invite users to register for an event
|
|
39
|
+
*
|
|
40
|
+
* @param {IInviteRegistrationsParams} options
|
|
41
|
+
* @return {Promise<IRegistration[]>}
|
|
42
|
+
*/
|
|
43
|
+
export declare function inviteRegistrations(options: IInviteRegistrationsParams): Promise<IRegistration[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { EventAssociationEntityType, EventAccess, EventAttendanceType, EventStatus, ISearchEvents, IEventAssociation, ICreateEventAssociation, IOnlineMeeting, ICreateOnlineMeeting, ICreateEvent, ICreateRegistration, IEvent, IEventPermission, IEventLocation, IEventLocationGeometriesItem, ILocationSpatialReference, IEventLocationSpatialReference, ICreateLocationSpatialReference, IEventRegistrationCount, ICreateEventLocation, ICreateEventLocationGeometriesItem, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, GetRegistrationsParams, GetEventParams, IUser, RegistrationRole, RegistrationStatus, RegistrationSort, EventSortOrder, EventSort, EventLocationType, IPagedRegistrationResponse, IPagedEventResponse, CreateEventResourceDto, CreateEventResourceDtoResourceType, CreateEventResourceDtoMimeType, GetEventsInclude, EventsSearchFormat, IUpdateEventOnlineMeeting, IUpdateEventLocation, IUpdateEventCapabilities, ICreateEventCapabilities, IEventCapabilities, ICreateEventLocationProperty, IEventResourcesItem, ISearchEventsGeometry, } from "./orval/api/orval-events";
|
|
1
|
+
export { EventAssociationEntityType, EventAccess, EventAttendanceType, EventStatus, ISearchEvents, IEventAssociation, ICreateEventAssociation, IOnlineMeeting, ICreateOnlineMeeting, ICreateEvent, ICreateRegistration, IEvent, IEventPermission, IEventLocation, IEventLocationGeometriesItem, ILocationSpatialReference, IEventLocationSpatialReference, ICreateLocationSpatialReference, IEventRegistrationCount, ICreateEventLocation, ICreateEventLocationGeometriesItem, IRegistration, IRegistrationPermission, IUpdateEvent, IUpdateRegistration, GetRegistrationsParams, GetEventParams, IUser, RegistrationRole, RegistrationStatus, RegistrationSort, EventSortOrder, EventSort, EventLocationType, IInviteRegistrations, IPagedRegistrationResponse, IPagedEventResponse, CreateEventResourceDto, CreateEventResourceDtoResourceType, CreateEventResourceDtoMimeType, GetEventsInclude, EventsSearchFormat, IUpdateEventOnlineMeeting, IUpdateEventLocation, IUpdateEventCapabilities, ICreateEventCapabilities, IEventCapabilities, ICreateEventLocationProperty, IEventResourcesItem, ISearchEventsGeometry, } from "./orval/api/orval-events";
|
|
2
2
|
import { IHubRequestOptions } from "../../hub-types";
|
|
3
|
-
import { ICreateEvent, IUpdateEvent, ISearchEvents, ICreateRegistration, IUpdateRegistration, GetRegistrationsParams, CreateEventResourceDto } from "./orval/api/orval-events";
|
|
3
|
+
import { ICreateEvent, IUpdateEvent, ISearchEvents, ICreateRegistration, IUpdateRegistration, IInviteRegistrations, GetRegistrationsParams, CreateEventResourceDto } from "./orval/api/orval-events";
|
|
4
4
|
/**
|
|
5
5
|
* options for making requests against the Events API
|
|
6
6
|
*
|
|
@@ -49,6 +49,9 @@ export interface IUpdateRegistrationParams extends IEventsRequestOptions {
|
|
|
49
49
|
export interface IDeleteRegistrationParams extends IEventsRequestOptions {
|
|
50
50
|
registrationId: string;
|
|
51
51
|
}
|
|
52
|
+
export interface IInviteRegistrationsParams extends IEventsRequestOptions {
|
|
53
|
+
data: IInviteRegistrations;
|
|
54
|
+
}
|
|
52
55
|
export interface ICreateEventResourceParams extends IEventsRequestOptions {
|
|
53
56
|
eventId: string;
|
|
54
57
|
data: CreateEventResourceDto;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import { IWithSlug } from "../../core/traits/IWithSlug";
|
|
1
2
|
export declare const TYPEKEYWORD_SLUG_PREFIX = "slug";
|
|
3
|
+
/**
|
|
4
|
+
* Construct a slug for an entity, ensuring it is properly namespaced with the org key
|
|
5
|
+
* and truncated to fit within typekeyword limits
|
|
6
|
+
*/
|
|
7
|
+
export declare function constructEntitySlug(entity: IWithSlug): string;
|
|
2
8
|
/**
|
|
3
9
|
* truncate a slug, namespaced to an org and accounting for the 256 character limit
|
|
4
10
|
* of individual typekeywords.
|
|
@@ -2,8 +2,9 @@ import { IRequestOptions } from "@esri/arcgis-rest-request";
|
|
|
2
2
|
import type { IItem } from "@esri/arcgis-rest-portal";
|
|
3
3
|
/**
|
|
4
4
|
* Create a slug, namespaced to an org and accounting for the 256 character limit
|
|
5
|
-
* of individual typekeywords.
|
|
6
|
-
*
|
|
5
|
+
* of individual typekeywords. Slugs are typically used to lookup items by a
|
|
6
|
+
* human readable name in urls. There is no means to ensure they are unique,
|
|
7
|
+
* so they should be used in conjunction with an id or other unique identifier.
|
|
7
8
|
* @param title
|
|
8
9
|
* @param orgKey
|
|
9
10
|
* @returns
|
|
@@ -22,7 +22,7 @@ export declare const WELL_KNOWN_POST_FACET_TYPES: readonly ["location", "modifie
|
|
|
22
22
|
* Whenever possible, use the individual arrays of well-known facet types for each entity type
|
|
23
23
|
* (e.g. WELL_KNOWN_ITEM_FACET_TYPES) to prevent facet ordering conflicts between entity types.
|
|
24
24
|
*/
|
|
25
|
-
export declare const WELL_KNOWN_FACET_TYPES: readonly ("
|
|
25
|
+
export declare const WELL_KNOWN_FACET_TYPES: readonly ("organization" | "type" | "tags" | "created" | "modified" | "categories" | "access" | "location" | "event-from" | "group-type" | "group-access" | "event-access" | "event-date" | "contentstatus" | "within" | "hub-content" | "group-within" | "group-organization" | "membership" | "group-created" | "post-groups" | "post-status")[];
|
|
26
26
|
export type WellKnownFacetTypes = (typeof WELL_KNOWN_FACET_TYPES)[number];
|
|
27
27
|
/**
|
|
28
28
|
* Given a well-known facet key, returns an array of entity types
|
|
@@ -233,6 +233,12 @@ export interface IArcGISContext {
|
|
|
233
233
|
* "HUB_RESOURE_GROUPS" const..
|
|
234
234
|
*/
|
|
235
235
|
resourceGroupIDs: string[];
|
|
236
|
+
/**
|
|
237
|
+
* Groups that contain Living Atlas content for the current environment
|
|
238
|
+
* NOTE: AGO may only have 1 such group, but Enterprise deployments
|
|
239
|
+
* might have multiple
|
|
240
|
+
*/
|
|
241
|
+
livingAtlasGroupIds?: string[];
|
|
236
242
|
/**
|
|
237
243
|
* Return the token for a given app, if defined
|
|
238
244
|
* @param app
|
|
@@ -85,4 +85,8 @@ export interface IArcGISContextManagerOptions {
|
|
|
85
85
|
* user-app-resources, associated with the `hubforarcgis` clientId
|
|
86
86
|
*/
|
|
87
87
|
userHubSettings?: IUserHubSettings;
|
|
88
|
+
/**
|
|
89
|
+
* List of groups that are used to source Living Atlas content for the current environment
|
|
90
|
+
*/
|
|
91
|
+
livingAtlasGroupIds?: string[];
|
|
88
92
|
}
|
|
@@ -82,4 +82,8 @@ export interface IArcGISContextOptions {
|
|
|
82
82
|
* user-app-resources, associated with the `hubforarcgis` clientId
|
|
83
83
|
*/
|
|
84
84
|
userHubSettings?: IUserHubSettings;
|
|
85
|
+
/**
|
|
86
|
+
* Groups that contain Living Atlas content for the current environment
|
|
87
|
+
*/
|
|
88
|
+
livingAtlasGroupIds?: string[];
|
|
85
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/hub-common",
|
|
3
|
-
"version": "28.
|
|
3
|
+
"version": "28.3.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",
|
|
@@ -23,11 +23,13 @@
|
|
|
23
23
|
"tslib": "^1.13.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
+
"@arcgis/core": "~5.0.0",
|
|
26
27
|
"@esri/arcgis-rest-feature-service": "^4.0.0",
|
|
27
28
|
"@esri/arcgis-rest-portal": "^4.0.0",
|
|
28
29
|
"@esri/arcgis-rest-request": "^4.7.1"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
32
|
+
"@arcgis/core": "~5.0.0",
|
|
31
33
|
"@eslint/js": "^9.29.0",
|
|
32
34
|
"@esri/arcgis-rest-feature-service": "^4.4.1",
|
|
33
35
|
"@esri/arcgis-rest-portal": "^4.7.0",
|
|
@@ -106,6 +108,11 @@
|
|
|
106
108
|
"G": {
|
|
107
109
|
"rankdir": "LR"
|
|
108
110
|
}
|
|
111
|
+
},
|
|
112
|
+
"detectiveOptions": {
|
|
113
|
+
"ts": {
|
|
114
|
+
"skipTypeImports": true
|
|
115
|
+
}
|
|
109
116
|
}
|
|
110
117
|
}
|
|
111
118
|
}
|