@esri/hub-common 14.157.0 → 14.159.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 (136) hide show
  1. package/dist/esm/content/_internal/computeProps.js +61 -0
  2. package/dist/esm/content/_internal/computeProps.js.map +1 -1
  3. package/dist/esm/content/_internal/fetchEditableContentEnrichments.js +55 -0
  4. package/dist/esm/content/_internal/fetchEditableContentEnrichments.js.map +1 -0
  5. package/dist/esm/content/_internal/fetchItemScheduleEnrichment.js +28 -0
  6. package/dist/esm/content/_internal/fetchItemScheduleEnrichment.js.map +1 -0
  7. package/dist/esm/content/edit.js +2 -1
  8. package/dist/esm/content/edit.js.map +1 -1
  9. package/dist/esm/content/{fetch.js → fetchContent.js} +2 -49
  10. package/dist/esm/content/fetchContent.js.map +1 -0
  11. package/dist/esm/content/fetchHubContent.js +26 -0
  12. package/dist/esm/content/fetchHubContent.js.map +1 -0
  13. package/dist/esm/content/index.js +3 -1
  14. package/dist/esm/content/index.js.map +1 -1
  15. package/dist/esm/content/modelToHubEditableContent.js +16 -0
  16. package/dist/esm/content/modelToHubEditableContent.js.map +1 -0
  17. package/dist/esm/content/types.js.map +1 -1
  18. package/dist/esm/core/fetchHubEntity.js +1 -1
  19. package/dist/esm/core/fetchHubEntity.js.map +1 -1
  20. package/dist/esm/downloads/_internal/_types.js +5 -8
  21. package/dist/esm/downloads/_internal/_types.js.map +1 -1
  22. package/dist/esm/downloads/_internal/canUseExportImageFlow.js +7 -1
  23. package/dist/esm/downloads/_internal/canUseExportImageFlow.js.map +1 -1
  24. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFile.js +77 -0
  25. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFile.js.map +1 -0
  26. package/dist/esm/downloads/_internal/file-url-fetchers/{fetchExportItemDownloadFileUrl.js → fetchExportItemDownloadFile.js} +6 -3
  27. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js.map +1 -0
  28. package/dist/esm/downloads/_internal/file-url-fetchers/{fetchHubApiDownloadFileUrl.js → fetchHubApiDownloadFile.js} +6 -3
  29. package/dist/esm/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFile.js.map +1 -0
  30. package/dist/esm/downloads/_internal/format-fetchers/getCreateReplicaFormats.js +1 -0
  31. package/dist/esm/downloads/_internal/format-fetchers/getCreateReplicaFormats.js.map +1 -1
  32. package/dist/esm/downloads/_internal/format-fetchers/getExportImageFormats.js +16 -6
  33. package/dist/esm/downloads/_internal/format-fetchers/getExportImageFormats.js.map +1 -1
  34. package/dist/esm/downloads/canUseCreateReplica.js +1 -0
  35. package/dist/esm/downloads/canUseCreateReplica.js.map +1 -1
  36. package/dist/esm/downloads/canUseHubDownloadSystem.js +1 -0
  37. package/dist/esm/downloads/canUseHubDownloadSystem.js.map +1 -1
  38. package/dist/esm/downloads/{fetchDownloadFileUrl.js → fetchDownloadFile.js} +8 -8
  39. package/dist/esm/downloads/fetchDownloadFile.js.map +1 -0
  40. package/dist/esm/downloads/fetchDownloadFormats.js +2 -1
  41. package/dist/esm/downloads/fetchDownloadFormats.js.map +1 -1
  42. package/dist/esm/downloads/index.js +1 -1
  43. package/dist/esm/downloads/index.js.map +1 -1
  44. package/dist/esm/downloads/types.js +4 -4
  45. package/dist/esm/downloads/types.js.map +1 -1
  46. package/dist/esm/events/_internal/PropertyMapper.js +0 -1
  47. package/dist/esm/events/_internal/PropertyMapper.js.map +1 -1
  48. package/dist/esm/events/_internal/getPropertyMap.js +8 -0
  49. package/dist/esm/events/_internal/getPropertyMap.js.map +1 -1
  50. package/dist/esm/events/api/orval/api/orval-events.js.map +1 -1
  51. package/dist/esm/items/_enrichments.js.map +1 -1
  52. package/dist/node/content/_internal/computeProps.js +61 -0
  53. package/dist/node/content/_internal/computeProps.js.map +1 -1
  54. package/dist/node/content/_internal/fetchEditableContentEnrichments.js +59 -0
  55. package/dist/node/content/_internal/fetchEditableContentEnrichments.js.map +1 -0
  56. package/dist/node/content/_internal/fetchItemScheduleEnrichment.js +32 -0
  57. package/dist/node/content/_internal/fetchItemScheduleEnrichment.js.map +1 -0
  58. package/dist/node/content/edit.js +3 -2
  59. package/dist/node/content/edit.js.map +1 -1
  60. package/dist/node/content/{fetch.js → fetchContent.js} +2 -50
  61. package/dist/node/content/{fetch.js.map → fetchContent.js.map} +1 -1
  62. package/dist/node/content/fetchHubContent.js +29 -0
  63. package/dist/node/content/fetchHubContent.js.map +1 -0
  64. package/dist/node/content/index.js +3 -1
  65. package/dist/node/content/index.js.map +1 -1
  66. package/dist/node/content/modelToHubEditableContent.js +20 -0
  67. package/dist/node/content/modelToHubEditableContent.js.map +1 -0
  68. package/dist/node/content/types.js.map +1 -1
  69. package/dist/node/core/fetchHubEntity.js +12 -12
  70. package/dist/node/core/fetchHubEntity.js.map +1 -1
  71. package/dist/node/downloads/_internal/_types.js +5 -8
  72. package/dist/node/downloads/_internal/_types.js.map +1 -1
  73. package/dist/node/downloads/_internal/canUseExportImageFlow.js +7 -1
  74. package/dist/node/downloads/_internal/canUseExportImageFlow.js.map +1 -1
  75. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFile.js +81 -0
  76. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFile.js.map +1 -0
  77. package/dist/node/downloads/_internal/file-url-fetchers/{fetchExportItemDownloadFileUrl.js → fetchExportItemDownloadFile.js} +8 -5
  78. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFile.js.map +1 -0
  79. package/dist/node/downloads/_internal/file-url-fetchers/{fetchHubApiDownloadFileUrl.js → fetchHubApiDownloadFile.js} +8 -5
  80. package/dist/node/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFile.js.map +1 -0
  81. package/dist/node/downloads/_internal/format-fetchers/getCreateReplicaFormats.js +1 -0
  82. package/dist/node/downloads/_internal/format-fetchers/getCreateReplicaFormats.js.map +1 -1
  83. package/dist/node/downloads/_internal/format-fetchers/getExportImageFormats.js +16 -6
  84. package/dist/node/downloads/_internal/format-fetchers/getExportImageFormats.js.map +1 -1
  85. package/dist/node/downloads/canUseCreateReplica.js +1 -0
  86. package/dist/node/downloads/canUseCreateReplica.js.map +1 -1
  87. package/dist/node/downloads/canUseHubDownloadSystem.js +1 -0
  88. package/dist/node/downloads/canUseHubDownloadSystem.js.map +1 -1
  89. package/dist/node/downloads/{fetchDownloadFileUrl.js → fetchDownloadFile.js} +10 -10
  90. package/dist/node/downloads/fetchDownloadFile.js.map +1 -0
  91. package/dist/node/downloads/fetchDownloadFormats.js +2 -1
  92. package/dist/node/downloads/fetchDownloadFormats.js.map +1 -1
  93. package/dist/node/downloads/index.js +1 -1
  94. package/dist/node/downloads/index.js.map +1 -1
  95. package/dist/node/downloads/types.js +4 -4
  96. package/dist/node/downloads/types.js.map +1 -1
  97. package/dist/node/events/_internal/PropertyMapper.js +0 -1
  98. package/dist/node/events/_internal/PropertyMapper.js.map +1 -1
  99. package/dist/node/events/_internal/getPropertyMap.js +8 -0
  100. package/dist/node/events/_internal/getPropertyMap.js.map +1 -1
  101. package/dist/node/events/api/orval/api/orval-events.js.map +1 -1
  102. package/dist/node/items/_enrichments.js.map +1 -1
  103. package/dist/types/content/_fetch.d.ts +1 -2
  104. package/dist/types/content/_internal/fetchEditableContentEnrichments.d.ts +16 -0
  105. package/dist/types/content/_internal/fetchItemScheduleEnrichment.d.ts +15 -0
  106. package/dist/types/content/fetchContent.d.ts +24 -0
  107. package/dist/types/content/fetchHubContent.d.ts +10 -0
  108. package/dist/types/content/index.d.ts +3 -1
  109. package/dist/types/content/modelToHubEditableContent.d.ts +12 -0
  110. package/dist/types/core/types/IHubEditableContent.d.ts +69 -0
  111. package/dist/types/core/types/IHubEvent.d.ts +8 -0
  112. package/dist/types/downloads/_internal/_types.d.ts +2 -1
  113. package/dist/types/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFile.d.ts +10 -0
  114. package/dist/types/downloads/_internal/file-url-fetchers/{fetchExportItemDownloadFileUrl.d.ts → fetchExportItemDownloadFile.d.ts} +2 -2
  115. package/dist/types/downloads/_internal/file-url-fetchers/{fetchHubApiDownloadFileUrl.d.ts → fetchHubApiDownloadFile.d.ts} +2 -2
  116. package/dist/types/downloads/_internal/format-fetchers/getExportImageFormats.d.ts +3 -4
  117. package/dist/types/downloads/fetchDownloadFile.d.ts +8 -0
  118. package/dist/types/downloads/index.d.ts +1 -1
  119. package/dist/types/downloads/types.d.ts +19 -6
  120. package/dist/types/events/api/orval/api/orval-events.d.ts +176 -156
  121. package/dist/types/items/_enrichments.d.ts +6 -2
  122. package/package.json +1 -1
  123. package/dist/esm/content/fetch.js.map +0 -1
  124. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.js +0 -46
  125. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.js.map +0 -1
  126. package/dist/esm/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFileUrl.js.map +0 -1
  127. package/dist/esm/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFileUrl.js.map +0 -1
  128. package/dist/esm/downloads/fetchDownloadFileUrl.js.map +0 -1
  129. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.js +0 -50
  130. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.js.map +0 -1
  131. package/dist/node/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFileUrl.js.map +0 -1
  132. package/dist/node/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFileUrl.js.map +0 -1
  133. package/dist/node/downloads/fetchDownloadFileUrl.js.map +0 -1
  134. package/dist/types/content/fetch.d.ts +0 -33
  135. package/dist/types/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.d.ts +0 -12
  136. package/dist/types/downloads/fetchDownloadFileUrl.d.ts +0 -8
@@ -6,6 +6,88 @@
6
6
  */
7
7
  import { Awaited } from "../awaited-type";
8
8
  import { customClient } from "../custom-client";
9
+ export declare type GetEventsParams = {
10
+ /**
11
+ * Comma separated string list of EventAccess. Example: PRIVATE,ORG,PUBLIC
12
+ */
13
+ access?: string;
14
+ /**
15
+ * Comma separated string list of AttendanceTypes. Example: VIRTUAL,IN_PERSON
16
+ */
17
+ attendanceTypes?: string;
18
+ /**
19
+ * boolean to filter events that can be edited by the user
20
+ */
21
+ canEdit?: string;
22
+ /**
23
+ * Comma separated string list of categories
24
+ */
25
+ categories?: string;
26
+ /**
27
+ * Comma separated string list of createdByIds
28
+ */
29
+ createdByIds?: string;
30
+ /**
31
+ * Comma separated string list of edit groupIds
32
+ */
33
+ editGroups?: string;
34
+ /**
35
+ * Comma separated string list of associated entityIds
36
+ */
37
+ entityIds?: string;
38
+ /**
39
+ * Comma separated string list of associated entity types. Example: Hub Site Application,Hub Initiative,Hub Project
40
+ */
41
+ entityTypes?: string;
42
+ /**
43
+ * Comma separated string list of event ids
44
+ */
45
+ eventIds?: string;
46
+ /**
47
+ * Comma separated string list of relation fields to include in response. Example: associations,creator,location,onlineMeetings,registrations
48
+ */
49
+ include?: string;
50
+ /**
51
+ * the max amount of events to return
52
+ */
53
+ num?: string;
54
+ /**
55
+ * Comma separated string list of read groupIds
56
+ */
57
+ readGroups?: string;
58
+ /**
59
+ * Event property to sort results by
60
+ */
61
+ sortBy?: EventSort;
62
+ /**
63
+ * sort results order desc or asc
64
+ */
65
+ sortOrder?: EventSortOrder;
66
+ /**
67
+ * the index to start at
68
+ */
69
+ start?: string;
70
+ /**
71
+ * earliest ISO8601 start date-time for the events
72
+ */
73
+ startDateTimeAfter?: string;
74
+ /**
75
+ * latest ISO8601 start date-time for the events
76
+ */
77
+ startDateTimeBefore?: string;
78
+ /**
79
+ * comma separated string list of event statuses. Example: PRIVATE,ORG,PUBLIC
80
+ */
81
+ status?: string;
82
+ /**
83
+ * Comma separated string list of tags
84
+ */
85
+ tags?: string;
86
+ /**
87
+ * string to match within an event title
88
+ */
89
+ title?: string;
90
+ };
9
91
  export interface IUpdateRegistration {
10
92
  /** Role of the user in the event */
11
93
  role?: RegistrationRole;
@@ -14,11 +96,6 @@ export interface IUpdateRegistration {
14
96
  /** Attendance type for this registration */
15
97
  type?: EventAttendanceType;
16
98
  }
17
- export interface IPagedRegistrationResponse {
18
- items: IRegistration[];
19
- nextStart: number;
20
- total: number;
21
- }
22
99
  export declare enum RegistrationSort {
23
100
  createdAt = "createdAt",
24
101
  updatedAt = "updatedAt",
@@ -98,6 +175,12 @@ export interface ICreateRegistration {
98
175
  * Location for the event
99
176
  */
100
177
  export declare type IUpdateEventLocation = ICreateEventLocation | null;
178
+ /**
179
+ * capabilities for an event
180
+ */
181
+ export declare type IUpdateEventCapabilities = {
182
+ [key: string]: any;
183
+ } | null;
101
184
  export interface IUpdateEvent {
102
185
  /** Access level of the event */
103
186
  access?: EventAccess;
@@ -109,6 +192,8 @@ export interface IUpdateEvent {
109
192
  associations?: ICreateEventAssociation[];
110
193
  /** Valid ways to attend the event */
111
194
  attendanceType?: EventAttendanceType[];
195
+ /** capabilities for an event */
196
+ capabilities?: IUpdateEventCapabilities;
112
197
  /** categories for the event */
113
198
  categories?: string[];
114
199
  /** Description of the event */
@@ -159,92 +244,33 @@ export declare enum EventSort {
159
244
  createdAt = "createdAt",
160
245
  updatedAt = "updatedAt"
161
246
  }
162
- export declare type GetEventsParams = {
163
- /**
164
- * Comma separated string list of EventAccess. Example: PRIVATE,ORG,PUBLIC
165
- */
166
- access?: string;
167
- /**
168
- * Comma separated string list of AttendanceTypes. Example: VIRTUAL,IN_PERSON
169
- */
170
- attendanceTypes?: string;
171
- /**
172
- * boolean to filter events that can be edited by the user
173
- */
174
- canEdit?: string;
175
- /**
176
- * Comma separated string list of categories
177
- */
178
- categories?: string;
179
- /**
180
- * Comma separated string list of createdByIds
181
- */
182
- createdByIds?: string;
183
- /**
184
- * Comma separated string list of edit groupIds
185
- */
186
- editGroups?: string;
187
- /**
188
- * Comma separated string list of associated entityIds
189
- */
190
- entityIds?: string;
191
- /**
192
- * Comma separated string list of associated entity types. Example: Hub Site Application,Hub Initiative,Hub Project
193
- */
194
- entityTypes?: string;
195
- /**
196
- * Comma separated string list of event ids
197
- */
198
- eventIds?: string;
199
- /**
200
- * Comma separated string list of relation fields to include in response. Example: associations,creator,location,onlineMeetings,registrations
201
- */
202
- include?: string;
203
- /**
204
- * the max amount of events to return
205
- */
206
- num?: string;
207
- /**
208
- * Comma separated string list of read groupIds
209
- */
210
- readGroups?: string;
211
- /**
212
- * Event property to sort results by
213
- */
214
- sortBy?: EventSort;
215
- /**
216
- * sort results order desc or asc
217
- */
218
- sortOrder?: EventSortOrder;
219
- /**
220
- * the index to start at
221
- */
222
- start?: string;
223
- /**
224
- * earliest ISO8601 start date-time for the events
225
- */
226
- startDateTimeAfter?: string;
227
- /**
228
- * latest ISO8601 start date-time for the events
229
- */
230
- startDateTimeBefore?: string;
231
- /**
232
- * comma separated string list of event statuses. Example: PRIVATE,ORG,PUBLIC
233
- */
234
- status?: string;
235
- /**
236
- * Comma separated string list of tags
237
- */
238
- tags?: string;
239
- /**
240
- * string to match within an event title
241
- */
242
- title?: string;
243
- };
244
247
  export interface IRegistrationPermission {
245
248
  canDelete: boolean;
246
249
  canEdit: boolean;
247
250
  }
251
+ export interface IRegistration {
252
+ createdAt: string;
253
+ createdBy?: IUser;
254
+ createdById: string;
255
+ event?: IEvent;
256
+ eventId: string;
257
+ id: string;
258
+ permission: IRegistrationPermission;
259
+ role: RegistrationRole;
260
+ status: RegistrationStatus;
261
+ type: EventAttendanceType;
262
+ updatedAt: string;
263
+ user?: IUser;
264
+ userId: string;
265
+ }
266
+ export interface IPagedRegistrationResponse {
267
+ items: IRegistration[];
268
+ nextStart: number;
269
+ total: number;
270
+ }
271
+ export declare type IEventCapabilities = {
272
+ [key: string]: any;
273
+ } | null;
248
274
  export interface IEventPermission {
249
275
  canDelete: boolean;
250
276
  canEdit: boolean;
@@ -269,21 +295,6 @@ export declare enum RegistrationRole {
269
295
  ORGANIZER = "ORGANIZER",
270
296
  ATTENDEE = "ATTENDEE"
271
297
  }
272
- export interface IRegistration {
273
- createdAt: string;
274
- createdBy?: IUser;
275
- createdById: string;
276
- event?: IEvent;
277
- eventId: string;
278
- id: string;
279
- permission: IRegistrationPermission;
280
- role: RegistrationRole;
281
- status: RegistrationStatus;
282
- type: EventAttendanceType;
283
- updatedAt: string;
284
- user?: IUser;
285
- userId: string;
286
- }
287
298
  export declare enum EventStatus {
288
299
  PLANNED = "PLANNED",
289
300
  CANCELED = "CANCELED",
@@ -351,6 +362,7 @@ export interface IEvent {
351
362
  allowRegistration: boolean;
352
363
  associations?: IEventAssociation[];
353
364
  attendanceType: EventAttendanceType[];
365
+ capabilities?: IEventCapabilities;
354
366
  categories: string[];
355
367
  createdAt: string;
356
368
  createdById: string | null;
@@ -381,6 +393,12 @@ export interface IEvent {
381
393
  title: string;
382
394
  updatedAt: string;
383
395
  }
396
+ /**
397
+ * capabilities for an event
398
+ */
399
+ export declare type ICreateEventCapabilities = {
400
+ [key: string]: any;
401
+ } | null;
384
402
  export interface ICreateOnlineMeeting {
385
403
  /** Capacity of the online meeting. Minimum value is 1 */
386
404
  capacity?: number;
@@ -389,6 +407,62 @@ export interface ICreateOnlineMeeting {
389
407
  /** Url for the online meeting */
390
408
  url: string;
391
409
  }
410
+ export interface ICreateEvent {
411
+ /** Access level of the event */
412
+ access?: EventAccess;
413
+ /** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
414
+ agoId?: string;
415
+ /** Flag for all day event */
416
+ allDay?: boolean;
417
+ /** Boolean to indicate if users can register for an event */
418
+ allowRegistration?: boolean;
419
+ /** Items associated with the event */
420
+ associations?: ICreateEventAssociation[];
421
+ /** Valid ways to attend the event */
422
+ attendanceType?: EventAttendanceType[];
423
+ /** capabilities for an event */
424
+ capabilities?: ICreateEventCapabilities;
425
+ /** categories for the event */
426
+ categories?: string[];
427
+ /** Description of the event */
428
+ description?: string;
429
+ /** Groups with edit access to the event */
430
+ editGroups?: string[];
431
+ /** Email for the subscriber. Will always be extracted from the token unless service token is used. */
432
+ email?: string;
433
+ /** end date string formatted YYYY-MM-DD */
434
+ endDate: string;
435
+ /** end time string 24 hour formatted HH:MM:SS */
436
+ endTime: string;
437
+ /** First name for the subscriber. Will always be extracted from the token unless service token is used. */
438
+ firstName?: string;
439
+ /** in-person capacity for the event. Minimum value is 1 */
440
+ inPersonCapacity?: number;
441
+ /** Last name for the subscriber. Will always be extracted from the token unless service token is used. */
442
+ lastName?: string;
443
+ /** Location for the event */
444
+ location?: ICreateEventLocationProperty;
445
+ /** Flag to notify attendees */
446
+ notifyAttendees?: boolean;
447
+ /** Online meetings for the event. Required if attendanceType includes VIRTUAL */
448
+ onlineMeetings?: ICreateOnlineMeeting[];
449
+ /** Groups with read access to the event */
450
+ readGroups?: string[];
451
+ /** start date string formatted YYYY-MM-DD */
452
+ startDate: string;
453
+ /** start time string 24 hour formatted HH:MM:SS */
454
+ startTime: string;
455
+ /** Summary of the event */
456
+ summary?: string;
457
+ /** Tags for the event */
458
+ tags?: string[];
459
+ /** IANA time zone for the event */
460
+ timeZone: string;
461
+ /** Title of the event */
462
+ title: string;
463
+ /** Username for the subscriber. Will always be extracted from the token unless service token is used. */
464
+ username?: string;
465
+ }
392
466
  export declare type ICreateEventLocationGeometriesItem = {
393
467
  [key: string]: any;
394
468
  };
@@ -464,60 +538,6 @@ export declare enum EventAccess {
464
538
  ORG = "ORG",
465
539
  PUBLIC = "PUBLIC"
466
540
  }
467
- export interface ICreateEvent {
468
- /** Access level of the event */
469
- access?: EventAccess;
470
- /** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
471
- agoId?: string;
472
- /** Flag for all day event */
473
- allDay?: boolean;
474
- /** Boolean to indicate if users can register for an event */
475
- allowRegistration?: boolean;
476
- /** Items associated with the event */
477
- associations?: ICreateEventAssociation[];
478
- /** Valid ways to attend the event */
479
- attendanceType?: EventAttendanceType[];
480
- /** categories for the event */
481
- categories?: string[];
482
- /** Description of the event */
483
- description?: string;
484
- /** Groups with edit access to the event */
485
- editGroups?: string[];
486
- /** Email for the subscriber. Will always be extracted from the token unless service token is used. */
487
- email?: string;
488
- /** end date string formatted YYYY-MM-DD */
489
- endDate: string;
490
- /** end time string 24 hour formatted HH:MM:SS */
491
- endTime: string;
492
- /** First name for the subscriber. Will always be extracted from the token unless service token is used. */
493
- firstName?: string;
494
- /** in-person capacity for the event. Minimum value is 1 */
495
- inPersonCapacity?: number;
496
- /** Last name for the subscriber. Will always be extracted from the token unless service token is used. */
497
- lastName?: string;
498
- /** Location for the event */
499
- location?: ICreateEventLocationProperty;
500
- /** Flag to notify attendees */
501
- notifyAttendees?: boolean;
502
- /** Online meetings for the event. Required if attendanceType includes VIRTUAL */
503
- onlineMeetings?: ICreateOnlineMeeting[];
504
- /** Groups with read access to the event */
505
- readGroups?: string[];
506
- /** start date string formatted YYYY-MM-DD */
507
- startDate: string;
508
- /** start time string 24 hour formatted HH:MM:SS */
509
- startTime: string;
510
- /** Summary of the event */
511
- summary?: string;
512
- /** Tags for the event */
513
- tags?: string[];
514
- /** IANA time zone for the event */
515
- timeZone: string;
516
- /** Title of the event */
517
- title: string;
518
- /** Username for the subscriber. Will always be extracted from the token unless service token is used. */
519
- username?: string;
520
- }
521
541
  declare type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
522
542
  export declare const createEvent: (iCreateEvent: ICreateEvent, options?: SecondParameter<typeof customClient>) => Promise<IEvent>;
523
543
  export declare const getEvents: (params?: GetEventsParams, options?: SecondParameter<typeof customClient>) => Promise<IPagedEventResponse>;
@@ -15,9 +15,13 @@ export interface IItemAndEnrichments extends IItemEnrichments, IServerEnrichment
15
15
  */
16
16
  export declare type ItemOrServerEnrichment = keyof IItemEnrichments | keyof IServerEnrichments;
17
17
  export declare type IItemAndIServerEnrichments = IItemEnrichments & IServerEnrichments;
18
- export interface IHubEditableContentEnrichments extends IItemAndIServerEnrichments {
18
+ /**
19
+ * Enrichments that can be fetched for an IHubEditableContent entity
20
+ */
21
+ export declare type IHubEditableContentEnrichments = Pick<IItemAndIServerEnrichments, "metadata" | "server"> & {
19
22
  schedule?: IHubSchedule;
20
- }
23
+ };
24
+ export declare type EditableContentEnrichment = keyof IHubEditableContentEnrichments;
21
25
  /**
22
26
  * convert an error to an enrichment error info format
23
27
  * and optionally append it to an existing array of those
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.157.0",
3
+ "version": "14.159.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",
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../src/content/fetch.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EAER,eAAe,EACf,aAAa,GACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAEL,oBAAoB,GAIrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACL,cAAc,EACd,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,OAAO,EA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0EAA0E;IAC1E,IACE,6BAA6B,CAAC,cAAoC,EAAE,MAAM,CAAC,EAC3E;QACA,IAAI;YACF,wEAAwE;YACxE,iBAAiB,CAAC,QAAQ,GAAG,CAC3B,MAAM,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,cAAqC,CAAC,CAClE,CAAC,QAAQ,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;SACrC;QAAC,OAAO,KAAK,EAAE;YACd,+BAA+B;YAC/B,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACnE;KACF;IAED,OAAO,yBAAyB,CAAC,KAAK,EAAE,cAAc,EAAE,iBAAiB,CAAC,CAAC;AAC7E,CAAC,CAAC;AAEF,MAAM,UAAU,yBAAyB,CACvC,KAAa,EACb,cAA+B,EAC/B,WAAuC;IAEvC,MAAM,MAAM,GAAG,IAAI,cAAc,CAC/B,cAAc,EAAE,CACjB,CAAC;IACF,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,CAAwB,CAAC;IACvE,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC"}
@@ -1,46 +0,0 @@
1
- import { request } from "@esri/arcgis-rest-request";
2
- import { DownloadOperationStatus, } from "../../types";
3
- /**
4
- * @private
5
- * Fetches a download file url from an Image Service via the exportImage endpoint
6
- *
7
- * NOTE: This function is incomplete and needs various parameters to be validated
8
- * and implemented. It is a work in progress.
9
- *
10
- * @param options options for refining / filtering the resulting download file
11
- * @returns a url to download the file
12
- */
13
- export async function fetchExportImageDownloadFileUrl(options) {
14
- const { entity, format, context, geometry, progressCallback } = options;
15
- progressCallback && progressCallback(DownloadOperationStatus.PENDING);
16
- // TODO: validate layers, geometry, where, etc. I don't think all of them are applicable in every permutation
17
- const requestOptions = Object.assign({}, context.requestOptions);
18
- requestOptions.httpMethod = "GET";
19
- requestOptions.params = {
20
- format,
21
- mosaicRule: '{"ascending":true,"mosaicMethod":"esriMosaicNorthwest","mosaicOperation":"MT_FIRST"}',
22
- };
23
- if (geometry && geometry.type === "extent") {
24
- const { xmin, xmax, ymin, ymax } = geometry;
25
- const { wkid } = geometry.spatialReference;
26
- requestOptions.params.bbox = `${xmin},${ymin},${xmax},${ymax}`;
27
- requestOptions.params.bboxSR = `${wkid}`;
28
- requestOptions.params.imageSR = `${wkid}`;
29
- }
30
- // Note: validate where "extent" and "layer" are coming from in the old ember code,
31
- // check if they are still applicable here
32
- // else {
33
- // const coords = entity.extent;
34
- // requestOptions.params.bbox = `${coords[0][0]},${coords[0][1]},${coords[1][0]},${coords[1][1]}`;
35
- // requestOptions.params.bboxSR = "4326";
36
- // requestOptions.params.imageSR = "4326";
37
- // }
38
- // const { maxImageHeight, maxImageWidth } = this.args.model.layer || {};
39
- // if (maxImageWidth && maxImageHeight) {
40
- // requestOptions.params.size = `${maxImageWidth},${maxImageHeight}`;
41
- // }
42
- const { href } = await request(`${entity.url}/exportImage`, requestOptions);
43
- progressCallback && progressCallback(DownloadOperationStatus.COMPLETED);
44
- return href;
45
- }
46
- //# sourceMappingURL=fetchExportImageDownloadFileUrl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchExportImageDownloadFileUrl.js","sourceRoot":"","sources":["../../../../../src/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EACL,uBAAuB,GAExB,MAAM,aAAa,CAAC;AAErB;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CACnD,OAAqC;IAErC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACxE,gBAAgB,IAAI,gBAAgB,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAEtE,6GAA6G;IAE7G,MAAM,cAAc,qBAAQ,OAAO,CAAC,cAAc,CAAE,CAAC;IACrD,cAAc,CAAC,UAAU,GAAG,KAAK,CAAC;IAClC,cAAc,CAAC,MAAM,GAAG;QACtB,MAAM;QACN,UAAU,EACR,sFAAsF;KACzF,CAAC;IAEF,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,QAAyB,CAAC;QAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,gBAAgB,CAAC;QAC3C,cAAc,CAAC,MAAM,CAAC,IAAI,GAAG,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC/D,cAAc,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,EAAE,CAAC;QACzC,cAAc,CAAC,MAAM,CAAC,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;KAC3C;IACD,mFAAmF;IACnF,0CAA0C;IAC1C,SAAS;IACT,kCAAkC;IAClC,oGAAoG;IACpG,2CAA2C;IAC3C,4CAA4C;IAC5C,IAAI;IAEJ,yEAAyE;IACzE,yCAAyC;IACzC,uEAAuE;IACvE,IAAI;IAEJ,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,OAAO,CAAC,GAAG,MAAM,CAAC,GAAG,cAAc,EAAE,cAAc,CAAC,CAAC;IAC5E,gBAAgB,IAAI,gBAAgB,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACxE,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchExportItemDownloadFileUrl.js","sourceRoot":"","sources":["../../../../../src/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFileUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,aAAa,GACd,MAA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,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;QAClE,OAAO,oBAAoB,CACzB,cAAc,EACd,KAAK,EACL,OAAO,EACP,YAAY,EACZ,gBAAgB,CACjB,CAAC;KACH;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchHubApiDownloadFileUrl.js","sourceRoot":"","sources":["../../../../../src/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFileUrl.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EAEvB,qBAAqB,GAEtB,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,OAAqC;IAErC,eAAe,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,UAAU,GAAG,wBAAwB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACnD,OAAO,eAAe,CAAC,UAAU,EAAE,YAAY,EAAE,gBAAgB,CAAC,CAAC;AACrE,CAAC;AAED,SAAS,eAAe,CAAC,OAAqC;IAC5D,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC;IAEhC,yEAAyE;IACzE,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;QACvB,MAAM,IAAI,QAAQ,CAChB,4BAA4B,EAC5B,iCAAiC,CAClC,CAAC;KACH;IAED,+DAA+D;IAC/D,gEAAgE;IAChE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,MAAM,IAAI,QAAQ,CAChB,4BAA4B,EAC5B,gDAAgD,CACjD,CAAC;KACH;AACH,CAAC;AAED;;;;;;GAMG;AACH,SAAS,wBAAwB,CAAC,OAAqC;I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C,OAAO,CAAC,EAAE;QAC3E,UAAU,GAAG,CACX,MAAM,MAAM,CAAC,0DAA0D,CAAC,CACzE,CAAC,0BAA0B,CAAC;KAC9B;SAAM,IAAI,oBAAoB,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;QACxD,UAAU,GAAG,CACX,MAAM,MAAM,CACV,8DAA8D,CAC/D,CACF,CAAC,8BAA8B,CAAC;KAClC;SAAM,IAAI,qBAAqB,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;QACzD,UAAU,GAAG,CACX,MAAM,MAAM,CACV,+DAA+D,CAChE,CACF,CAAC,+BAA+B,CAAC;KACnC;SAAM;QACL,MAAM,IAAI,QAAQ,CAChB,sBAAsB,EACtB,+DAA+D,CAChE,CAAC;KACH;IACD,OAAO,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACtC,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchExportImageDownloadFileUrl = void 0;
4
- const arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
5
- const types_1 = require("../../types");
6
- /**
7
- * @private
8
- * Fetches a download file url from an Image Service via the exportImage endpoint
9
- *
10
- * NOTE: This function is incomplete and needs various parameters to be validated
11
- * and implemented. It is a work in progress.
12
- *
13
- * @param options options for refining / filtering the resulting download file
14
- * @returns a url to download the file
15
- */
16
- async function fetchExportImageDownloadFileUrl(options) {
17
- const { entity, format, context, geometry, progressCallback } = options;
18
- progressCallback && progressCallback(types_1.DownloadOperationStatus.PENDING);
19
- // TODO: validate layers, geometry, where, etc. I don't think all of them are applicable in every permutation
20
- const requestOptions = Object.assign({}, context.requestOptions);
21
- requestOptions.httpMethod = "GET";
22
- requestOptions.params = {
23
- format,
24
- mosaicRule: '{"ascending":true,"mosaicMethod":"esriMosaicNorthwest","mosaicOperation":"MT_FIRST"}',
25
- };
26
- if (geometry && geometry.type === "extent") {
27
- const { xmin, xmax, ymin, ymax } = geometry;
28
- const { wkid } = geometry.spatialReference;
29
- requestOptions.params.bbox = `${xmin},${ymin},${xmax},${ymax}`;
30
- requestOptions.params.bboxSR = `${wkid}`;
31
- requestOptions.params.imageSR = `${wkid}`;
32
- }
33
- // Note: validate where "extent" and "layer" are coming from in the old ember code,
34
- // check if they are still applicable here
35
- // else {
36
- // const coords = entity.extent;
37
- // requestOptions.params.bbox = `${coords[0][0]},${coords[0][1]},${coords[1][0]},${coords[1][1]}`;
38
- // requestOptions.params.bboxSR = "4326";
39
- // requestOptions.params.imageSR = "4326";
40
- // }
41
- // const { maxImageHeight, maxImageWidth } = this.args.model.layer || {};
42
- // if (maxImageWidth && maxImageHeight) {
43
- // requestOptions.params.size = `${maxImageWidth},${maxImageHeight}`;
44
- // }
45
- const { href } = await arcgis_rest_request_1.request(`${entity.url}/exportImage`, requestOptions);
46
- progressCallback && progressCallback(types_1.DownloadOperationStatus.COMPLETED);
47
- return href;
48
- }
49
- exports.fetchExportImageDownloadFileUrl = fetchExportImageDownloadFileUrl;
50
- //# sourceMappingURL=fetchExportImageDownloadFileUrl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchExportImageDownloadFileUrl.js","sourceRoot":"","sources":["../../../../../src/downloads/_internal/file-url-fetchers/fetchExportImageDownloadFileUrl.ts"],"names":[],"mappings":";;;AAAA,mEAAoD;AACpD,uCAGqB;AAErB;;;;;;;;;GASG;AACI,KAAK,UAAU,+BAA+B,CACnD,OAAqC;IAErC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IACxE,gBAAgB,IAAI,gBAAgB,CAAC,+BAAuB,CAAC,OAAO,CAAC,CAAC;IAEtE,6GAA6G;IAE7G,MAAM,cAAc,qBAAQ,OAAO,CAAC,cAAc,CAAE,CAAC;IACrD,cAAc,CAAC,UAAU,GAAG,KAAK,CAAC;IAClC,cAAc,CAAC,MAAM,GAAG;QACtB,MAAM;QACN,UAAU,EACR,sFAAsF;KACzF,CAAC;IAEF,IAAI,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE;QAC1C,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,QAAyB,CAAC;QAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,gBAAgB,CAAC;QAC3C,cAAc,CAAC,MAAM,CAAC,IAAI,GAAG,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC/D,cAAc,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,EAAE,CAAC;QACzC,cAAc,CAAC,MAAM,CAAC,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;KAC3C;IACD,mFAAmF;IACnF,0CAA0C;IAC1C,SAAS;IACT,kCAAkC;IAClC,oGAAoG;IACpG,2CAA2C;IAC3C,4CAA4C;IAC5C,IAAI;IAEJ,yEAAyE;IACzE,yCAAyC;IACzC,uEAAuE;IACvE,IAAI;IAEJ,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,6BAAO,CAAC,GAAG,MAAM,CAAC,GAAG,cAAc,EAAE,cAAc,CAAC,CAAC;IAC5E,gBAAgB,IAAI,gBAAgB,CAAC,+BAAuB,CAAC,SAAS,CAAC,CAAC;IACxE,OAAO,IAAI,CAAC;AACd,CAAC;AAxCD,0EAwCC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchExportItemDownloadFileUrl.js","sourceRoot":"","sources":["../../../../../src/downloads/_internal/file-url-fetchers/fetchExportItemDownloadFileUrl.ts"],"names":[],"mappings":";;;AAAA,iEAKkC;AAClC,uCAOqB;AACrB,kEAA+D;AAC/D,gDAAyC;AAGzC,wDAAoD;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AACI,KAAK,UAAU,8BAA8B,CAClD,OAAqC;IAErC,eAAe,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,EAAE,MA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,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC;AAChF,CAAC;AAED,SAAS,mBAAmB,CAC1B,OAAqC;IAErC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,MAAM,GAAsB;QAChC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;KACrC,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,KAAK,UAAU,oBAAoB,CACjC,cAAsB,EACtB,KAAa,EACb,OAAuB,EACvB,YAAoB,EACpB,gBAA2C;IAE3C,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,kCAAa,CAAC;QACrC,EAAE,EAAE,cAAc;QAClB,KAAK;QACL,OAAO,EAAE,QAAQ;QACjB,cAAc,EAAE,OAAO,CAAC,iBAAiB,CAAC,cAAc;KACzD,CAAC,CAAC;IAEH,IAAI,MAAM,KAAK,QAAQ,EAAE;QACvB,MAAM,IAAI,kBAAQ,CAAC,gCAAgC,EAAE,mBAAmB,CAAC,CAAC;KAC3E;IAED,IAAI,MAAM,KAAK,WAAW,EAAE;QAC1B,gBAAgB,IAAI,gBAAgB,CAAC,+BAAuB,CAAC,UAAU,CAAC,CAAC;QACzE,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC;QAClE,OAAO,oBAAoB,CACzB,cAAc,EACd,KAAK,EACL,OAAO,EACP,YAAY,EACZ,gBAAgB,CACjB,CAAC;KACH;AACH,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchHubApiDownloadFileUrl.js","sourceRoot":"","sources":["../../../../../src/downloads/_internal/file-url-fetchers/fetchHubApiDownloadFileUrl.ts"],"names":[],"mappings":";;;AAAA,gDAAyC;AACzC,wDAAoD;AACpD,uCAMqB;AAErB;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uB,CAAC,SAAS;KAC7C,CAAC;IAEF,OAAO,CACL,sBAAsB,CAAC,MAA6B,CAAC;QACrD,kBAAkB,CAAC,MAAyB,CAAC,CAC9C,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchDownloadFileUrl.js","sourceRoot":"","sources":["../../../src/downloads/fetchDownloadFileUrl.ts"],"names":[],"mappings":";;;AAAA,0CAAmC;AAEnC,6EAA0E;AAC1E,2EAAwE;AACxE,iEAA8D;AAG9D;;;;;GAKG;AACI,KAAK,UAAU,oBAAoB,CACxC,OAAqC;IAErC,uDAAuD;IACvD,MAAM,gBAAgB,GACpB,OAAO,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC,iCAAM,OAAO,KAAE,YAAY,EAAE,IAAI,IAAG,CAAC,CAAC,OAAO,CAAC;IAE9E,IAAI,UAAU,CAAC;IACf,IAAI,2CAAoB,CAAC,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE;QAC3E,UAAU,GAAG,CACX,2CAAa,0DAA0D,EAAC,CACzE,CAAC,0BAA0B,CAAC;KAC9B;SAAM,IAAI,2CAAoB,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;QACxD,UAAU,GAAG,CACX,2CACE,8DAA8D,EAC/D,CACF,CAAC,8BAA8B,CAAC;KAClC;SAAM,IAAI,6CAAqB,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE;QACzD,UAAU,GAAG,CACX,2CACE,+DAA+D,EAChE,CACF,CAAC,+BAA+B,CAAC;KACnC;SAAM;QACL,MAAM,IAAI,kBAAQ,CAChB,sBAAsB,EACtB,+DAA+D,CAChE,CAAC;KACH;IACD,OAAO,UAAU,CAAC,gBAAgB,CAAC,CAAC;AACtC,CAAC;AA/BD,oDA+BC"}
@@ -1,33 +0,0 @@
1
- import { IHubContent, IHubEditableContent } from "../core";
2
- import { ItemOrServerEnrichment, IItemAndIServerEnrichments } from "../items/_enrichments";
3
- import { IHubRequestOptions, IModel } from "../types";
4
- import { IRequestOptions } from "@esri/arcgis-rest-request";
5
- interface IFetchItemAndEnrichmentsOptions extends IHubRequestOptions {
6
- enrichments?: ItemOrServerEnrichment[];
7
- }
8
- export interface IFetchContentOptions extends IFetchItemAndEnrichmentsOptions {
9
- layerId?: number;
10
- siteOrgKey?: string;
11
- }
12
- /**
13
- * Fetch enriched content from the Portal and Hub APIs.
14
- * @param identifier content slug or id
15
- * @param options Request options with additional options to control how the content or enrichments are fetched
16
- * @returns A content object composed of the backing item and enrichments
17
- *
18
- * ```js
19
- * import { fetchContent } from '@esri/hub-common'
20
- * // fetch content by slug
21
- * const content = await fetchContent('my-org::item-name')
22
- * ```
23
- */
24
- export declare const fetchContent: (identifier: string, options?: IFetchContentOptions) => Promise<IHubContent>;
25
- /**
26
- * fetch a content entity by identifier
27
- * @param identifier
28
- * @param requestOptions
29
- * @returns content entity
30
- */
31
- export declare const fetchHubContent: (identifier: string, requestOptions: IRequestOptions) => Promise<IHubEditableContent>;
32
- export declare function modelToHubEditableContent(model: IModel, requestOptions: IRequestOptions, enrichments: IItemAndIServerEnrichments): IHubEditableContent;
33
- export {};
@@ -1,12 +0,0 @@
1
- import { IFetchDownloadFileUrlOptions } from "../../types";
2
- /**
3
- * @private
4
- * Fetches a download file url from an Image Service via the exportImage endpoint
5
- *
6
- * NOTE: This function is incomplete and needs various parameters to be validated
7
- * and implemented. It is a work in progress.
8
- *
9
- * @param options options for refining / filtering the resulting download file
10
- * @returns a url to download the file
11
- */
12
- export declare function fetchExportImageDownloadFileUrl(options: IFetchDownloadFileUrlOptions): Promise<string>;
@@ -1,8 +0,0 @@
1
- import { IFetchDownloadFileUrlOptions } from "./types";
2
- /**
3
- * Fetches a download file URL for the given entity and format.
4
- * @param options options to refine / filter the results of the fetchDownloadFileUrl operation
5
- * @returns a promise that resolves with the download file URL
6
- * @throws {ArcgisHubDownloadError} if the download file URL cannot be fetched for a well-known reason
7
- */
8
- export declare function fetchDownloadFileUrl(options: IFetchDownloadFileUrlOptions): Promise<string>;