@selfcommunity/api-services 0.1.6-alpha.2 → 0.1.6-alpha.3

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 (162) hide show
  1. package/lib/cjs/utils/apiRequest.js +1 -1
  2. package/lib/esm/utils/apiRequest.js +1 -1
  3. package/lib/{esm/api-services/src → types}/client/index.d.ts +0 -0
  4. package/lib/types/client/index.d.ts.map +1 -0
  5. package/lib/{esm/api-services/src → types}/constants/Endpoints.d.ts +0 -0
  6. package/lib/types/constants/Endpoints.d.ts.map +1 -0
  7. package/lib/{esm/api-services/src → types}/index.d.ts +0 -0
  8. package/lib/types/index.d.ts.map +1 -0
  9. package/lib/{esm/api-services/src → types}/services/category/index.d.ts +0 -0
  10. package/lib/types/services/category/index.d.ts.map +1 -0
  11. package/lib/{esm/api-services/src → types}/services/comment/index.d.ts +0 -0
  12. package/lib/types/services/comment/index.d.ts.map +1 -0
  13. package/lib/{esm/api-services/src → types}/services/custom_adv/index.d.ts +0 -0
  14. package/lib/types/services/custom_adv/index.d.ts.map +1 -0
  15. package/lib/{esm/api-services/src → types}/services/custom_page/index.d.ts +0 -0
  16. package/lib/types/services/custom_page/index.d.ts.map +1 -0
  17. package/lib/{esm/api-services/src → types}/services/data_portability/index.d.ts +0 -0
  18. package/lib/types/services/data_portability/index.d.ts.map +1 -0
  19. package/lib/{esm/api-services/src → types}/services/embed/index.d.ts +0 -0
  20. package/lib/types/services/embed/index.d.ts.map +1 -0
  21. package/lib/{esm/api-services/src → types}/services/feature/index.d.ts +0 -0
  22. package/lib/types/services/feature/index.d.ts.map +1 -0
  23. package/lib/{esm/api-services/src → types}/services/feed/index.d.ts +0 -0
  24. package/lib/types/services/feed/index.d.ts.map +1 -0
  25. package/lib/{esm/api-services/src → types}/services/feed_object/index.d.ts +0 -0
  26. package/lib/types/services/feed_object/index.d.ts.map +1 -0
  27. package/lib/{esm/api-services/src → types}/services/incubator/index.d.ts +0 -0
  28. package/lib/types/services/incubator/index.d.ts.map +1 -0
  29. package/lib/{esm/api-services/src → types}/services/insight/index.d.ts +0 -0
  30. package/lib/types/services/insight/index.d.ts.map +1 -0
  31. package/lib/{esm/api-services/src → types}/services/legal_page/index.d.ts +0 -0
  32. package/lib/types/services/legal_page/index.d.ts.map +1 -0
  33. package/lib/{esm/api-services/src → types}/services/locality/index.d.ts +0 -0
  34. package/lib/types/services/locality/index.d.ts.map +1 -0
  35. package/lib/{esm/api-services/src → types}/services/loyalty/index.d.ts +0 -0
  36. package/lib/types/services/loyalty/index.d.ts.map +1 -0
  37. package/lib/{esm/api-services/src → types}/services/media/index.d.ts +0 -0
  38. package/lib/types/services/media/index.d.ts.map +1 -0
  39. package/lib/{esm/api-services/src → types}/services/moderation/index.d.ts +0 -0
  40. package/lib/types/services/moderation/index.d.ts.map +1 -0
  41. package/lib/{esm/api-services/src → types}/services/notification/index.d.ts +0 -0
  42. package/lib/types/services/notification/index.d.ts.map +1 -0
  43. package/lib/{esm/api-services/src → types}/services/preference/index.d.ts +0 -0
  44. package/lib/types/services/preference/index.d.ts.map +1 -0
  45. package/lib/{esm/api-services/src → types}/services/private_message/index.d.ts +0 -0
  46. package/lib/types/services/private_message/index.d.ts.map +1 -0
  47. package/lib/{esm/api-services/src → types}/services/score/index.d.ts +0 -0
  48. package/lib/types/services/score/index.d.ts.map +1 -0
  49. package/lib/{esm/api-services/src → types}/services/sso/index.d.ts +0 -0
  50. package/lib/types/services/sso/index.d.ts.map +1 -0
  51. package/lib/{esm/api-services/src → types}/services/suggestion/index.d.ts +0 -0
  52. package/lib/types/services/suggestion/index.d.ts.map +1 -0
  53. package/lib/{esm/api-services/src → types}/services/tag/index.d.ts +0 -0
  54. package/lib/types/services/tag/index.d.ts.map +1 -0
  55. package/lib/{esm/api-services/src → types}/services/user/index.d.ts +0 -0
  56. package/lib/types/services/user/index.d.ts.map +1 -0
  57. package/lib/{esm/api-services/src → types}/services/webhook/index.d.ts +0 -0
  58. package/lib/types/services/webhook/index.d.ts.map +1 -0
  59. package/lib/types/tsconfig.build.tsbuildinfo +1 -0
  60. package/lib/{esm/api-services/src → types}/types/index.d.ts +0 -0
  61. package/lib/types/types/index.d.ts.map +1 -0
  62. package/lib/{esm/api-services/src → types}/types/paginatedResponse.d.ts +0 -0
  63. package/lib/types/types/paginatedResponse.d.ts.map +1 -0
  64. package/lib/{esm/api-services/src → types}/types/webhook.d.ts +0 -0
  65. package/lib/types/types/webhook.d.ts.map +1 -0
  66. package/lib/{esm/api-services/src → types}/utils/apiRequest.d.ts +0 -0
  67. package/lib/types/utils/apiRequest.d.ts.map +1 -0
  68. package/lib/{esm/api-services/src → types}/utils/http.d.ts +0 -0
  69. package/lib/types/utils/http.d.ts.map +1 -0
  70. package/lib/{esm/api-services/src → types}/utils/token.d.ts +0 -0
  71. package/lib/types/utils/token.d.ts.map +1 -0
  72. package/lib/umd/api-services.js +1 -1
  73. package/lib/umd/api-services.js.map +1 -1
  74. package/package.json +6 -5
  75. package/lib/esm/api-services/src/client/index.d.ts.map +0 -1
  76. package/lib/esm/api-services/src/constants/Endpoints.d.ts.map +0 -1
  77. package/lib/esm/api-services/src/index.d.ts.map +0 -1
  78. package/lib/esm/api-services/src/services/category/index.d.ts.map +0 -1
  79. package/lib/esm/api-services/src/services/comment/index.d.ts.map +0 -1
  80. package/lib/esm/api-services/src/services/custom_adv/index.d.ts.map +0 -1
  81. package/lib/esm/api-services/src/services/custom_page/index.d.ts.map +0 -1
  82. package/lib/esm/api-services/src/services/data_portability/index.d.ts.map +0 -1
  83. package/lib/esm/api-services/src/services/embed/index.d.ts.map +0 -1
  84. package/lib/esm/api-services/src/services/feature/index.d.ts.map +0 -1
  85. package/lib/esm/api-services/src/services/feed/index.d.ts.map +0 -1
  86. package/lib/esm/api-services/src/services/feed_object/index.d.ts.map +0 -1
  87. package/lib/esm/api-services/src/services/incubator/index.d.ts.map +0 -1
  88. package/lib/esm/api-services/src/services/insight/index.d.ts.map +0 -1
  89. package/lib/esm/api-services/src/services/legal_page/index.d.ts.map +0 -1
  90. package/lib/esm/api-services/src/services/locality/index.d.ts.map +0 -1
  91. package/lib/esm/api-services/src/services/loyalty/index.d.ts.map +0 -1
  92. package/lib/esm/api-services/src/services/media/index.d.ts.map +0 -1
  93. package/lib/esm/api-services/src/services/moderation/index.d.ts.map +0 -1
  94. package/lib/esm/api-services/src/services/notification/index.d.ts.map +0 -1
  95. package/lib/esm/api-services/src/services/preference/index.d.ts.map +0 -1
  96. package/lib/esm/api-services/src/services/private_message/index.d.ts.map +0 -1
  97. package/lib/esm/api-services/src/services/score/index.d.ts.map +0 -1
  98. package/lib/esm/api-services/src/services/sso/index.d.ts.map +0 -1
  99. package/lib/esm/api-services/src/services/suggestion/index.d.ts.map +0 -1
  100. package/lib/esm/api-services/src/services/tag/index.d.ts.map +0 -1
  101. package/lib/esm/api-services/src/services/user/index.d.ts.map +0 -1
  102. package/lib/esm/api-services/src/services/webhook/index.d.ts.map +0 -1
  103. package/lib/esm/api-services/src/types/index.d.ts.map +0 -1
  104. package/lib/esm/api-services/src/types/paginatedResponse.d.ts.map +0 -1
  105. package/lib/esm/api-services/src/types/webhook.d.ts.map +0 -1
  106. package/lib/esm/api-services/src/utils/apiRequest.d.ts.map +0 -1
  107. package/lib/esm/api-services/src/utils/http.d.ts.map +0 -1
  108. package/lib/esm/api-services/src/utils/token.d.ts.map +0 -1
  109. package/lib/esm/types/src/index.d.ts +0 -9
  110. package/lib/esm/types/src/index.d.ts.map +0 -1
  111. package/lib/esm/types/src/types/auth.d.ts +0 -26
  112. package/lib/esm/types/src/types/auth.d.ts.map +0 -1
  113. package/lib/esm/types/src/types/broadcastMessage.d.ts +0 -73
  114. package/lib/esm/types/src/types/broadcastMessage.d.ts.map +0 -1
  115. package/lib/esm/types/src/types/category.d.ts +0 -100
  116. package/lib/esm/types/src/types/category.d.ts.map +0 -1
  117. package/lib/esm/types/src/types/comment.d.ts +0 -97
  118. package/lib/esm/types/src/types/comment.d.ts.map +0 -1
  119. package/lib/esm/types/src/types/customAdv.d.ts +0 -53
  120. package/lib/esm/types/src/types/customAdv.d.ts.map +0 -1
  121. package/lib/esm/types/src/types/customNotification.d.ts +0 -28
  122. package/lib/esm/types/src/types/customNotification.d.ts.map +0 -1
  123. package/lib/esm/types/src/types/embed.d.ts +0 -33
  124. package/lib/esm/types/src/types/embed.d.ts.map +0 -1
  125. package/lib/esm/types/src/types/feed.d.ts +0 -208
  126. package/lib/esm/types/src/types/feed.d.ts.map +0 -1
  127. package/lib/esm/types/src/types/incubator.d.ts +0 -53
  128. package/lib/esm/types/src/types/incubator.d.ts.map +0 -1
  129. package/lib/esm/types/src/types/index.d.ts +0 -23
  130. package/lib/esm/types/src/types/index.d.ts.map +0 -1
  131. package/lib/esm/types/src/types/location.d.ts +0 -61
  132. package/lib/esm/types/src/types/location.d.ts.map +0 -1
  133. package/lib/esm/types/src/types/media.d.ts +0 -52
  134. package/lib/esm/types/src/types/media.d.ts.map +0 -1
  135. package/lib/esm/types/src/types/notification.d.ts +0 -416
  136. package/lib/esm/types/src/types/notification.d.ts.map +0 -1
  137. package/lib/esm/types/src/types/poll.d.ts +0 -77
  138. package/lib/esm/types/src/types/poll.d.ts.map +0 -1
  139. package/lib/esm/types/src/types/privateMessage.d.ts +0 -109
  140. package/lib/esm/types/src/types/privateMessage.d.ts.map +0 -1
  141. package/lib/esm/types/src/types/prize.d.ts +0 -48
  142. package/lib/esm/types/src/types/prize.d.ts.map +0 -1
  143. package/lib/esm/types/src/types/tag.d.ts +0 -47
  144. package/lib/esm/types/src/types/tag.d.ts.map +0 -1
  145. package/lib/esm/types/src/types/user.d.ts +0 -231
  146. package/lib/esm/types/src/types/user.d.ts.map +0 -1
  147. package/lib/esm/types/src/types/webhook.d.ts +0 -91
  148. package/lib/esm/types/src/types/webhook.d.ts.map +0 -1
  149. package/lib/esm/utils/src/index.d.ts +0 -12
  150. package/lib/esm/utils/src/index.d.ts.map +0 -1
  151. package/lib/esm/utils/src/utils/browser.d.ts +0 -9
  152. package/lib/esm/utils/src/utils/browser.d.ts.map +0 -1
  153. package/lib/esm/utils/src/utils/logger.d.ts +0 -11
  154. package/lib/esm/utils/src/utils/logger.d.ts.map +0 -1
  155. package/lib/esm/utils/src/utils/object.d.ts +0 -13
  156. package/lib/esm/utils/src/utils/object.d.ts.map +0 -1
  157. package/lib/esm/utils/src/utils/string.d.ts +0 -43
  158. package/lib/esm/utils/src/utils/string.d.ts.map +0 -1
  159. package/lib/esm/utils/src/utils/url.d.ts +0 -33
  160. package/lib/esm/utils/src/utils/url.d.ts.map +0 -1
  161. package/lib/esm/utils/src/utils/websocket.d.ts +0 -177
  162. package/lib/esm/utils/src/utils/websocket.d.ts.map +0 -1
@@ -1,47 +0,0 @@
1
- /**
2
- * Interface SCTagType.
3
- * Tag Schema.
4
- */
5
- export interface SCTagType {
6
- /**
7
- * Unique integer value identifying this tag.
8
- */
9
- id: number;
10
- /**
11
- * The type of the tag (unique together name).
12
- */
13
- type?: string;
14
- /**
15
- * The name of the tag (unique together type).
16
- */
17
- name: string;
18
- /**
19
- * Short description of the tag.
20
- */
21
- description: string;
22
- /**
23
- * Hexadecimal format color code with prefix '#'.
24
- */
25
- color: string;
26
- /**
27
- * Tag publicly visible.
28
- */
29
- visible?: boolean;
30
- /**
31
- * The tag has a visibility boost.
32
- */
33
- visibility_boost?: boolean;
34
- /**
35
- * Creation date time.
36
- */
37
- created_at?: string;
38
- /**
39
- * Tag active or not
40
- */
41
- active?: boolean;
42
- /**
43
- * Tag deleted or not
44
- */
45
- deleted: boolean;
46
- }
47
- //# sourceMappingURL=tag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/tag.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB"}
@@ -1,231 +0,0 @@
1
- /**
2
- * Interface SCUserType.
3
- * User Schema.
4
- */
5
- import { SCTagType } from './tag';
6
- /**
7
- * User Fields
8
- */
9
- export declare enum SCUserFields {
10
- USERNAME = "username",
11
- REAL_NAME = "real_name",
12
- DATE_JOINED = "date_joined",
13
- BIO = "bio",
14
- LOCATION = "location",
15
- DATE_OF_BIRTH = "date_of_birth",
16
- DESCRIPTION = "description",
17
- GENDER = "gender",
18
- WEBSITE = "website"
19
- }
20
- /**
21
- * User status
22
- */
23
- export declare enum SCUserStatus {
24
- APPROVED = "a",
25
- BLOCKED = "b",
26
- DELETED = "d",
27
- UNREGISTERED = "u"
28
- }
29
- export interface SCUserType {
30
- /**
31
- * The ID of the user.
32
- */
33
- id: number;
34
- /**
35
- * The username of the user.
36
- */
37
- username: string;
38
- /**
39
- * Real name of the user.
40
- */
41
- real_name: string;
42
- /**
43
- * Email of the user.
44
- */
45
- email?: string;
46
- /**
47
- * Email is valid. Default: False.
48
- */
49
- email_isvalid?: boolean;
50
- /**
51
- * Date joined to the community.
52
- */
53
- date_joined: Date;
54
- /**
55
- * User biography.
56
- */
57
- bio: string;
58
- /**
59
- * Location
60
- */
61
- location: string;
62
- /**
63
- * Location in coordinates. Format: lat,lng.
64
- */
65
- location_lat_lng?: string;
66
- /**
67
- * User current position. Format: lat,lng.
68
- */
69
- position_lat_lng?: string;
70
- /**
71
- * Date of birth. Format: YYYY-MM-DD (ISO 8601).
72
- */
73
- date_of_birth?: Date;
74
- /**
75
- * User description.
76
- */
77
- description: string;
78
- /**
79
- * Gender of the user. Values: Male, Female, Unspecified. Default: Unspecified.
80
- */
81
- gender: string;
82
- /**
83
- * User status. Values: a (approved), b (blocked), d (deleted; soft deleted), u (unregistered). Default: a.
84
- * A blocked user can't:
85
- * - create contribution (post/discussion/status)
86
- * - create comment
87
- * - vote/unvote contribution
88
- * - follow/connect user
89
- * - edit contribution
90
- * - suggest an incubator
91
- * - flag a contribution
92
- * - send a private message
93
- * - edit info profile
94
- * but he can't:
95
- * - follow/unfollow a post/discussion/status
96
- * - follow/unfollow a category
97
- * - unfollow user
98
- */
99
- status: string;
100
- /**
101
- * User website.
102
- */
103
- website: string;
104
- /**
105
- * Avatar of the user.
106
- */
107
- avatar: string;
108
- /**
109
- * Image Cover of the user.
110
- */
111
- cover?: string;
112
- /**
113
- * The external ID of the user. It is assigned only during signup if necessary.
114
- */
115
- ext_id?: number;
116
- /**
117
- * User's tag list. List of Tag.
118
- */
119
- tags: Array<SCTagType>;
120
- /**
121
- * User reputation.
122
- */
123
- reputation: number;
124
- /**
125
- * List of user permission. Only for the resource /user/me/.
126
- */
127
- permission?: Array<string>;
128
- /**
129
- * The connection status between the request user and this user.
130
- */
131
- connection_status?: string;
132
- /**
133
- * Number of connection requests sent by the user.
134
- */
135
- connection_requests_sent_counter?: number;
136
- /**
137
- * Number of connection requests received by the user.
138
- */
139
- connection_requests_received_counter?: number;
140
- /**
141
- * Number of connections of the user.
142
- */
143
- connections_counter?: number;
144
- /**
145
- * Number of followings of the user
146
- */
147
- followings_counter?: number;
148
- /**
149
- * Number of followers of the user
150
- */
151
- followers_counter?: number;
152
- /**
153
- * Number of posts created by the user.
154
- */
155
- posts_counter?: number;
156
- /**
157
- * Number of discussions created by the user.
158
- */
159
- discussions_counter?: number;
160
- /**
161
- * Number of statuses created by the user.
162
- */
163
- statuses_counter?: number;
164
- /**
165
- * Number of polls created by the user.
166
- */
167
- polls_counter?: number;
168
- /**
169
- * Number of categories followed by the user.
170
- */
171
- categories_counter?: number;
172
- /**
173
- * User role
174
- */
175
- role: string;
176
- /**
177
- * interactions counter
178
- */
179
- unseen_interactions_counter?: number;
180
- /**
181
- * notification banner counter
182
- */
183
- unseen_notification_banners_counter?: number;
184
- }
185
- /**
186
- * User Settings
187
- */
188
- export interface SCUserSettingsType {
189
- /**
190
- * Frequency of the email notifications for all interactions (except for private messages notifications)
191
- */
192
- qa_frequency: number;
193
- /**
194
- * Enable private messages notifications also via mail
195
- */
196
- email_notification_not_qa: number;
197
- /**
198
- * Enable mobile app/PWA notifications
199
- */
200
- mobile_notifications_scmty: number;
201
- /**
202
- * Shows a popup when the user receive a notification
203
- */
204
- show_toast_notifications: number;
205
- /**
206
- * Emit a sound when the notification popup is shown. See 'show_toast_notifications'
207
- */
208
- toast_notifications_emit_sound: number;
209
- }
210
- /**
211
- * User Blocked Settings
212
- */
213
- export interface SCUserBlockedSettingsType {
214
- /**
215
- * N° days of block
216
- */
217
- days_blocked: number;
218
- /**
219
- * Reputation stolen
220
- */
221
- reputation_delta: number;
222
- /**
223
- * Start User Block datetime
224
- */
225
- blocked_at?: Date;
226
- /**
227
- * End User Block datetime
228
- */
229
- expire_at?: Date;
230
- }
231
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/user.ts"],"names":[],"mappings":"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"}
@@ -1,91 +0,0 @@
1
- /**
2
- * Interface SCWebhookEndpointType
3
- * Webhook Schema
4
- */
5
- export interface SCWebhookEndpointType {
6
- /**
7
- * Webhook id
8
- */
9
- id: number;
10
- /**
11
- * Webhook creation date-time
12
- */
13
- created_at: Date | string;
14
- /**
15
- * Webhook update date-time
16
- */
17
- updated_at: Date | string;
18
- /**
19
- * Active status
20
- */
21
- is_active: boolean;
22
- /**
23
- * Webhook target
24
- */
25
- target: string;
26
- /**
27
- * Webhook description
28
- */
29
- description: string;
30
- /**
31
- * Webhook events
32
- */
33
- events: SCWebhookEventsType[];
34
- /**
35
- * Webhook SSL certificates for HTTPS requests.
36
- */
37
- ssl_cert_verification: boolean;
38
- }
39
- export interface SCWebhookEndpointAttemptType {
40
- /**
41
- * Webhook attempt id
42
- */
43
- id: number;
44
- /**
45
- * Webhook attempt creation date-time
46
- */
47
- created_at: Date | string;
48
- /**
49
- * Webhook attempt event
50
- */
51
- event: SCWebhookEventsType[];
52
- /**
53
- * Webhook attempt sent date-time
54
- */
55
- sent_at: Date | string;
56
- /**
57
- * Active status
58
- */
59
- http_request_body: string;
60
- /**
61
- * Http request signature header
62
- */
63
- http_request_signature_header: string;
64
- /**
65
- * Http response code
66
- */
67
- http_response_code: number;
68
- /**
69
- * Http response body
70
- */
71
- http_response_body: string;
72
- /**
73
- * Date time of next retry
74
- */
75
- next_retry: Date | string;
76
- }
77
- export interface SCWebhookEndpointSecretType {
78
- signing_secret: string;
79
- }
80
- export interface SCWebhookEventsType {
81
- /**
82
- * Webhook event type: contains the name of the event that triggered the webhook
83
- * example: "category.follow"
84
- */
85
- type: string;
86
- /**
87
- * Creation date time
88
- */
89
- added_at: Date | string;
90
- }
91
- //# sourceMappingURL=webhook.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../../../../types/src/types/webhook.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,MAAM,CAAC;CACzB"}
@@ -1,12 +0,0 @@
1
- import { capitalize, isString, stripHtml, camelCase, copyTextToClipboard, fallbackCopyTextToClipboard, random } from './utils/string';
2
- import { isValidUrl, isValidUrls, urlReplacer, getDomain, appendURLSearchParams, urlB64ToUint8Array } from './utils/url';
3
- import { getHighestSafeWindowContext, getWindowWidth, getWindowHeight } from './utils/window';
4
- import { mergeDeep, isObject } from './utils/object';
5
- import { loadVersionBrowser } from './utils/browser';
6
- import { Logger } from './utils/logger';
7
- import WSClient, { WSClientType, WSClientPropTypes } from './utils/websocket';
8
- /**
9
- * Export all utilities
10
- */
11
- export { capitalize, isString, stripHtml, camelCase, copyTextToClipboard, fallbackCopyTextToClipboard, random, isValidUrl, isValidUrls, urlReplacer, getDomain, appendURLSearchParams, urlB64ToUint8Array, getHighestSafeWindowContext, getWindowWidth, getWindowHeight, Logger, mergeDeep, isObject, WSClient, WSClientType, WSClientPropTypes, loadVersionBrowser };
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../utils/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACpI,OAAO,EAAC,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAC;AACvH,OAAO,EAAC,2BAA2B,EAAE,cAAc,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAC,kBAAkB,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,QAAQ,EAAE,EAAC,YAAY,EAAE,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAE5E;;GAEG;AACH,OAAO,EACL,UAAU,EACV,QAAQ,EACR,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,2BAA2B,EAC3B,MAAM,EACN,UAAU,EACV,WAAW,EACX,WAAW,EACX,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,cAAc,EACd,eAAe,EACf,MAAM,EACN,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EACnB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Get browser version to track on backend
3
- * @return {{name: string, version: null}|{name: string, version: string}|{name: *, version: *}|{name: string, version}}
4
- */
5
- export declare const loadVersionBrowser: () => {
6
- name: any;
7
- version: any;
8
- };
9
- //# sourceMappingURL=browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/utils/browser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;CAgE9B,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Emit styled message
3
- */
4
- export declare class Logger {
5
- static info(scope: any, message: any): void;
6
- static warn(scope: any, message: any): void;
7
- static error(scope: any, message: any): void;
8
- static log(scope: any, message: any): void;
9
- static debug(scope: any, message: any): void;
10
- }
11
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/utils/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,MAAM;IACjB,MAAM,CAAC,IAAI,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA;IAI1B,MAAM,CAAC,IAAI,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA;IAI1B,MAAM,CAAC,KAAK,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA;IAI3B,MAAM,CAAC,GAAG,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA;IAIzB,MAAM,CAAC,KAAK,CAAC,KAAK,KAAA,EAAE,OAAO,KAAA;CAG5B"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Check if v is an object
3
- * @param v
4
- */
5
- export declare function isObject(v: any): boolean;
6
- /**
7
- * Perfrom deep merge of two objects (not a shallow merge)
8
- * @param target
9
- * @param source
10
- * @return {*}
11
- */
12
- export declare function mergeDeep(target: object, source: object): object;
13
- //# sourceMappingURL=object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/utils/object.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,KAAA,WAEzB;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAgBhE"}
@@ -1,43 +0,0 @@
1
- /**
2
- * Check if v is a string
3
- * @param v
4
- */
5
- export declare function isString(v: any): boolean;
6
- /**
7
- * Capitalize a string
8
- * @param str
9
- */
10
- export declare function capitalize(str: string): string;
11
- /**
12
- * CamelCase a string
13
- * @param str
14
- */
15
- export declare function camelCase(str: string): string;
16
- /**
17
- * Stripe html tags from a string
18
- * @param str
19
- */
20
- export declare function stripHtml(str: string): string;
21
- export declare function random(): string;
22
- /**
23
- * Fallback if navigator.clipboard doensn't exist
24
- * @param text
25
- * @returns {Promise<void>}
26
- */
27
- export declare function fallbackCopyTextToClipboard(text: any): Promise<void>;
28
- /**
29
- * Copy text to clipboard
30
- * @param text
31
- * @returns {Promise<void>}
32
- *
33
- * Ex.
34
- * copyTextToClipboard(text).then(
35
- * function () {
36
- * console.log('Async: Copying to clipboard was successful!');
37
- * },
38
- * function (err) {
39
- * console.error('Async: Could not copy text: ', err);
40
- * });
41
- */
42
- export declare function copyTextToClipboard(text: any): Promise<void>;
43
- //# sourceMappingURL=string.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/utils/string.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,KAAA,WAEzB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO9C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiB7C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,wBAAgB,MAAM,WAErB;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,KAAA,iBAqB/C;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,KAAA,iBAKvC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Utility Url Replacer
3
- * @param path
4
- */
5
- export declare const urlReplacer: (path: string) => (params: object) => any;
6
- /**
7
- * Get domain
8
- * @param url
9
- */
10
- export declare const getDomain: (url: string) => string;
11
- /**
12
- * Check a str is a valid url pattern
13
- * @param url
14
- */
15
- export declare const isValidUrl: (url: string) => boolean;
16
- /**
17
- * Check a str is a valid list of urls separated by delimiter
18
- * @param value
19
- * @param delimiter
20
- */
21
- export declare const isValidUrls: (value: string, delimiter: string) => boolean;
22
- /**
23
- * Append params
24
- * @param baseUrl
25
- * @param queryParams
26
- */
27
- export declare function appendURLSearchParams(baseUrl: string, queryParams: Record<string, string | number>[]): string;
28
- /**
29
- * Take the application server's public key, which is Base64 URL-safe encoded,
30
- * and convert it to a UInt8Array, because this is the expected input of the subscribe()
31
- */
32
- export declare const urlB64ToUint8Array: (base64String: any) => Uint8Array;
33
- //# sourceMappingURL=url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../../utils/src/utils/url.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,cAWtB,MAAM,QACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,QAAS,MAAM,KAAG,MAOvC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,QAAS,MAAM,KAAG,OAGxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAW,MAAM,aAAa,MAAM,KAAG,OAG9D,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,UAWpG;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mCAW9B,CAAC"}