@oxyhq/core 1.11.0 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/i18n/locales/en-US.json +108 -5
- package/dist/cjs/i18n/locales/es-ES.json +108 -5
- package/dist/cjs/i18n/locales/locales/en-US.json +108 -5
- package/dist/cjs/i18n/locales/locales/es-ES.json +108 -5
- package/dist/cjs/index.js +5 -2
- package/dist/cjs/mixins/OxyServices.topics.js +123 -0
- package/dist/cjs/mixins/OxyServices.user.js +14 -3
- package/dist/cjs/mixins/index.js +2 -0
- package/dist/cjs/models/Topic.js +16 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/i18n/locales/en-US.json +108 -5
- package/dist/esm/i18n/locales/es-ES.json +108 -5
- package/dist/esm/i18n/locales/locales/en-US.json +108 -5
- package/dist/esm/i18n/locales/locales/es-ES.json +108 -5
- package/dist/esm/index.js +1 -0
- package/dist/esm/mixins/OxyServices.topics.js +120 -0
- package/dist/esm/mixins/OxyServices.user.js +14 -3
- package/dist/esm/mixins/index.js +2 -0
- package/dist/esm/models/Topic.js +13 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/mixins/OxyServices.topics.d.ts +106 -0
- package/dist/types/mixins/OxyServices.user.d.ts +19 -2
- package/dist/types/models/Topic.d.ts +32 -0
- package/package.json +1 -1
- package/src/i18n/locales/en-US.json +108 -5
- package/src/i18n/locales/es-ES.json +108 -5
- package/src/index.ts +2 -0
- package/src/mixins/OxyServices.topics.ts +135 -0
- package/src/mixins/OxyServices.user.ts +26 -3
- package/src/mixins/index.ts +2 -0
- package/src/models/Topic.ts +35 -0
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
},
|
|
148
148
|
"editProfile": {
|
|
149
149
|
"title": "Editar perfil",
|
|
150
|
+
"subtitle": "Gestiona tu perfil y preferencias",
|
|
150
151
|
"sections": {
|
|
151
152
|
"profilePicture": "Foto de perfil",
|
|
152
153
|
"basicInfo": "Información básica",
|
|
@@ -157,29 +158,69 @@
|
|
|
157
158
|
"items": {
|
|
158
159
|
"displayName": {
|
|
159
160
|
"title": "Nombre para mostrar",
|
|
160
|
-
"
|
|
161
|
+
"subtitle": "Así aparecerá tu nombre para los demás",
|
|
162
|
+
"add": "Añade tu nombre para mostrar",
|
|
163
|
+
"firstName": "Nombre",
|
|
164
|
+
"firstNamePlaceholder": "Introduce tu nombre",
|
|
165
|
+
"lastName": "Apellido",
|
|
166
|
+
"lastNamePlaceholder": "Introduce tu apellido (opcional)"
|
|
161
167
|
},
|
|
162
168
|
"username": {
|
|
163
169
|
"title": "Usuario",
|
|
164
|
-
"
|
|
170
|
+
"subtitle": "Tu identificador único en la plataforma",
|
|
171
|
+
"label": "Usuario",
|
|
172
|
+
"placeholder": "Elige un usuario",
|
|
173
|
+
"choose": "Elige un usuario",
|
|
174
|
+
"required": "El usuario es obligatorio",
|
|
175
|
+
"tooShort": "El usuario debe tener al menos 3 caracteres"
|
|
165
176
|
},
|
|
166
177
|
"email": {
|
|
167
178
|
"title": "Correo electrónico",
|
|
168
|
-
"
|
|
179
|
+
"subtitle": "Tu dirección de correo principal",
|
|
180
|
+
"label": "Correo electrónico",
|
|
181
|
+
"placeholder": "Introduce tu correo electrónico",
|
|
182
|
+
"add": "Añade tu correo electrónico",
|
|
183
|
+
"invalid": "Introduce una dirección de correo válida"
|
|
169
184
|
},
|
|
170
185
|
"bio": {
|
|
171
186
|
"title": "Biografía",
|
|
187
|
+
"subtitle": "Cuenta algo sobre ti",
|
|
188
|
+
"label": "Biografía",
|
|
172
189
|
"placeholder": "Cuenta algo sobre ti"
|
|
173
190
|
},
|
|
191
|
+
"phone": {
|
|
192
|
+
"title": "Número de teléfono",
|
|
193
|
+
"subtitle": "Tu número de teléfono de contacto",
|
|
194
|
+
"label": "Número de teléfono",
|
|
195
|
+
"placeholder": "Introduce tu número de teléfono"
|
|
196
|
+
},
|
|
197
|
+
"address": {
|
|
198
|
+
"title": "Dirección",
|
|
199
|
+
"subtitle": "Tu dirección física",
|
|
200
|
+
"label": "Dirección",
|
|
201
|
+
"placeholder": "Introduce tu dirección"
|
|
202
|
+
},
|
|
203
|
+
"birthday": {
|
|
204
|
+
"title": "Fecha de nacimiento",
|
|
205
|
+
"subtitle": "Tu fecha de nacimiento",
|
|
206
|
+
"label": "Fecha de nacimiento",
|
|
207
|
+
"placeholder": "AAAA-MM-DD"
|
|
208
|
+
},
|
|
174
209
|
"locations": {
|
|
175
210
|
"title": "Ubicaciones",
|
|
211
|
+
"subtitle": "Lugares donde has estado o vives",
|
|
176
212
|
"add": "Añade tus ubicaciones",
|
|
213
|
+
"placeholder": "Introduce el nombre del lugar",
|
|
214
|
+
"yourLocations": "Tus ubicaciones",
|
|
177
215
|
"count": "{{count}} ubicación añadida",
|
|
178
216
|
"count_plural": "{{count}} ubicaciones añadidas"
|
|
179
217
|
},
|
|
180
218
|
"links": {
|
|
181
219
|
"title": "Enlaces",
|
|
220
|
+
"subtitle": "Comparte tu web, perfiles sociales, etc.",
|
|
182
221
|
"add": "Añade tus enlaces",
|
|
222
|
+
"placeholder": "Introduce la URL",
|
|
223
|
+
"yourLinks": "Tus enlaces",
|
|
183
224
|
"count": "{{count}} enlace añadido",
|
|
184
225
|
"count_plural": "{{count}} enlaces añadidos"
|
|
185
226
|
},
|
|
@@ -219,9 +260,15 @@
|
|
|
219
260
|
"getStarted": "Comenzar",
|
|
220
261
|
"createAccount": "Crear cuenta",
|
|
221
262
|
"signIn": "Entrar",
|
|
263
|
+
"signOut": "Cerrar sesión",
|
|
222
264
|
"verify": "Verificar",
|
|
223
265
|
"resetPassword": "Restablecer contraseña"
|
|
224
266
|
},
|
|
267
|
+
"cancel": "Cancelar",
|
|
268
|
+
"retry": "Reintentar",
|
|
269
|
+
"save": "Guardar",
|
|
270
|
+
"saved": "Guardado correctamente",
|
|
271
|
+
"saving": "Guardando...",
|
|
225
272
|
"links": {
|
|
226
273
|
"recoverAccount": "Recuperar tu cuenta",
|
|
227
274
|
"signUp": "Registrarse"
|
|
@@ -623,6 +670,34 @@
|
|
|
623
670
|
"title": "¿Por qué el karma?",
|
|
624
671
|
"text": "El karma desbloquea funciones especiales y reconocimiento en el ecosistema de Oxy. ¡Cuanto más contribuyas, más ganarás!"
|
|
625
672
|
}
|
|
673
|
+
},
|
|
674
|
+
"achievements": {
|
|
675
|
+
"unlocked": "Logros desbloqueados",
|
|
676
|
+
"locked": "Logros bloqueados",
|
|
677
|
+
"firstStep": "Primer paso",
|
|
678
|
+
"firstStepDesc": "Ganaste tu primer punto de karma",
|
|
679
|
+
"novice": "Novato",
|
|
680
|
+
"noviceDesc": "Alcanzaste 10 puntos de karma",
|
|
681
|
+
"contributor": "Contribuidor",
|
|
682
|
+
"contributorDesc": "Alcanzaste 50 puntos de karma",
|
|
683
|
+
"risingStar": "Estrella en ascenso",
|
|
684
|
+
"risingStarDesc": "Alcanzaste 100 puntos de karma",
|
|
685
|
+
"earlyAdopter": "Pionero",
|
|
686
|
+
"earlyAdopterDesc": "Parte de la comunidad desde el inicio",
|
|
687
|
+
"communityHero": "Héroe de la comunidad",
|
|
688
|
+
"communityHeroDesc": "Alcanzaste 500 puntos de karma",
|
|
689
|
+
"legend": "Leyenda",
|
|
690
|
+
"legendDesc": "Alcanzaste 1000 puntos de karma",
|
|
691
|
+
"phoenix": "Fénix",
|
|
692
|
+
"phoenixDesc": "Alcanzaste 2500 puntos de karma",
|
|
693
|
+
"unstoppable": "Imparable",
|
|
694
|
+
"unstoppableDesc": "Alcanzaste 5000 puntos de karma",
|
|
695
|
+
"bugHunter": "Cazador de errores",
|
|
696
|
+
"bugHunterDesc": "Reportaste errores útiles",
|
|
697
|
+
"helper": "Ayudante",
|
|
698
|
+
"helperDesc": "Ayudaste a 10 usuarios",
|
|
699
|
+
"streakMaster": "Maestro de rachas",
|
|
700
|
+
"streakMasterDesc": "Racha de actividad de 7 días"
|
|
626
701
|
}
|
|
627
702
|
},
|
|
628
703
|
"premium": {
|
|
@@ -819,8 +894,19 @@
|
|
|
819
894
|
"account": "PRIVACIDAD DE LA CUENTA",
|
|
820
895
|
"interactions": "INTERACCIONES",
|
|
821
896
|
"activity": "ACTIVIDAD Y DATOS",
|
|
822
|
-
"content": "CONTENIDO Y SEGURIDAD"
|
|
823
|
-
|
|
897
|
+
"content": "CONTENIDO Y SEGURIDAD",
|
|
898
|
+
"blockedUsers": "USUARIOS BLOQUEADOS",
|
|
899
|
+
"restrictedUsers": "USUARIOS RESTRINGIDOS"
|
|
900
|
+
},
|
|
901
|
+
"noBlockedUsers": "No hay usuarios bloqueados",
|
|
902
|
+
"noRestrictedUsers": "No hay usuarios restringidos",
|
|
903
|
+
"unblock": "Desbloquear",
|
|
904
|
+
"unblockError": "Error al desbloquear al usuario",
|
|
905
|
+
"unrestrict": "Quitar restricción",
|
|
906
|
+
"unrestrictError": "Error al quitar la restricción del usuario",
|
|
907
|
+
"restrictedDescription": "Interacciones limitadas",
|
|
908
|
+
"userUnblocked": "Usuario desbloqueado",
|
|
909
|
+
"userUnrestricted": "Restricción del usuario eliminada",
|
|
824
910
|
"isPrivateAccount": "Cuenta privada",
|
|
825
911
|
"isPrivateAccountDesc": "Solo los seguidores aprobados pueden ver tus publicaciones",
|
|
826
912
|
"profileVisibility": "Visibilidad del perfil",
|
|
@@ -940,5 +1026,22 @@
|
|
|
940
1026
|
"title": "Política de cookies",
|
|
941
1027
|
"subtitle": "Cómo usamos cookies y tecnologías similares"
|
|
942
1028
|
}
|
|
1029
|
+
},
|
|
1030
|
+
"faq": {
|
|
1031
|
+
"title": "Preguntas frecuentes",
|
|
1032
|
+
"searchPlaceholder": "Buscar en las FAQ...",
|
|
1033
|
+
"allCategories": "Todas",
|
|
1034
|
+
"loading": "Cargando preguntas frecuentes...",
|
|
1035
|
+
"noResults": "No se encontraron preguntas que coincidan con tu búsqueda",
|
|
1036
|
+
"empty": "No hay preguntas frecuentes disponibles",
|
|
1037
|
+
"loadError": "Error al cargar las preguntas frecuentes"
|
|
1038
|
+
},
|
|
1039
|
+
"userList": {
|
|
1040
|
+
"followers": "Seguidores",
|
|
1041
|
+
"following": "Siguiendo",
|
|
1042
|
+
"noFollowers": "Aún no hay seguidores",
|
|
1043
|
+
"noFollowersDesc": "Cuando alguien siga a este usuario, aparecerá aquí.",
|
|
1044
|
+
"noFollowing": "No sigue a nadie",
|
|
1045
|
+
"noFollowingDesc": "Cuando este usuario siga a alguien, aparecerá aquí."
|
|
943
1046
|
}
|
|
944
1047
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -29,8 +29,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.
|
|
33
|
-
exports.createQuickAccount = exports.buildAccountsArray = exports.updateAvatarVisibility = exports.logPerformance = exports.logPayment = exports.logDevice = exports.logUser = exports.logSession = exports.logApi = exports.logAuth = exports.LogLevel = exports.logger = exports.retryAsync = exports.validateRequiredFields = exports.handleHttpError = exports.createApiError = exports.ErrorCodes = exports.packageInfo = exports.sessionsArraysEqual = exports.normalizeAndSortSessions = exports.mergeSessions = exports.authenticatedApiCall = exports.withAuthErrorHandling = exports.isAuthenticationError = exports.ensureValidToken = exports.AuthenticationFailedError = exports.SessionSyncRequiredError = exports.translate = exports.createDebugLogger = exports.debugError = exports.debugWarn = exports.debugLog = exports.isDev = exports.withRetry = exports.delay = exports.shouldAllowRequest = exports.recordSuccess = exports.recordFailure = void 0;
|
|
32
|
+
exports.DEFAULT_CIRCUIT_BREAKER_CONFIG = exports.isRetryableError = exports.isNetworkError = exports.isServerError = exports.isRateLimitError = exports.isNotFoundError = exports.isForbiddenError = exports.isUnauthorizedError = exports.isAlreadyRegisteredError = exports.getErrorMessage = exports.getErrorStatus = exports.HttpStatus = exports.getSystemColorScheme = exports.systemPrefersDarkMode = exports.getOppositeTheme = exports.normalizeColorScheme = exports.normalizeTheme = exports.getContrastTextColor = exports.isLightColor = exports.withOpacity = exports.rgbToHex = exports.hexToRgb = exports.lightenColor = exports.darkenColor = exports.isAndroid = exports.isIOS = exports.isNative = exports.isWeb = exports.setPlatformOS = exports.getPlatformOS = exports.normalizeLanguageCode = exports.getNativeLanguageName = exports.getLanguageName = exports.getLanguageMetadata = exports.SUPPORTED_LANGUAGES = exports.DeviceManager = exports.TopicSource = exports.TopicType = exports.RecoveryPhraseService = exports.SignatureService = exports.KeyManager = exports.createCrossDomainAuth = exports.CrossDomainAuth = exports.createAuthManager = exports.AuthManager = exports.oxyClient = exports.OXY_CLOUD_URL = exports.OxyAuthenticationTimeoutError = exports.OxyAuthenticationError = exports.OxyServices = void 0;
|
|
33
|
+
exports.createQuickAccount = exports.buildAccountsArray = exports.updateAvatarVisibility = exports.logPerformance = exports.logPayment = exports.logDevice = exports.logUser = exports.logSession = exports.logApi = exports.logAuth = exports.LogLevel = exports.logger = exports.retryAsync = exports.validateRequiredFields = exports.handleHttpError = exports.createApiError = exports.ErrorCodes = exports.packageInfo = exports.sessionsArraysEqual = exports.normalizeAndSortSessions = exports.mergeSessions = exports.authenticatedApiCall = exports.withAuthErrorHandling = exports.isAuthenticationError = exports.ensureValidToken = exports.AuthenticationFailedError = exports.SessionSyncRequiredError = exports.translate = exports.createDebugLogger = exports.debugError = exports.debugWarn = exports.debugLog = exports.isDev = exports.withRetry = exports.delay = exports.shouldAllowRequest = exports.recordSuccess = exports.recordFailure = exports.calculateBackoffInterval = exports.createCircuitBreakerState = void 0;
|
|
34
34
|
// Ensure crypto polyfills are loaded before anything else
|
|
35
35
|
require("./crypto/polyfill");
|
|
36
36
|
// --- Core API Client ---
|
|
@@ -56,6 +56,9 @@ Object.defineProperty(exports, "RecoveryPhraseService", { enumerable: true, get:
|
|
|
56
56
|
// --- Models & Types ---
|
|
57
57
|
__exportStar(require("./models/interfaces"), exports);
|
|
58
58
|
__exportStar(require("./models/session"), exports);
|
|
59
|
+
var Topic_1 = require("./models/Topic");
|
|
60
|
+
Object.defineProperty(exports, "TopicType", { enumerable: true, get: function () { return Topic_1.TopicType; } });
|
|
61
|
+
Object.defineProperty(exports, "TopicSource", { enumerable: true, get: function () { return Topic_1.TopicSource; } });
|
|
59
62
|
// --- Device Management ---
|
|
60
63
|
var deviceManager_1 = require("./utils/deviceManager");
|
|
61
64
|
Object.defineProperty(exports, "DeviceManager", { enumerable: true, get: function () { return deviceManager_1.DeviceManager; } });
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OxyServicesTopicsMixin = OxyServicesTopicsMixin;
|
|
4
|
+
const mixinHelpers_1 = require("./mixinHelpers");
|
|
5
|
+
function OxyServicesTopicsMixin(Base) {
|
|
6
|
+
return class extends Base {
|
|
7
|
+
constructor(...args) {
|
|
8
|
+
super(...args);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get top-level topic categories
|
|
12
|
+
* @param locale - Optional locale for translated results
|
|
13
|
+
* @returns List of category topics
|
|
14
|
+
*/
|
|
15
|
+
async getTopicCategories(locale) {
|
|
16
|
+
try {
|
|
17
|
+
const params = {};
|
|
18
|
+
if (locale)
|
|
19
|
+
params.locale = locale;
|
|
20
|
+
return await this.makeRequest('GET', '/topics/categories', params, {
|
|
21
|
+
cache: true,
|
|
22
|
+
cacheTTL: mixinHelpers_1.CACHE_TIMES.EXTRA_LONG,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
throw this.handleError(error);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Search topics by query string
|
|
31
|
+
* @param query - Search query
|
|
32
|
+
* @param limit - Optional result limit
|
|
33
|
+
* @returns Matching topics
|
|
34
|
+
*/
|
|
35
|
+
async searchTopics(query, limit) {
|
|
36
|
+
try {
|
|
37
|
+
const params = { q: query };
|
|
38
|
+
if (limit)
|
|
39
|
+
params.limit = limit;
|
|
40
|
+
return await this.makeRequest('GET', '/topics/search', params, {
|
|
41
|
+
cache: false,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
throw this.handleError(error);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* List topics with optional filters
|
|
50
|
+
* @param options - Filter and pagination options
|
|
51
|
+
* @returns List of topics
|
|
52
|
+
*/
|
|
53
|
+
async listTopics(options) {
|
|
54
|
+
try {
|
|
55
|
+
const params = {};
|
|
56
|
+
if (options?.type)
|
|
57
|
+
params.type = options.type;
|
|
58
|
+
if (options?.q)
|
|
59
|
+
params.q = options.q;
|
|
60
|
+
if (options?.limit)
|
|
61
|
+
params.limit = options.limit;
|
|
62
|
+
if (options?.offset)
|
|
63
|
+
params.offset = options.offset;
|
|
64
|
+
if (options?.locale)
|
|
65
|
+
params.locale = options.locale;
|
|
66
|
+
return await this.makeRequest('GET', '/topics', params, {
|
|
67
|
+
cache: true,
|
|
68
|
+
cacheTTL: mixinHelpers_1.CACHE_TIMES.SHORT,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
throw this.handleError(error);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get a single topic by slug
|
|
77
|
+
* @param slug - Topic slug
|
|
78
|
+
* @returns Topic data
|
|
79
|
+
*/
|
|
80
|
+
async getTopicBySlug(slug) {
|
|
81
|
+
try {
|
|
82
|
+
return await this.makeRequest('GET', `/topics/${slug}`, undefined, {
|
|
83
|
+
cache: true,
|
|
84
|
+
cacheTTL: mixinHelpers_1.CACHE_TIMES.LONG,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
catch (error) {
|
|
88
|
+
throw this.handleError(error);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Resolve an array of topic names to existing or newly created topics
|
|
93
|
+
* @param names - Array of { name, type } objects to resolve
|
|
94
|
+
* @returns Resolved topic data
|
|
95
|
+
*/
|
|
96
|
+
async resolveTopicNames(names) {
|
|
97
|
+
try {
|
|
98
|
+
return await this.makeRequest('POST', '/topics/resolve', { names }, {
|
|
99
|
+
cache: false,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
throw this.handleError(error);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Update metadata for a topic
|
|
108
|
+
* @param slug - Topic slug
|
|
109
|
+
* @param data - Metadata fields to update
|
|
110
|
+
* @returns Updated topic data
|
|
111
|
+
*/
|
|
112
|
+
async updateTopicMetadata(slug, data) {
|
|
113
|
+
try {
|
|
114
|
+
return await this.makeRequest('PATCH', `/topics/${slug}`, data, {
|
|
115
|
+
cache: false,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
catch (error) {
|
|
119
|
+
throw this.handleError(error);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -89,11 +89,22 @@ function OxyServicesUserMixin(Base) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Resolve (find or create) a non-local user. All user creation for
|
|
93
|
+
* external accounts (federated, agent, automated) goes through this
|
|
94
|
+
* method — calling services never write user data directly.
|
|
93
95
|
*/
|
|
94
|
-
async
|
|
96
|
+
async resolveExternalUser(data) {
|
|
97
|
+
return this.makeRequest('PUT', '/users/resolve', data);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Get profile recommendations, optionally filtering out specific user types.
|
|
101
|
+
*/
|
|
102
|
+
async getProfileRecommendations(options) {
|
|
103
|
+
const params = options?.excludeTypes?.length
|
|
104
|
+
? { excludeTypes: options.excludeTypes.join(',') }
|
|
105
|
+
: undefined;
|
|
95
106
|
return this.withAuthRetry(async () => {
|
|
96
|
-
return await this.makeRequest('GET', '/profiles/recommendations',
|
|
107
|
+
return await this.makeRequest('GET', '/profiles/recommendations', params, { cache: true });
|
|
97
108
|
}, 'getProfileRecommendations');
|
|
98
109
|
}
|
|
99
110
|
/**
|
package/dist/cjs/mixins/index.js
CHANGED
|
@@ -26,6 +26,7 @@ const OxyServices_devices_1 = require("./OxyServices.devices");
|
|
|
26
26
|
const OxyServices_security_1 = require("./OxyServices.security");
|
|
27
27
|
const OxyServices_utility_1 = require("./OxyServices.utility");
|
|
28
28
|
const OxyServices_features_1 = require("./OxyServices.features");
|
|
29
|
+
const OxyServices_topics_1 = require("./OxyServices.topics");
|
|
29
30
|
/**
|
|
30
31
|
* Mixin pipeline - applied in order from first to last.
|
|
31
32
|
*
|
|
@@ -62,6 +63,7 @@ const MIXIN_PIPELINE = [
|
|
|
62
63
|
OxyServices_devices_1.OxyServicesDevicesMixin,
|
|
63
64
|
OxyServices_security_1.OxyServicesSecurityMixin,
|
|
64
65
|
OxyServices_features_1.OxyServicesFeaturesMixin,
|
|
66
|
+
OxyServices_topics_1.OxyServicesTopicsMixin,
|
|
65
67
|
// Utility (last, can use all above)
|
|
66
68
|
OxyServices_utility_1.OxyServicesUtilityMixin,
|
|
67
69
|
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TopicSource = exports.TopicType = void 0;
|
|
4
|
+
var TopicType;
|
|
5
|
+
(function (TopicType) {
|
|
6
|
+
TopicType["CATEGORY"] = "category";
|
|
7
|
+
TopicType["TOPIC"] = "topic";
|
|
8
|
+
TopicType["ENTITY"] = "entity";
|
|
9
|
+
})(TopicType || (exports.TopicType = TopicType = {}));
|
|
10
|
+
var TopicSource;
|
|
11
|
+
(function (TopicSource) {
|
|
12
|
+
TopicSource["SEED"] = "seed";
|
|
13
|
+
TopicSource["AI"] = "ai";
|
|
14
|
+
TopicSource["MANUAL"] = "manual";
|
|
15
|
+
TopicSource["SYSTEM"] = "system";
|
|
16
|
+
})(TopicSource || (exports.TopicSource = TopicSource = {}));
|