@esri/hub-common 14.104.0 → 14.106.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 (72) hide show
  1. package/dist/esm/events/api/events.js +1 -1
  2. package/dist/esm/events/api/utils/authenticate-request.js +1 -1
  3. package/dist/esm/items/follow.js +102 -0
  4. package/dist/esm/items/follow.js.map +1 -0
  5. package/dist/esm/items/index.js +2 -0
  6. package/dist/esm/items/index.js.map +1 -1
  7. package/dist/esm/newsletters/api/index.js +4 -0
  8. package/dist/esm/newsletters/api/index.js.map +1 -0
  9. package/dist/esm/newsletters/api/orval/api/orval-newsletters.js +107 -0
  10. package/dist/esm/newsletters/api/orval/api/orval-newsletters.js.map +1 -0
  11. package/dist/esm/newsletters/api/orval/awaited-type.js +1 -0
  12. package/dist/esm/newsletters/api/orval/awaited-type.js.map +1 -0
  13. package/dist/esm/newsletters/api/orval/custom-client.js +44 -0
  14. package/dist/esm/newsletters/api/orval/custom-client.js.map +1 -0
  15. package/dist/esm/newsletters/api/subscriptions.js +53 -0
  16. package/dist/esm/newsletters/api/subscriptions.js.map +1 -0
  17. package/dist/esm/newsletters/api/types.js +2 -0
  18. package/dist/esm/newsletters/api/types.js.map +1 -0
  19. package/dist/esm/newsletters/api/users.js +43 -0
  20. package/dist/esm/newsletters/api/users.js.map +1 -0
  21. package/dist/esm/newsletters/api/utils/authenticate-request.js +15 -0
  22. package/dist/esm/newsletters/api/utils/authenticate-request.js.map +1 -0
  23. package/dist/esm/newsletters/index.js +2 -0
  24. package/dist/esm/newsletters/index.js.map +1 -0
  25. package/dist/esm/surveys/utils/get-s123-edit-url.js +4 -0
  26. package/dist/esm/surveys/utils/get-s123-edit-url.js.map +1 -0
  27. package/dist/esm/surveys/utils/index.js +1 -0
  28. package/dist/esm/surveys/utils/index.js.map +1 -1
  29. package/dist/node/events/api/events.js +1 -1
  30. package/dist/node/events/api/utils/authenticate-request.js +1 -1
  31. package/dist/node/items/follow.js +109 -0
  32. package/dist/node/items/follow.js.map +1 -0
  33. package/dist/node/items/index.js +2 -0
  34. package/dist/node/items/index.js.map +1 -1
  35. package/dist/node/newsletters/api/index.js +7 -0
  36. package/dist/node/newsletters/api/index.js.map +1 -0
  37. package/dist/node/newsletters/api/orval/api/orval-newsletters.js +110 -0
  38. package/dist/node/newsletters/api/orval/api/orval-newsletters.js.map +1 -0
  39. package/dist/node/newsletters/api/orval/awaited-type.js +3 -0
  40. package/dist/node/newsletters/api/orval/awaited-type.js.map +1 -0
  41. package/dist/node/newsletters/api/orval/custom-client.js +48 -0
  42. package/dist/node/newsletters/api/orval/custom-client.js.map +1 -0
  43. package/dist/node/newsletters/api/subscriptions.js +61 -0
  44. package/dist/node/newsletters/api/subscriptions.js.map +1 -0
  45. package/dist/node/newsletters/api/types.js +7 -0
  46. package/dist/node/newsletters/api/types.js.map +1 -0
  47. package/dist/node/newsletters/api/users.js +50 -0
  48. package/dist/node/newsletters/api/users.js.map +1 -0
  49. package/dist/node/newsletters/api/utils/authenticate-request.js +19 -0
  50. package/dist/node/newsletters/api/utils/authenticate-request.js.map +1 -0
  51. package/dist/node/newsletters/index.js +5 -0
  52. package/dist/node/newsletters/index.js.map +1 -0
  53. package/dist/node/surveys/utils/get-s123-edit-url.js +8 -0
  54. package/dist/node/surveys/utils/get-s123-edit-url.js.map +1 -0
  55. package/dist/node/surveys/utils/index.js +1 -0
  56. package/dist/node/surveys/utils/index.js.map +1 -1
  57. package/dist/types/events/api/events.d.ts +1 -1
  58. package/dist/types/events/api/utils/authenticate-request.d.ts +1 -1
  59. package/dist/types/items/follow.d.ts +50 -0
  60. package/dist/types/items/index.d.ts +2 -0
  61. package/dist/types/newsletters/api/index.d.ts +3 -0
  62. package/dist/types/newsletters/api/orval/api/orval-newsletters.d.ts +215 -0
  63. package/dist/types/newsletters/api/orval/awaited-type.d.ts +5 -0
  64. package/dist/types/newsletters/api/orval/custom-client.d.ts +22 -0
  65. package/dist/types/newsletters/api/subscriptions.d.ts +36 -0
  66. package/dist/types/newsletters/api/types.d.ts +47 -0
  67. package/dist/types/newsletters/api/users.d.ts +29 -0
  68. package/dist/types/newsletters/api/utils/authenticate-request.d.ts +9 -0
  69. package/dist/types/newsletters/index.d.ts +1 -0
  70. package/dist/types/surveys/utils/get-s123-edit-url.d.ts +2 -0
  71. package/dist/types/surveys/utils/index.d.ts +1 -0
  72. package/package.json +1 -1
@@ -0,0 +1,215 @@
1
+ import { Awaited } from "../awaited-type";
2
+ /**
3
+ * Generated by orval v6.24.0 🍺
4
+ * Do not edit manually.
5
+ * Hub Newsletters Service
6
+ * OpenAPI spec version: 0.0.1
7
+ */
8
+ import { customClient } from "../custom-client";
9
+ export declare type GetSubscriptionsParams = {
10
+ /**
11
+ * Optional array of matching notification spec names to filter by
12
+ */
13
+ names?: string[];
14
+ /**
15
+ * Optional cadence to filter by
16
+ */
17
+ cadence?: Cadence;
18
+ /**
19
+ * Optional user id to filter by. Note this gets extracted/overridden from AGO token if provided
20
+ */
21
+ userId?: string;
22
+ /**
23
+ * Optional flag for filtering active subscriptions
24
+ */
25
+ active?: boolean;
26
+ };
27
+ export interface IUpdateNotificationSpec {
28
+ /** Description of the notification spec */
29
+ description?: string;
30
+ /** Name identifier for the notification spec */
31
+ name?: string;
32
+ }
33
+ export interface ICreateNotificationSpec {
34
+ /** Description of the notification spec */
35
+ description?: string;
36
+ /** Name identifier for the notification spec */
37
+ name: string;
38
+ }
39
+ export interface IUpdateUser {
40
+ /** Flag for deleted user */
41
+ deleted?: boolean;
42
+ /** Email for the subscriber. Will always be extracted from the token unless service token is used. */
43
+ email?: string;
44
+ /** First name for the subscriber. Will always be extracted from the token unless service token is used. */
45
+ firstName?: string;
46
+ /** Last name for the subscriber. Will always be extracted from the token unless service token is used. */
47
+ lastName?: string;
48
+ /** Flag for unsubscribed user */
49
+ optedOut?: boolean;
50
+ /** Username for the subscriber. Will always be extracted from the token unless service token is used. */
51
+ username?: string;
52
+ }
53
+ export interface ICreateUser {
54
+ /** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
55
+ agoId?: string;
56
+ /** Flag for deleted user */
57
+ deleted?: boolean;
58
+ /** Email for the subscriber. Will always be extracted from the token unless service token is used. */
59
+ email?: string;
60
+ /** First name for the subscriber. Will always be extracted from the token unless service token is used. */
61
+ firstName?: string;
62
+ /** Last name for the subscriber. Will always be extracted from the token unless service token is used. */
63
+ lastName?: string;
64
+ /** Flag for unsubscribed user */
65
+ optedOut?: boolean;
66
+ /** Username for the subscriber. Will always be extracted from the token unless service token is used. */
67
+ username?: string;
68
+ }
69
+ /**
70
+ * Metadata for the subscription
71
+ */
72
+ export declare type ISubscribeMetadata = ICreateEventMetadata | ICreateTelemetryReportMetadata;
73
+ export declare type ISubscriptionMetadata = {
74
+ [key: string]: any;
75
+ };
76
+ export interface IUser {
77
+ agoId: string;
78
+ createdAt: string;
79
+ deleted: boolean;
80
+ email: string;
81
+ firstName: string;
82
+ lastName: string;
83
+ optedOut: boolean;
84
+ updatedAt: string;
85
+ username: string;
86
+ }
87
+ export interface INotificationSpec {
88
+ createdAt: string;
89
+ createdById: string;
90
+ description: string;
91
+ id: number;
92
+ name: string;
93
+ updatedAt: string;
94
+ }
95
+ /**
96
+ * Metadata for the subscription
97
+ */
98
+ export declare type ICreateSubscriptionMetadata = ICreateEventMetadata | ICreateTelemetryReportMetadata;
99
+ export declare enum DeliveryMethod {
100
+ EMAIL = "EMAIL"
101
+ }
102
+ export declare enum Cadence {
103
+ ON_EVENT = "ON_EVENT",
104
+ DAILY = "DAILY",
105
+ WEEKLY = "WEEKLY",
106
+ MONTHLY = "MONTHLY"
107
+ }
108
+ export interface IUpdateSubscription {
109
+ /** Flag to opt user in or out of subscription */
110
+ active?: boolean;
111
+ /** Frequency of the subscription */
112
+ cadence?: Cadence;
113
+ /** Delivery method for subscription, ie email or text */
114
+ deliveryMethod?: DeliveryMethod;
115
+ /** Last delivered datetime string of the subscription in ISO 8601 format */
116
+ lastDelivery?: string;
117
+ /** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
118
+ userId?: string;
119
+ }
120
+ export interface ISubscription {
121
+ active: boolean;
122
+ cadence: Cadence;
123
+ createdAt: string;
124
+ deliveryMethod: DeliveryMethod;
125
+ id: number;
126
+ lastDelivery: string;
127
+ metadata: ISubscriptionMetadata;
128
+ notificationSpec?: INotificationSpec;
129
+ notificationSpecId: number;
130
+ updatedAt: string;
131
+ user?: IUser;
132
+ userId: string;
133
+ }
134
+ export declare enum SystemNotificationSpecNames {
135
+ TELEMETRY_REPORT = "TELEMETRY_REPORT",
136
+ EVENT = "EVENT"
137
+ }
138
+ export interface ISubscribe {
139
+ /** ArcGIS Online id for a user. Will always be extracted from the token unless service token is used. */
140
+ agoId?: string;
141
+ /** Frequency of the subscription */
142
+ cadence: Cadence;
143
+ /** Flag for deleted user */
144
+ deleted?: boolean;
145
+ /** Delivery method for subscription, ie email or text */
146
+ deliveryMethod: DeliveryMethod;
147
+ /** Email for the subscriber. Will always be extracted from the token unless service token is used. */
148
+ email?: string;
149
+ /** First name for the subscriber. Will always be extracted from the token unless service token is used. */
150
+ firstName?: string;
151
+ /** Last name for the subscriber. Will always be extracted from the token unless service token is used. */
152
+ lastName?: string;
153
+ /** Metadata for the subscription */
154
+ metadata: ISubscribeMetadata;
155
+ /** Notification spec name for the subscription */
156
+ notificationSpecName: SystemNotificationSpecNames;
157
+ /** Flag for unsubscribed user */
158
+ optedOut?: boolean;
159
+ /** Username for the subscriber. Will always be extracted from the token unless service token is used. */
160
+ username?: string;
161
+ }
162
+ export interface ICreateSubscription {
163
+ /** Frequency of the subscription */
164
+ cadence: Cadence;
165
+ /** Delivery method for subscription, ie email or text */
166
+ deliveryMethod: DeliveryMethod;
167
+ /** Metadata for the subscription */
168
+ metadata: ICreateSubscriptionMetadata;
169
+ /** Notification spec name for the subscription */
170
+ notificationSpecName: SystemNotificationSpecNames;
171
+ /** AGO id for user which subscription belongs to */
172
+ userId: string;
173
+ }
174
+ export interface ICreateEventMetadata {
175
+ /** Event id for the subscription */
176
+ eventId: string;
177
+ }
178
+ export interface ICreateTelemetryReportMetadata {
179
+ /** Hostname for telemetry report. */
180
+ hostname: string;
181
+ }
182
+ declare type SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];
183
+ export declare const createSubscription: (iCreateSubscription: ICreateSubscription, options?: SecondParameter<typeof customClient>) => Promise<ISubscription>;
184
+ export declare const getSubscriptions: (params?: GetSubscriptionsParams, options?: SecondParameter<typeof customClient>) => Promise<ISubscription[]>;
185
+ export declare const subscribe: (iSubscribe: ISubscribe, options?: SecondParameter<typeof customClient>) => Promise<ISubscription>;
186
+ export declare const getSubscription: (id: number, options?: SecondParameter<typeof customClient>) => Promise<ISubscription>;
187
+ export declare const updateSubscription: (id: number, iUpdateSubscription: IUpdateSubscription, options?: SecondParameter<typeof customClient>) => Promise<ISubscription>;
188
+ export declare const deleteSubscription: (id: number, options?: SecondParameter<typeof customClient>) => Promise<ISubscription>;
189
+ export declare const createUser: (iCreateUser: ICreateUser, options?: SecondParameter<typeof customClient>) => Promise<IUser>;
190
+ export declare const getUsers: (options?: SecondParameter<typeof customClient>) => Promise<IUser[]>;
191
+ export declare const getUser: (userId: string, options?: SecondParameter<typeof customClient>) => Promise<IUser>;
192
+ export declare const updateUser: (userId: string, iUpdateUser: IUpdateUser, options?: SecondParameter<typeof customClient>) => Promise<IUser>;
193
+ export declare const deleteUser: (userId: string, options?: SecondParameter<typeof customClient>) => Promise<IUser>;
194
+ export declare const createNotificationSpec: (iCreateNotificationSpec: ICreateNotificationSpec, options?: SecondParameter<typeof customClient>) => Promise<INotificationSpec>;
195
+ export declare const getNotificationSpecs: (options?: SecondParameter<typeof customClient>) => Promise<INotificationSpec[]>;
196
+ export declare const getNotificationSpec: (id: number, options?: SecondParameter<typeof customClient>) => Promise<INotificationSpec>;
197
+ export declare const updateNotificationSpec: (id: number, iUpdateNotificationSpec: IUpdateNotificationSpec, options?: SecondParameter<typeof customClient>) => Promise<INotificationSpec>;
198
+ export declare const deleteNotificationSpec: (id: number, options?: SecondParameter<typeof customClient>) => Promise<INotificationSpec>;
199
+ export declare type CreateSubscriptionResult = NonNullable<Awaited<ReturnType<typeof createSubscription>>>;
200
+ export declare type GetSubscriptionsResult = NonNullable<Awaited<ReturnType<typeof getSubscriptions>>>;
201
+ export declare type SubscribeResult = NonNullable<Awaited<ReturnType<typeof subscribe>>>;
202
+ export declare type GetSubscriptionResult = NonNullable<Awaited<ReturnType<typeof getSubscription>>>;
203
+ export declare type UpdateSubscriptionResult = NonNullable<Awaited<ReturnType<typeof updateSubscription>>>;
204
+ export declare type DeleteSubscriptionResult = NonNullable<Awaited<ReturnType<typeof deleteSubscription>>>;
205
+ export declare type CreateUserResult = NonNullable<Awaited<ReturnType<typeof createUser>>>;
206
+ export declare type GetUsersResult = NonNullable<Awaited<ReturnType<typeof getUsers>>>;
207
+ export declare type GetUserResult = NonNullable<Awaited<ReturnType<typeof getUser>>>;
208
+ export declare type UpdateUserResult = NonNullable<Awaited<ReturnType<typeof updateUser>>>;
209
+ export declare type DeleteUserResult = NonNullable<Awaited<ReturnType<typeof deleteUser>>>;
210
+ export declare type CreateNotificationSpecResult = NonNullable<Awaited<ReturnType<typeof createNotificationSpec>>>;
211
+ export declare type GetNotificationSpecsResult = NonNullable<Awaited<ReturnType<typeof getNotificationSpecs>>>;
212
+ export declare type GetNotificationSpecResult = NonNullable<Awaited<ReturnType<typeof getNotificationSpec>>>;
213
+ export declare type UpdateNotificationSpecResult = NonNullable<Awaited<ReturnType<typeof updateNotificationSpec>>>;
214
+ export declare type DeleteNotificationSpecResult = NonNullable<Awaited<ReturnType<typeof deleteNotificationSpec>>>;
215
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Orval generates return types for functions using utility type Awaited
3
+ * This was introduced in Typescript 4.5, but hub.js is using Typescript 3
4
+ */
5
+ export declare type Awaited<T> = T extends PromiseLike<infer U> ? U : T;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated and copied from the [hub engagement repo](https://github.com/ArcGIS/hub-newsletters/blob/master/orval/custom-client.ts)
3
+ * Do not edit manually
4
+ */
5
+ export interface IOrvalParams {
6
+ url: string;
7
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
8
+ headers?: HeadersInit;
9
+ params?: Record<string, any>;
10
+ data?: Record<string, any>;
11
+ }
12
+ export interface ICustomParams {
13
+ hubApiUrl?: string;
14
+ token?: string;
15
+ headers?: HeadersInit;
16
+ params?: Record<string, any>;
17
+ data?: Record<string, any>;
18
+ mode?: RequestMode;
19
+ cache?: RequestCache;
20
+ credentials?: RequestCredentials;
21
+ }
22
+ export declare function customClient<T>(orvalParams: IOrvalParams, customParams: ICustomParams): Promise<T>;
@@ -0,0 +1,36 @@
1
+ import { ISubscribeParams, ISubscription, ICreateSubscriptionParams, IGetSubscriptionsParams, IGetSubscriptionParams, IUpdateSubscriptionParams } from "./types";
2
+ /**
3
+ * create a subscription for user (existing or not) to a newsletter
4
+ *
5
+ * @param {ISubscribeParams} options
6
+ * @return {Promise<ISubscription>}
7
+ */
8
+ export declare function subscribe(options: ISubscribeParams): Promise<ISubscription>;
9
+ /**
10
+ * create a subscription for user (existing) to a newsletter
11
+ *
12
+ * @param {ICreateSubscriptionParams} options
13
+ * @return {Promise<ISubscription>}
14
+ */
15
+ export declare function createSubscription(options: ICreateSubscriptionParams): Promise<ISubscription>;
16
+ /**
17
+ * get subscriptions
18
+ *
19
+ * @param {IGetSubscriptionsParams} options
20
+ * @return {Promise<ISubscription[]>}
21
+ */
22
+ export declare function getSubscriptions(options: IGetSubscriptionsParams): Promise<ISubscription[]>;
23
+ /**
24
+ * get a subscription
25
+ *
26
+ * @param {IGetSubscriptionParams} options
27
+ * @return {Promise<ISubscription>}
28
+ */
29
+ export declare function getSubscription(options: IGetSubscriptionParams): Promise<ISubscription>;
30
+ /**
31
+ * update a subscription
32
+ *
33
+ * @param {IUpdateSubscriptionParams} options
34
+ * @return {Promise<ISubscription>}
35
+ */
36
+ export declare function updateSubscription(options: IUpdateSubscriptionParams): Promise<ISubscription>;
@@ -0,0 +1,47 @@
1
+ export { Cadence, DeliveryMethod, ICreateEventMetadata, ICreateTelemetryReportMetadata, INotificationSpec, ISubscribeMetadata, ISubscription, ISubscriptionMetadata, IUser, SystemNotificationSpecNames, } from "./orval/api/orval-newsletters";
2
+ import { IHubRequestOptions } from "../../types";
3
+ import { GetSubscriptionsParams, ICreateSubscription, ICreateUser, ISubscribe, IUpdateSubscription, IUpdateUser } from "./orval/api/orval-newsletters";
4
+ /**
5
+ * options for making requests against the Newsletters API
6
+ *
7
+ * @export
8
+ * @interface INewslettersRequestOptions
9
+ * @extends IHubRequestOptions
10
+ */
11
+ export interface INewslettersRequestOptions extends Omit<IHubRequestOptions, "httpMethod" | "isPortal">, Pick<RequestInit, "mode" | "cache" | "credentials"> {
12
+ httpMethod?: "GET" | "POST" | "PATCH" | "DELETE";
13
+ isPortal?: boolean;
14
+ token?: string;
15
+ data?: {
16
+ [key: string]: any;
17
+ };
18
+ }
19
+ export interface ICreateUserParams extends INewslettersRequestOptions {
20
+ data: ICreateUser;
21
+ }
22
+ export interface IGetUserParams extends INewslettersRequestOptions {
23
+ userId: string;
24
+ }
25
+ export interface IUpdateUserParams extends INewslettersRequestOptions {
26
+ userId: string;
27
+ data: IUpdateUser;
28
+ }
29
+ export interface IDeleteUserParams extends INewslettersRequestOptions {
30
+ userId: string;
31
+ }
32
+ export interface ISubscribeParams extends INewslettersRequestOptions {
33
+ data: ISubscribe;
34
+ }
35
+ export interface ICreateSubscriptionParams extends INewslettersRequestOptions {
36
+ data: ICreateSubscription;
37
+ }
38
+ export interface IGetSubscriptionsParams extends INewslettersRequestOptions {
39
+ data: GetSubscriptionsParams;
40
+ }
41
+ export interface IGetSubscriptionParams extends INewslettersRequestOptions {
42
+ subscriptionId: number;
43
+ }
44
+ export interface IUpdateSubscriptionParams extends INewslettersRequestOptions {
45
+ subscriptionId: number;
46
+ data: IUpdateSubscription;
47
+ }
@@ -0,0 +1,29 @@
1
+ import { ICreateUserParams, IDeleteUserParams, IGetUserParams, IUpdateUserParams, IUser } from "./types";
2
+ /**
3
+ * create a user
4
+ *
5
+ * @param {ICreateUserParams} options
6
+ * @return {Promise<IUser>}
7
+ */
8
+ export declare function createUser(options: ICreateUserParams): Promise<IUser>;
9
+ /**
10
+ * get a user
11
+ *
12
+ * @param {IGetUserParams} options
13
+ * @return {Promise<IUser>}
14
+ */
15
+ export declare function getUser(options: IGetUserParams): Promise<IUser>;
16
+ /**
17
+ * update a user
18
+ *
19
+ * @param {IUpdateUserParams} options
20
+ * @return {Promise<IUser>}
21
+ */
22
+ export declare function updateUser(options: IUpdateUserParams): Promise<IUser>;
23
+ /**
24
+ * delete a user
25
+ *
26
+ * @param {IDeleteUserParams} options
27
+ * @return {Promise<IUser>}
28
+ */
29
+ export declare function deleteUser(options: IDeleteUserParams): Promise<IUser>;
@@ -0,0 +1,9 @@
1
+ import { INewslettersRequestOptions } from "../types";
2
+ /**
3
+ * return a token created using options.authentication or set on options.token
4
+ *
5
+ * @export
6
+ * @param {INewslettersRequestOptions} options
7
+ * @return {*} {Promise<string>}
8
+ */
9
+ export declare function authenticateRequest(options: INewslettersRequestOptions): Promise<string>;
@@ -0,0 +1 @@
1
+ export * from "./api";
@@ -0,0 +1,2 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ export declare function getS123EditUrl(id: string, context: IArcGISContext): string;
@@ -3,6 +3,7 @@ export * from "./get-form-info-json";
3
3
  export * from "./get-form-json";
4
4
  export * from "./get-input-feature-service-model";
5
5
  export * from "./get-map-question";
6
+ export * from "./get-s123-edit-url";
6
7
  export * from "./get-s123-share-url";
7
8
  export * from "./get-source-feature-service-model-from-fieldworker";
8
9
  export * from "./get-stakeholder-model";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.104.0",
3
+ "version": "14.106.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",