@esri/hub-common 12.3.2 → 12.5.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.
Files changed (128) hide show
  1. package/dist/esm/content/get-family.js +4 -0
  2. package/dist/esm/content/get-family.js.map +1 -1
  3. package/dist/esm/core/schemas/hubproject.js +99 -72
  4. package/dist/esm/core/schemas/hubproject.js.map +1 -1
  5. package/dist/esm/projects/_internal/getPropertyMap.js +5 -3
  6. package/dist/esm/projects/_internal/getPropertyMap.js.map +1 -1
  7. package/dist/esm/projects/defaults.js +13 -8
  8. package/dist/esm/projects/defaults.js.map +1 -1
  9. package/dist/esm/projects/edit.js +2 -2
  10. package/dist/esm/projects/edit.js.map +1 -1
  11. package/dist/esm/resources/index.js +2 -0
  12. package/dist/esm/resources/index.js.map +1 -1
  13. package/dist/esm/resources/removeResource.js +34 -0
  14. package/dist/esm/resources/removeResource.js.map +1 -0
  15. package/dist/esm/resources/upsertResource.js +65 -0
  16. package/dist/esm/resources/upsertResource.js.map +1 -0
  17. package/dist/esm/search/_internal/hubSearchItems.js +8 -48
  18. package/dist/esm/search/_internal/hubSearchItems.js.map +1 -1
  19. package/dist/esm/search/_internal/hubSearchItemsHelpers/formatOgcAggregationsResponse.js +20 -0
  20. package/dist/esm/search/_internal/hubSearchItemsHelpers/formatOgcAggregationsResponse.js.map +1 -0
  21. package/dist/esm/search/_internal/hubSearchItemsHelpers/formatOgcItemsResponse.js +14 -0
  22. package/dist/esm/search/_internal/hubSearchItemsHelpers/formatOgcItemsResponse.js.map +1 -0
  23. package/dist/esm/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js +98 -0
  24. package/dist/esm/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js.map +1 -0
  25. package/dist/esm/search/_internal/hubSearchItemsHelpers/getNextOgcCallback.js +15 -0
  26. package/dist/esm/search/_internal/hubSearchItemsHelpers/getNextOgcCallback.js.map +1 -0
  27. package/dist/esm/search/_internal/hubSearchItemsHelpers/getOgcAggregationQueryParams.js +9 -0
  28. package/dist/esm/search/_internal/hubSearchItemsHelpers/getOgcAggregationQueryParams.js.map +1 -0
  29. package/dist/esm/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.js +13 -0
  30. package/dist/esm/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.js.map +1 -0
  31. package/dist/esm/search/_internal/hubSearchItemsHelpers/getQQueryParam.js +35 -0
  32. package/dist/esm/search/_internal/hubSearchItemsHelpers/getQQueryParam.js.map +1 -0
  33. package/dist/esm/search/_internal/hubSearchItemsHelpers/getQueryString.js +8 -0
  34. package/dist/esm/search/_internal/hubSearchItemsHelpers/getQueryString.js.map +1 -0
  35. package/dist/esm/search/_internal/hubSearchItemsHelpers/interfaces.js +1 -0
  36. package/dist/esm/search/_internal/hubSearchItemsHelpers/interfaces.js.map +1 -0
  37. package/dist/esm/search/_internal/hubSearchItemsHelpers/ogcApiRequest.js +14 -0
  38. package/dist/esm/search/_internal/hubSearchItemsHelpers/ogcApiRequest.js.map +1 -0
  39. package/dist/esm/search/_internal/hubSearchItemsHelpers/ogcItemToSearchResult.js +9 -0
  40. package/dist/esm/search/_internal/hubSearchItemsHelpers/ogcItemToSearchResult.js.map +1 -0
  41. package/dist/esm/search/_internal/hubSearchItemsHelpers/searchOgcAggregations.js +11 -0
  42. package/dist/esm/search/_internal/hubSearchItemsHelpers/searchOgcAggregations.js.map +1 -0
  43. package/dist/esm/search/_internal/hubSearchItemsHelpers/searchOgcItems.js +11 -0
  44. package/dist/esm/search/_internal/hubSearchItemsHelpers/searchOgcItems.js.map +1 -0
  45. package/dist/esm/search/_internal/portalSearchItems.js +1 -1
  46. package/dist/esm/search/_internal/portalSearchItems.js.map +1 -1
  47. package/dist/esm/search/index.js +1 -0
  48. package/dist/esm/search/index.js.map +1 -1
  49. package/dist/esm/search/wellKnownCatalog.js +228 -0
  50. package/dist/esm/search/wellKnownCatalog.js.map +1 -0
  51. package/dist/esm/urls/build-url.js +1 -1
  52. package/dist/esm/urls/build-url.js.map +1 -1
  53. package/dist/node/content/get-family.js +4 -0
  54. package/dist/node/content/get-family.js.map +1 -1
  55. package/dist/node/core/schemas/hubproject.js +99 -72
  56. package/dist/node/core/schemas/hubproject.js.map +1 -1
  57. package/dist/node/projects/_internal/getPropertyMap.js +5 -3
  58. package/dist/node/projects/_internal/getPropertyMap.js.map +1 -1
  59. package/dist/node/projects/defaults.js +13 -8
  60. package/dist/node/projects/defaults.js.map +1 -1
  61. package/dist/node/projects/edit.js +2 -2
  62. package/dist/node/projects/edit.js.map +1 -1
  63. package/dist/node/resources/index.js +2 -0
  64. package/dist/node/resources/index.js.map +1 -1
  65. package/dist/node/resources/removeResource.js +38 -0
  66. package/dist/node/resources/removeResource.js.map +1 -0
  67. package/dist/node/resources/upsertResource.js +69 -0
  68. package/dist/node/resources/upsertResource.js.map +1 -0
  69. package/dist/node/search/_internal/hubSearchItems.js +9 -51
  70. package/dist/node/search/_internal/hubSearchItems.js.map +1 -1
  71. package/dist/node/search/_internal/hubSearchItemsHelpers/formatOgcAggregationsResponse.js +24 -0
  72. package/dist/node/search/_internal/hubSearchItemsHelpers/formatOgcAggregationsResponse.js.map +1 -0
  73. package/dist/node/search/_internal/hubSearchItemsHelpers/formatOgcItemsResponse.js +18 -0
  74. package/dist/node/search/_internal/hubSearchItemsHelpers/formatOgcItemsResponse.js.map +1 -0
  75. package/dist/node/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js +104 -0
  76. package/dist/node/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.js.map +1 -0
  77. package/dist/node/search/_internal/hubSearchItemsHelpers/getNextOgcCallback.js +19 -0
  78. package/dist/node/search/_internal/hubSearchItemsHelpers/getNextOgcCallback.js.map +1 -0
  79. package/dist/node/search/_internal/hubSearchItemsHelpers/getOgcAggregationQueryParams.js +13 -0
  80. package/dist/node/search/_internal/hubSearchItemsHelpers/getOgcAggregationQueryParams.js.map +1 -0
  81. package/dist/node/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.js +17 -0
  82. package/dist/node/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.js.map +1 -0
  83. package/dist/node/search/_internal/hubSearchItemsHelpers/getQQueryParam.js +40 -0
  84. package/dist/node/search/_internal/hubSearchItemsHelpers/getQQueryParam.js.map +1 -0
  85. package/dist/node/search/_internal/hubSearchItemsHelpers/getQueryString.js +12 -0
  86. package/dist/node/search/_internal/hubSearchItemsHelpers/getQueryString.js.map +1 -0
  87. package/dist/node/search/_internal/hubSearchItemsHelpers/interfaces.js +3 -0
  88. package/dist/node/search/_internal/hubSearchItemsHelpers/interfaces.js.map +1 -0
  89. package/dist/node/search/_internal/hubSearchItemsHelpers/ogcApiRequest.js +18 -0
  90. package/dist/node/search/_internal/hubSearchItemsHelpers/ogcApiRequest.js.map +1 -0
  91. package/dist/node/search/_internal/hubSearchItemsHelpers/ogcItemToSearchResult.js +13 -0
  92. package/dist/node/search/_internal/hubSearchItemsHelpers/ogcItemToSearchResult.js.map +1 -0
  93. package/dist/node/search/_internal/hubSearchItemsHelpers/searchOgcAggregations.js +15 -0
  94. package/dist/node/search/_internal/hubSearchItemsHelpers/searchOgcAggregations.js.map +1 -0
  95. package/dist/node/search/_internal/hubSearchItemsHelpers/searchOgcItems.js +15 -0
  96. package/dist/node/search/_internal/hubSearchItemsHelpers/searchOgcItems.js.map +1 -0
  97. package/dist/node/search/_internal/portalSearchItems.js +2 -1
  98. package/dist/node/search/_internal/portalSearchItems.js.map +1 -1
  99. package/dist/node/search/index.js +1 -0
  100. package/dist/node/search/index.js.map +1 -1
  101. package/dist/node/search/wellKnownCatalog.js +234 -0
  102. package/dist/node/search/wellKnownCatalog.js.map +1 -0
  103. package/dist/node/urls/build-url.js +1 -1
  104. package/dist/node/urls/build-url.js.map +1 -1
  105. package/dist/types/core/traits/IWithViewSettings.d.ts +18 -5
  106. package/dist/types/resources/index.d.ts +2 -0
  107. package/dist/types/resources/removeResource.d.ts +16 -0
  108. package/dist/types/resources/upsertResource.d.ts +15 -0
  109. package/dist/types/search/_internal/hubSearchItems.d.ts +0 -9
  110. package/dist/types/search/_internal/hubSearchItemsHelpers/formatOgcAggregationsResponse.d.ts +4 -0
  111. package/dist/types/search/_internal/hubSearchItemsHelpers/formatOgcItemsResponse.d.ts +6 -0
  112. package/dist/types/search/_internal/hubSearchItemsHelpers/getFilterQueryParam.d.ts +4 -0
  113. package/dist/types/search/_internal/hubSearchItemsHelpers/getNextOgcCallback.d.ts +6 -0
  114. package/dist/types/search/_internal/hubSearchItemsHelpers/getOgcAggregationQueryParams.d.ts +6 -0
  115. package/dist/types/search/_internal/hubSearchItemsHelpers/getOgcItemQueryParams.d.ts +9 -0
  116. package/dist/types/search/_internal/hubSearchItemsHelpers/getQQueryParam.d.ts +3 -0
  117. package/dist/types/search/_internal/hubSearchItemsHelpers/getQueryString.d.ts +1 -0
  118. package/dist/types/search/_internal/hubSearchItemsHelpers/interfaces.d.ts +37 -0
  119. package/dist/types/search/_internal/hubSearchItemsHelpers/ogcApiRequest.d.ts +2 -0
  120. package/dist/types/search/_internal/hubSearchItemsHelpers/ogcItemToSearchResult.d.ts +4 -0
  121. package/dist/types/search/_internal/hubSearchItemsHelpers/searchOgcAggregations.d.ts +5 -0
  122. package/dist/types/search/_internal/hubSearchItemsHelpers/searchOgcItems.d.ts +5 -0
  123. package/dist/types/search/_internal/portalSearchItems.d.ts +11 -0
  124. package/dist/types/search/index.d.ts +1 -0
  125. package/dist/types/search/types/IHubSearchOptions.d.ts +4 -0
  126. package/dist/types/search/wellKnownCatalog.d.ts +50 -0
  127. package/dist/types/urls/build-url.d.ts +2 -3
  128. package/package.json +1 -1
@@ -0,0 +1,228 @@
1
+ import { getFamilyTypes } from "../content";
2
+ /**
3
+ * Check if i18nScope is defined and not ending with a ".", if so add a "." at the end.
4
+ * e.g. if the i18nScope is 'project.edit', the path is `${i18nScope}catalog.organization`,
5
+ * we will want "project.edit.catalog.organization" instead of "project.editcatalog.organization"
6
+ * @param i18nScope
7
+ * @returns i18nScope with a "." at the end if it is defined
8
+ */
9
+ function dotifyString(i18nScope) {
10
+ if (i18nScope && i18nScope.slice(-1) !== ".") {
11
+ return `${i18nScope}.`;
12
+ }
13
+ }
14
+ /** Get a single catalog based on the name, entity type and optional requests
15
+ * @param i18nScope Translation scope to be interpolated into the catalog
16
+ * @param name Name of the catalog requested
17
+ * @param entityType
18
+ * @param options An opitional IGetWellKnownCatalogOptions definition JSON object
19
+ * @returns An IHubCatalog definition JSON object
20
+ */
21
+ export function getWellKnownCatalog(i18nScope, name, entityType, options) {
22
+ switch (entityType) {
23
+ case "item":
24
+ return getWellknownItemCatalog(i18nScope, name, options);
25
+ /* Add other entity handlers here, e.g. getWellknownEventCatalog */
26
+ default:
27
+ throw new Error(`Wellknown catalog not implemented for "${entityType}"`);
28
+ }
29
+ }
30
+ /**
31
+ * Build an IHubCatalog definition JSON object based on the
32
+ * catalog name, predicates and collections we want to use for each catalog
33
+ * @param i18nScope
34
+ * @param name Catalog name
35
+ * @param predicates Predicates for the catalog
36
+ * @param collections Collections to include for the catalog
37
+ * @returns An IHubCatalog definition JSON object
38
+ */
39
+ function buildCatalog(i18nScope, name, predicates, collections) {
40
+ return {
41
+ schemaVersion: 1,
42
+ title: `{{${i18nScope}catalog.${name}:translate}}`,
43
+ scopes: {
44
+ item: {
45
+ targetEntity: "item",
46
+ filters: [{ predicates }],
47
+ },
48
+ },
49
+ collections,
50
+ };
51
+ }
52
+ /**
53
+ * Check if user is available in the passed options, throw an error if not
54
+ * @param name name of the catalog
55
+ * @param options Options that contains user
56
+ */
57
+ function checkUser(name, options) {
58
+ if (!options || !options.user) {
59
+ throw new Error(`User needed to get "${name}" catalog`);
60
+ }
61
+ }
62
+ /**
63
+ * Get an ITEM catalog based on the name and optional requests
64
+ * @param i18nScope Translation scope to be interpolated into the catalog
65
+ * @param name Name of the catalog requested
66
+ * @param options An opitional IGetWellKnownCatalogOptions definition JSON object
67
+ * @returns An ITEM IHubCatalog definition JSON object
68
+ */
69
+ function getWellknownItemCatalog(i18nScope, name, options) {
70
+ i18nScope = dotifyString(i18nScope);
71
+ let catalog;
72
+ const collections = getWellknownCollections(i18nScope, "item", options === null || options === void 0 ? void 0 : options.collectionNames);
73
+ switch (name) {
74
+ case "myContent":
75
+ checkUser(name, options);
76
+ catalog = buildCatalog(i18nScope, name, [{ owner: options.user.username }], collections);
77
+ break;
78
+ case "favorites":
79
+ checkUser(name, options);
80
+ catalog = buildCatalog(i18nScope, name, [{ group: options.user.favGroupId }], collections);
81
+ break;
82
+ case "organization":
83
+ checkUser(name, options);
84
+ catalog = buildCatalog(i18nScope, name, [{ orgid: options.user.orgId, access: "org" }], collections);
85
+ break;
86
+ case "world":
87
+ catalog = buildCatalog(i18nScope, name, [{ access: "public" }], collections);
88
+ break;
89
+ }
90
+ return catalog;
91
+ }
92
+ /**
93
+ * Get a complete collections map to use to build a collections list
94
+ * @param i18nScope
95
+ * @param entityType
96
+ * @returns an object that contains properties of all the collections
97
+ */
98
+ function getAllCollectionsMap(i18nScope, entityType) {
99
+ return {
100
+ appAndMap: {
101
+ key: "appAndMap",
102
+ label: `{{${i18nScope}collection.appsAndMaps:translate}}`,
103
+ targetEntity: entityType,
104
+ include: [],
105
+ scope: {
106
+ targetEntity: entityType,
107
+ filters: [
108
+ {
109
+ predicates: [
110
+ {
111
+ type: [...getFamilyTypes("app"), ...getFamilyTypes("map")],
112
+ },
113
+ ],
114
+ },
115
+ ],
116
+ },
117
+ },
118
+ dataset: {
119
+ key: "dataset",
120
+ label: `{{${i18nScope}collection.dataset:translate}}`,
121
+ targetEntity: entityType,
122
+ include: [],
123
+ scope: {
124
+ targetEntity: entityType,
125
+ filters: [{ predicates: [{ type: getFamilyTypes("dataset") }] }],
126
+ },
127
+ },
128
+ document: {
129
+ key: "document",
130
+ label: `{{${i18nScope}collection.document:translate}}`,
131
+ targetEntity: entityType,
132
+ include: [],
133
+ scope: {
134
+ targetEntity: entityType,
135
+ filters: [{ predicates: [{ type: getFamilyTypes("document") }] }],
136
+ },
137
+ },
138
+ feedback: {
139
+ key: "feedback",
140
+ label: `{{${i18nScope}collection.feedback:translate}}`,
141
+ targetEntity: entityType,
142
+ include: [],
143
+ scope: {
144
+ targetEntity: entityType,
145
+ filters: [{ predicates: [{ type: getFamilyTypes("feedback") }] }],
146
+ },
147
+ },
148
+ site: {
149
+ key: "site",
150
+ label: `{{${i18nScope}collection.sites:translate}}`,
151
+ targetEntity: entityType,
152
+ include: [],
153
+ scope: {
154
+ targetEntity: entityType,
155
+ filters: [
156
+ {
157
+ predicates: [
158
+ {
159
+ type: getFamilyTypes("site"),
160
+ },
161
+ ],
162
+ },
163
+ ],
164
+ },
165
+ },
166
+ template: {
167
+ key: "template",
168
+ label: `{{${i18nScope}collection.templates:translate}}`,
169
+ targetEntity: entityType,
170
+ include: [],
171
+ scope: {
172
+ targetEntity: entityType,
173
+ filters: [
174
+ {
175
+ predicates: [
176
+ {
177
+ type: getFamilyTypes("template"),
178
+ },
179
+ ],
180
+ },
181
+ ],
182
+ },
183
+ },
184
+ };
185
+ }
186
+ /**
187
+ * Get a list of collection names we want to use to build the default collections if no specific collection names are passed
188
+ * @returns a list of WellKnownCollection definition strings
189
+ */
190
+ function getDefaultCollectionNames() {
191
+ return ["appAndMap", "dataset", "document", "feedback", "site"];
192
+ }
193
+ /**
194
+ * Get a list of collections based on the entity type and an optional
195
+ * list of collection names, will return a list of default collections if none passed
196
+ * @param i18nScope Translation scope to be interpolated into the collections
197
+ * @param entityType
198
+ * @param collectionNames List of names of the requested collections, optional, if passed in,
199
+ * only those collections will be returned
200
+ * @returns A list of IHubCollection definition JSON objects
201
+ */
202
+ export function getWellknownCollections(i18nScope, entityType, collectionNames) {
203
+ i18nScope = dotifyString(i18nScope);
204
+ const allCollectionsMap = getAllCollectionsMap(i18nScope, entityType);
205
+ const defaultCollectionNames = getDefaultCollectionNames();
206
+ // Return a list of collections from the passed collection names or
207
+ // return the default ones if not passed
208
+ const names = (collectionNames === null || collectionNames === void 0 ? void 0 : collectionNames.length) ? collectionNames
209
+ : defaultCollectionNames;
210
+ return names.reduce((accum, name) => {
211
+ if (allCollectionsMap[name]) {
212
+ accum.push(allCollectionsMap[name]);
213
+ }
214
+ return accum;
215
+ }, []);
216
+ }
217
+ /**
218
+ * Get a single collection based on the collection name and entity type
219
+ * @param i18nScope
220
+ * @param entityType
221
+ * @param collectionName Name of the collection requested
222
+ * @returns An IHubCollection definition JSON object
223
+ */
224
+ export function getWellknownCollection(i18nScope, entityType, collectionName) {
225
+ i18nScope = dotifyString(i18nScope);
226
+ return getAllCollectionsMap(i18nScope, entityType)[collectionName];
227
+ }
228
+ //# sourceMappingURL=wellKnownCatalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wellKnownCatalog.js","sourceRoot":"","sources":["../../../src/search/wellKnownCatalog.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAoC5C;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,SAAiB;IACrC,IAAI,SAAS,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QAC5C,OAAO,GAAG,SAAS,GAAG,CAAC;KACxB;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CACjC,SAAiB,EACjB,IAAsB,EACtB,UAAsB,EACtB,OAAqC;IAErC,QAAQ,UAAU,EAAE;QAClB,KAAK,MAAM;YACT,OAAO,uBAAuB,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3D,mEAAmE;QACnE;YACE,MAAM,IAAI,KAAK,CAAC,0CAA0C,UAAU,GAAG,CAAC,CAAC;KAC5E;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,YAAY,CACnB,SAAiB,EACjB,IAAsB,EACtB,UAAiB,EACjB,WAA6B;IAE7B,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,KAAK,EA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SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAEpC,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAEtE,MAAM,sBAAsB,GAAG,yBAAyB,EAAE,CAAC;IAE3D,mEAAmE;IACnE,wCAAwC;IACxC,MAAM,KAAK,GAAG,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM,EACnC,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,sBAAsB,CAAC;IAC3B,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QAClC,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE;YAC3B,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;SACrC;QACD,OAAO,KAAK,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,SAAiB,EACjB,UAAsB,EACtB,cAAmC;IAEnC,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IACpC,OAAO,oBAAoB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,cAAc,CAAC,CAAC;AACrE,CAAC"}
@@ -10,7 +10,7 @@ export function buildUrl(params) {
10
10
  }
11
11
  function buildQueryString(params = {}) {
12
12
  const queryParams = Object.keys(params)
13
- .filter(key => {
13
+ .filter((key) => {
14
14
  return params[key] !== undefined;
15
15
  })
16
16
  .reduce((acc, key) => {
@@ -1 +1 @@
1
- {"version":3,"file":"build-url.js","sourceRoot":"","sources":["../../../src/urls/build-url.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,MAIxB;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IACrC,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,G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;AACxB,CAAC;AAED,SAAS,gBAAgB,CAAC,SAAuB,EAAE;IACjD,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;SACpC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE;QACd,OAAO,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC;IACnC,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,GAAQ,EAAE,GAAW,EAAE,EAAE;QAChC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACvB,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,OAAO,IAAI,eAAe,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAAC;AACrD,CAAC"}
@@ -20,6 +20,10 @@ function getFamily(type) {
20
20
  // override default behavior for the rows that are highlighted in yellow here:
21
21
  // https://esriis.sharepoint.com/:x:/r/sites/ArcGISHub/_layouts/15/Doc.aspx?sourcedoc=%7BADA1C9DC-4F6C-4DE4-92C6-693EF9571CFA%7D&file=Hub%20Routes.xlsx&nav=MTBfe0VENEREQzI4LUZFMDctNEI0Ri04NjcyLThCQUE2MTA0MEZGRn1fezIwMTIwMEJFLTA4MEQtNEExRC05QzA4LTE5MTAzOUQwMEE1RH0&action=default&mobileredirect=true&cid=df1c874b-c367-4cea-bc13-7bebfad3f2ac
22
22
  switch (type.toLowerCase()) {
23
+ // NOTE: we really want to put tiled image services in the maps family
24
+ // but we would need the typekeywords to differentiate them
25
+ // for now send them to the maps route here:
26
+ // https://github.com/ArcGIS/opendata-ui/blob/cdc0dac6b7e8c43afaa60ae219393a7d3aaa7433/packages/ember-arcgis-hub-components/addon/utils/content-routes.js#L39-L44
23
27
  case "image service":
24
28
  family = "dataset";
25
29
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"get-family.js","sourceRoot":"","sources":["../../../src/content/get-family.ts"],"names":[],"mappings":";;;AACA,gDAAmE;AAEnE,2BAA2B;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
27
27
  type: "object",
28
28
  },
29
- timeline: {
30
- type: "object",
31
- },
32
29
  view: {
33
30
  type: "object",
34
31
  properties: {
35
- showMap: {
36
- type: "boolean",
37
- },
38
- featuredImage: {
39
- type: "object",
40
- },
41
32
  featuredContentIds: {
42
33
  type: "array",
43
34
  items: {
44
35
  type: "string",
45
36
  },
46
37
  },
38
+ featuredImage: {
39
+ type: "object",
40
+ },
41
+ showMap: {
42
+ type: "boolean",
43
+ },
44
+ timeline: {
45
+ type: "object",
46
+ },
47
47
  },
48
48
  },
49
49
  },
@@ -60,42 +60,48 @@ exports.HubProjectCreateUiSchema = {
60
60
  elements: [
61
61
  {
62
62
  type: "Step",
63
- labelKey: "{{i18nScope}}.describeProject.label",
63
+ labelKey: "{{i18nScope}}.sections.details.label",
64
64
  elements: [
65
65
  {
66
- labelKey: "{{i18nScope}}.name.label",
67
- scope: "/properties/name",
68
- type: "Control",
69
- },
70
- {
71
- labelKey: "{{i18nScope}}.summary.label",
72
- scope: "/properties/summary",
73
- type: "Control",
74
- options: {
75
- control: "hub-field-input-input",
76
- type: "textarea",
77
- helperText: {
78
- labelKey: "{{i18nScope}}.summary.helperText",
66
+ type: "Section",
67
+ labelKey: "{{i18nScope}}.sections.basicInfo.label",
68
+ elements: [
69
+ {
70
+ labelKey: "{{i18nScope}}.fields.name.label",
71
+ scope: "/properties/name",
72
+ type: "Control",
79
73
  },
80
- },
81
- },
82
- {
83
- labelKey: "{{i18nScope}}.description.label",
84
- scope: "/properties/description",
85
- type: "Control",
86
- options: {
87
- control: "hub-field-input-input",
88
- type: "textarea",
89
- helperText: {
90
- labelKey: "{{i18nScope}}.description.helperText",
74
+ {
75
+ labelKey: "{{i18nScope}}.fields.summary.label",
76
+ scope: "/properties/summary",
77
+ type: "Control",
78
+ options: {
79
+ control: "hub-field-input-input",
80
+ type: "textarea",
81
+ helperText: {
82
+ labelKey: "{{i18nScope}}.fields.summary.helperText",
83
+ },
84
+ },
85
+ },
86
+ {
87
+ labelKey: "{{i18nScope}}.fields.description.label",
88
+ scope: "/properties/description",
89
+ type: "Control",
90
+ options: {
91
+ control: "hub-field-input-input",
92
+ type: "textarea",
93
+ helperText: {
94
+ labelKey: "{{i18nScope}}.fields.description.helperText",
95
+ },
96
+ },
91
97
  },
92
- },
98
+ ],
93
99
  },
94
100
  ],
95
101
  },
96
102
  {
97
103
  type: "Step",
98
- labelKey: "{{i18nScope}}.setLocation.label",
104
+ labelKey: "{{i18nScope}}.sections.location.label",
99
105
  rule: {
100
106
  effect: types_1.UiSchemaRuleEffects.DISABLE,
101
107
  condition: {
@@ -105,17 +111,23 @@ exports.HubProjectCreateUiSchema = {
105
111
  },
106
112
  elements: [
107
113
  {
108
- scope: "/properties/extent",
109
- type: "Control",
110
- options: {
111
- control: "hub-field-input-boundary-picker",
112
- },
114
+ type: "Section",
115
+ labelKey: "{{i18nScope}}.sections.location.label",
116
+ elements: [
117
+ {
118
+ scope: "/properties/extent",
119
+ type: "Control",
120
+ options: {
121
+ control: "hub-field-input-boundary-picker",
122
+ },
123
+ },
124
+ ],
113
125
  },
114
126
  ],
115
127
  },
116
128
  {
117
129
  type: "Step",
118
- labelKey: "{{i18nScope}}.statusAndTimeline.label",
130
+ labelKey: "{{i18nScope}}.sections.statusAndTimeline.label",
119
131
  rule: {
120
132
  effect: types_1.UiSchemaRuleEffects.DISABLE,
121
133
  condition: {
@@ -125,23 +137,34 @@ exports.HubProjectCreateUiSchema = {
125
137
  },
126
138
  elements: [
127
139
  {
128
- labelKey: "{{i18nScope}}.status.label",
129
- scope: "/properties/status",
130
- type: "Control",
131
- options: {
132
- control: "hub-field-input-select",
133
- enum: {
134
- i18nScope: "{{i18nScope}}.status.enum",
140
+ type: "Section",
141
+ labelKey: "{{i18nScope}}.sections.status.label",
142
+ elements: [
143
+ {
144
+ labelKey: "{{i18nScope}}.fields.status.label",
145
+ scope: "/properties/status",
146
+ type: "Control",
147
+ options: {
148
+ control: "hub-field-input-select",
149
+ enum: {
150
+ i18nScope: "{{i18nScope}}.fields.status.enum",
151
+ },
152
+ },
135
153
  },
136
- },
154
+ ],
137
155
  },
138
156
  {
139
- labelKey: "{{i18nScope}}.timeline.label",
140
- scope: "/properties/timeline",
141
- type: "Control",
142
- options: {
143
- control: "arcgis-hub-timeline-editor",
144
- },
157
+ type: "Section",
158
+ labelKey: "{{i18nScope}}.sections.timeline.label",
159
+ elements: [
160
+ {
161
+ scope: "/properties/view/properties/timeline",
162
+ type: "Control",
163
+ options: {
164
+ control: "arcgis-hub-timeline-editor",
165
+ },
166
+ },
167
+ ],
145
168
  },
146
169
  ],
147
170
  },
@@ -157,39 +180,39 @@ exports.HubProjectEditUiSchema = {
157
180
  elements: [
158
181
  {
159
182
  type: "Section",
160
- labelKey: "{{i18nScope}}.basicInfo.label",
183
+ labelKey: "{{i18nScope}}.sections.basicInfo.label",
161
184
  elements: [
162
185
  {
163
- labelKey: "{{i18nScope}}.name.label",
186
+ labelKey: "{{i18nScope}}.fields.name.label",
164
187
  scope: "/properties/name",
165
188
  type: "Control",
166
189
  },
167
190
  {
168
- labelKey: "{{i18nScope}}.summary.label",
191
+ labelKey: "{{i18nScope}}.fields.summary.label",
169
192
  scope: "/properties/summary",
170
193
  type: "Control",
171
194
  options: {
172
195
  control: "hub-field-input-input",
173
196
  type: "textarea",
174
197
  helperText: {
175
- labelKey: "{{i18nScope}}.summary.helperText",
198
+ labelKey: "{{i18nScope}}.fields.summary.helperText",
176
199
  },
177
200
  },
178
201
  },
179
202
  {
180
- labelKey: "{{i18nScope}}.description.label",
203
+ labelKey: "{{i18nScope}}.fields.description.label",
181
204
  scope: "/properties/description",
182
205
  type: "Control",
183
206
  options: {
184
207
  control: "hub-field-input-input",
185
208
  type: "textarea",
186
209
  helperText: {
187
- labelKey: "{{i18nScope}}.description.helperText",
210
+ labelKey: "{{i18nScope}}.fields.description.helperText",
188
211
  },
189
212
  },
190
213
  },
191
214
  {
192
- labelKey: "{{i18nScope}}.featuredImage.label",
215
+ labelKey: "{{i18nScope}}.fields.featuredImage.label",
193
216
  scope: "/properties/view/properties/featuredImage",
194
217
  type: "Control",
195
218
  options: {
@@ -198,7 +221,10 @@ exports.HubProjectEditUiSchema = {
198
221
  maxHeight: 484,
199
222
  aspectRatio: 1.5,
200
223
  helperText: {
201
- labelKey: "{{i18nScope}}.featuredImage.helperText",
224
+ labelKey: "{{i18nScope}}.fields.featuredImage.helperText",
225
+ },
226
+ sizeDescription: {
227
+ labelKey: "{{i18nScope}}.fields.featuredImage.sizeDescription",
202
228
  },
203
229
  },
204
230
  },
@@ -206,7 +232,7 @@ exports.HubProjectEditUiSchema = {
206
232
  },
207
233
  {
208
234
  type: "Section",
209
- labelKey: "{{i18nScope}}.location.label",
235
+ labelKey: "{{i18nScope}}.sections.location.label",
210
236
  elements: [
211
237
  {
212
238
  scope: "/properties/extent",
@@ -216,7 +242,7 @@ exports.HubProjectEditUiSchema = {
216
242
  },
217
243
  },
218
244
  {
219
- labelKey: "{{i18nScope}}.showMap.label",
245
+ labelKey: "{{i18nScope}}.fields.showMap.label",
220
246
  scope: "/properties/view/properties/showMap",
221
247
  type: "Control",
222
248
  },
@@ -224,15 +250,16 @@ exports.HubProjectEditUiSchema = {
224
250
  },
225
251
  {
226
252
  type: "Section",
227
- labelKey: "{{i18nScope}}.status.label",
253
+ labelKey: "{{i18nScope}}.sections.status.label",
228
254
  elements: [
229
255
  {
230
256
  scope: "/properties/status",
231
257
  type: "Control",
258
+ labelKey: "{{i18nScope}}.fields.status.label",
232
259
  options: {
233
260
  control: "hub-field-input-select",
234
261
  enum: {
235
- i18nScope: "{{i18nScope}}.status.enum",
262
+ i18nScope: "{{i18nScope}}.fields.status.enum",
236
263
  },
237
264
  },
238
265
  },
@@ -240,10 +267,10 @@ exports.HubProjectEditUiSchema = {
240
267
  },
241
268
  {
242
269
  type: "Section",
243
- labelKey: "{{i18nScope}}.timeline.label",
270
+ labelKey: "{{i18nScope}}.sections.timeline.label",
244
271
  elements: [
245
272
  {
246
- scope: "/properties/timeline",
273
+ scope: "/properties/view/properties/timeline",
247
274
  type: "Control",
248
275
  options: {
249
276
  control: "arcgis-hub-timeline-editor",
@@ -253,10 +280,10 @@ exports.HubProjectEditUiSchema = {
253
280
  },
254
281
  {
255
282
  type: "Section",
256
- labelKey: "{{i18nScope}}.featuredContent.label",
283
+ labelKey: "{{i18nScope}}.sections.featuredContent.label",
257
284
  options: {
258
285
  helperText: {
259
- labelKey: "{{i18nScope}}.featuredContent.helperText",
286
+ labelKey: "{{i18nScope}}.sections.featuredContent.helperText",
260
287
  },
261
288
  },
262
289
  elements: [
@@ -1 +1 @@
1
- {"version":3,"file":"hubproject.js","sourceRoot":"","sources":["../../../../src/core/schemas/hubproject.ts"],"names":[],"mappings":";;;AAAA,mCAA+E;AAC/E,oCAA4C;AAE/B,QAAA,gBAAgB,GAAyB;IACpD,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAgB,CAAC,UAAU;YACpC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,wBAAgB,CAAC;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,IAAI,EAAE,SAAS;iBAChB;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,QAAQ;iBACf;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;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AAO,EAAE;gBACP,UAAU,EAAE;oBACV,QAAQ,EAAE,0CAA0C;iBACrD;aACF;YACD,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,gDAAgD;oBACvD,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,gCAAgC;wBACzC,YAAY,EAAE,MAAM;wBACpB,KAAK,EAAE,CAAC;qBACT;iBACF;aACF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"hubproject.js","sourceRoot":"","sources":["../../../../src/core/schemas/hubproject.ts"],"names":[],"mappings":";;;AAAA,mCAA+E;AAC/E,oCAA4C;AAE/B,QAAA,gBAAgB,GAAyB;IACpD,QAAQ,EAAE,CAAC,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,SAAS,EAAE,GAAG;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wBAAgB,CAAC,UAAU;YACpC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,wBAAgB,CAAC;SACpC;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,kBAAkB,EAAE;oBAClB,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACf;iBACF;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,QAAQ;iBACf;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,SAAS;iBAChB;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;KACF;CACiC,CAAC;AAErC;;GAEG;AACU,QAAA,w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,IAAI,EAAE;4BACJ,SAAS,EAAE,kCAAkC;yBAC9C;qBACF;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,uCAAuC;YACjD,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,sCAAsC;oBAC7C,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,4BAA4B;qBACtC;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,8CAA8C;YACxD,OAAO,EAAE;gBACP,UAAU,EAAE;oBACV,QAAQ,EAAE,mDAAmD;iBAC9D;aACF;YACD,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,gDAAgD;oBACvD,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,gCAAgC;wBACzC,YAAY,EAAE,MAAM;wBACpB,KAAK,EAAE,CAAC;qBACT;iBACF;aACF;SACF;KACF;CACF,CAAC"}
@@ -10,7 +10,11 @@ const getBasePropertyMap_1 = require("../../core/_internal/getBasePropertyMap");
10
10
  */
11
11
  function getPropertyMap() {
12
12
  const map = getBasePropertyMap_1.getBasePropertyMap();
13
- // Type specific mappings
13
+ /**
14
+ * project-specific mappings. Note: we do not need to explicitly map
15
+ * properties from the project item's data.view into the entity's view
16
+ * because that mapping is already defined in the base property map
17
+ */
14
18
  map.push({ objectKey: "status", modelKey: "data.status" });
15
19
  map.push({ objectKey: "catalog", modelKey: "data.catalog" });
16
20
  map.push({ objectKey: "permissions", modelKey: "data.permissions" });
@@ -18,8 +22,6 @@ function getPropertyMap() {
18
22
  objectKey: "capabilities",
19
23
  modelKey: "data.settings.capabilities",
20
24
  });
21
- map.push({ objectKey: "contacts", modelKey: "data.contacts" });
22
- map.push({ objectKey: "timeline", modelKey: "data.timeline" });
23
25
  return map;
24
26
  }
25
27
  exports.getPropertyMap = getPropertyMap;
@@ -1 +1 @@
1
- {"version":3,"file":"getPropertyMap.js","sourceRoot":"","sources":["../../../../src/projects/_internal/getPropertyMap.ts"],"names":[],"mappings":";;;AACA,gFAA6E;AAE7E;;;;;GAKG;AAEH,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAG,uCAAkB,EAAE,CAAC;IAEjC,yBAAyB;IACzB,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC;IAC3D,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7D,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACrE,GAAG,CAAC,IAAI,CAAC;QACP,SAAS,EAAE,cAAc;QACzB,QAAQ,EAAE,4BAA4B;KACvC,CAAC,CAAC;IACH,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IAC/D,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IAE/D,OAAO,GAAG,CAAC;AACb,CAAC;AAfD,wCAeC"}
1
+ {"version":3,"file":"getPropertyMap.js","sourceRoot":"","sources":["../../../../src/projects/_internal/getPropertyMap.ts"],"names":[],"mappings":";;;AACA,gFAA6E;AAE7E;;;;;GAKG;AAEH,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAG,uCAAkB,EAAE,CAAC;IAEjC;;;;OAIG;IACH,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC;IAC3D,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7D,GAAG,CAAC,IA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