@23blocks/block-authentication 6.5.0 → 7.1.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.
- package/CHANGELOG.md +467 -0
- package/dist/index.esm.js +165 -52
- package/dist/src/index.d.ts +3 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/authentication.block.d.ts +5 -4
- package/dist/src/lib/authentication.block.d.ts.map +1 -1
- package/dist/src/lib/mappers/index.d.ts +1 -0
- package/dist/src/lib/mappers/index.d.ts.map +1 -1
- package/dist/src/lib/mappers/service-token.mapper.d.ts +11 -0
- package/dist/src/lib/mappers/service-token.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/utils.d.ts +3 -3
- package/dist/src/lib/mappers/utils.d.ts.map +1 -1
- package/dist/src/lib/services/avatars.service.d.ts +1 -1
- package/dist/src/lib/services/avatars.service.d.ts.map +1 -1
- package/dist/src/lib/services/index.d.ts +1 -0
- package/dist/src/lib/services/index.d.ts.map +1 -1
- package/dist/src/lib/services/mfa.service.d.ts +1 -1
- package/dist/src/lib/services/mfa.service.d.ts.map +1 -1
- package/dist/src/lib/services/oauth.service.d.ts +1 -1
- package/dist/src/lib/services/oauth.service.d.ts.map +1 -1
- package/dist/src/lib/services/service-tokens.service.d.ts +40 -0
- package/dist/src/lib/services/service-tokens.service.d.ts.map +1 -0
- package/dist/src/lib/services/tenants.service.d.ts +1 -1
- package/dist/src/lib/services/tenants.service.d.ts.map +1 -1
- package/dist/src/lib/services/users.service.d.ts.map +1 -1
- package/dist/src/lib/types/index.d.ts +1 -0
- package/dist/src/lib/types/index.d.ts.map +1 -1
- package/dist/src/lib/types/oauth.d.ts +2 -0
- package/dist/src/lib/types/oauth.d.ts.map +1 -1
- package/dist/src/lib/types/service-token.d.ts +39 -0
- package/dist/src/lib/types/service-token.d.ts.map +1 -0
- package/dist/src/lib/types/tenant.d.ts.map +1 -1
- package/dist/src/lib/types/user-extended.d.ts.map +1 -1
- package/package.json +3 -1
package/dist/index.esm.js
CHANGED
|
@@ -5,25 +5,25 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
5
5
|
* Parse a string value, returning null for empty/undefined
|
|
6
6
|
*/ function parseString(value) {
|
|
7
7
|
if (value === null || value === undefined) {
|
|
8
|
-
return
|
|
8
|
+
return '';
|
|
9
9
|
}
|
|
10
10
|
const str = String(value);
|
|
11
|
-
return str.length > 0 ? str :
|
|
11
|
+
return str.length > 0 ? str : '';
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Parse a date value
|
|
15
15
|
*/ function parseDate(value) {
|
|
16
16
|
if (value === null || value === undefined) {
|
|
17
|
-
return
|
|
17
|
+
return new Date();
|
|
18
18
|
}
|
|
19
19
|
if (value instanceof Date) {
|
|
20
20
|
return value;
|
|
21
21
|
}
|
|
22
22
|
if (typeof value === 'string' || typeof value === 'number') {
|
|
23
23
|
const date = new Date(value);
|
|
24
|
-
return isNaN(date.getTime()) ?
|
|
24
|
+
return isNaN(date.getTime()) ? new Date() : date;
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return new Date();
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Parse a boolean value
|
|
@@ -48,10 +48,10 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
48
48
|
* Parse a number value
|
|
49
49
|
*/ function parseNumber(value) {
|
|
50
50
|
if (value === null || value === undefined) {
|
|
51
|
-
return
|
|
51
|
+
return 0;
|
|
52
52
|
}
|
|
53
53
|
const num = Number(value);
|
|
54
|
-
return isNaN(num) ?
|
|
54
|
+
return isNaN(num) ? 0 : num;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -61,11 +61,11 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
61
61
|
map (resource, _included) {
|
|
62
62
|
var _resource_attributes;
|
|
63
63
|
const attrs = (_resource_attributes = resource.attributes) != null ? _resource_attributes : {};
|
|
64
|
-
var _attrs_status, _parseDate, _parseDate1;
|
|
64
|
+
var _parseString, _parseString1, _attrs_status, _parseDate, _parseDate1;
|
|
65
65
|
return {
|
|
66
66
|
id: resource.id,
|
|
67
|
-
uniqueId: parseString(attrs.unique_id),
|
|
68
|
-
name: parseString(attrs.name),
|
|
67
|
+
uniqueId: (_parseString = parseString(attrs.unique_id)) != null ? _parseString : '',
|
|
68
|
+
name: (_parseString1 = parseString(attrs.name)) != null ? _parseString1 : '',
|
|
69
69
|
level: Number(attrs.level) || 0,
|
|
70
70
|
parentId: parseString(attrs.parent_id),
|
|
71
71
|
description: parseString(attrs.description),
|
|
@@ -84,11 +84,11 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
84
84
|
map (resource, _included) {
|
|
85
85
|
var _resource_attributes;
|
|
86
86
|
const attrs = (_resource_attributes = resource.attributes) != null ? _resource_attributes : {};
|
|
87
|
-
var _attrs_status, _parseDate, _parseDate1;
|
|
87
|
+
var _parseString, _parseString1, _attrs_status, _parseDate, _parseDate1;
|
|
88
88
|
return {
|
|
89
89
|
id: resource.id,
|
|
90
|
-
uniqueId: parseString(attrs.unique_id),
|
|
91
|
-
name: parseString(attrs.name),
|
|
90
|
+
uniqueId: (_parseString = parseString(attrs.unique_id)) != null ? _parseString : '',
|
|
91
|
+
name: (_parseString1 = parseString(attrs.name)) != null ? _parseString1 : '',
|
|
92
92
|
code: parseString(attrs.code),
|
|
93
93
|
description: parseString(attrs.description),
|
|
94
94
|
status: (_attrs_status = attrs.status) != null ? _attrs_status : 'active',
|
|
@@ -182,7 +182,7 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
182
182
|
map (resource, included) {
|
|
183
183
|
var _resource_attributes;
|
|
184
184
|
const attrs = (_resource_attributes = resource.attributes) != null ? _resource_attributes : {};
|
|
185
|
-
var
|
|
185
|
+
var _attrs_status, _parseDate, _parseDate1;
|
|
186
186
|
return {
|
|
187
187
|
id: resource.id,
|
|
188
188
|
uniqueId: parseString(attrs.unique_id),
|
|
@@ -191,8 +191,8 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
191
191
|
name: parseString(attrs.name),
|
|
192
192
|
nickname: parseString(attrs.nickname),
|
|
193
193
|
bio: parseString(attrs.bio),
|
|
194
|
-
provider:
|
|
195
|
-
uid:
|
|
194
|
+
provider: parseString(attrs.provider) || 'email',
|
|
195
|
+
uid: parseString(attrs.uid) || parseString(attrs.email),
|
|
196
196
|
roleId: parseString(attrs.role_id),
|
|
197
197
|
status: (_attrs_status = attrs.status) != null ? _attrs_status : 'active',
|
|
198
198
|
mailStatus: parseString(attrs.mail_status),
|
|
@@ -922,6 +922,48 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
924
|
|
|
925
|
+
/**
|
|
926
|
+
* Service Token mapper
|
|
927
|
+
*/ const serviceTokenMapper = {
|
|
928
|
+
type: 'ServiceToken',
|
|
929
|
+
map (resource, _included) {
|
|
930
|
+
var _resource_attributes;
|
|
931
|
+
const attrs = (_resource_attributes = resource.attributes) != null ? _resource_attributes : {};
|
|
932
|
+
var _parseString, _parseString1, _attrs_token_category, _parseString2, _parseDate, _parseDate1;
|
|
933
|
+
return {
|
|
934
|
+
id: resource.id,
|
|
935
|
+
uniqueId: (_parseString = parseString(attrs.unique_id)) != null ? _parseString : resource.id,
|
|
936
|
+
name: (_parseString1 = parseString(attrs.name)) != null ? _parseString1 : '',
|
|
937
|
+
tokenCategory: (_attrs_token_category = attrs.token_category) != null ? _attrs_token_category : 'service',
|
|
938
|
+
scopes: parseStringArray(attrs.scopes),
|
|
939
|
+
status: (_parseString2 = parseString(attrs.status)) != null ? _parseString2 : 'active',
|
|
940
|
+
expiresAt: attrs.expires_at ? parseDate(attrs.expires_at) : null,
|
|
941
|
+
useCount: parseNumber(attrs.use_count),
|
|
942
|
+
lastUsedAt: attrs.last_used_at ? parseDate(attrs.last_used_at) : null,
|
|
943
|
+
createdAt: (_parseDate = parseDate(attrs.created_at)) != null ? _parseDate : new Date(),
|
|
944
|
+
updatedAt: (_parseDate1 = parseDate(attrs.updated_at)) != null ? _parseDate1 : new Date(),
|
|
945
|
+
// Computed attributes
|
|
946
|
+
expired: parseBoolean(attrs.expired),
|
|
947
|
+
active: parseBoolean(attrs.active),
|
|
948
|
+
expiresInSeconds: attrs.expires_in_seconds != null ? parseNumber(attrs.expires_in_seconds) : null
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* Service Token with JWT mapper (only used on create/regenerate)
|
|
954
|
+
*/ const serviceTokenWithJwtMapper = {
|
|
955
|
+
type: 'ServiceToken',
|
|
956
|
+
map (resource, included) {
|
|
957
|
+
var _resource_attributes;
|
|
958
|
+
const attrs = (_resource_attributes = resource.attributes) != null ? _resource_attributes : {};
|
|
959
|
+
const baseToken = serviceTokenMapper.map(resource, included);
|
|
960
|
+
var _parseString;
|
|
961
|
+
return _({}, baseToken, {
|
|
962
|
+
jwt: (_parseString = parseString(attrs.jwt)) != null ? _parseString : ''
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
|
|
925
967
|
/**
|
|
926
968
|
* Create the auth service
|
|
927
969
|
*/ function createAuthService(transport, _config) {
|
|
@@ -1143,10 +1185,11 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
1143
1185
|
// Profile mapper
|
|
1144
1186
|
const profileMapper = {
|
|
1145
1187
|
type: 'user_profile',
|
|
1146
|
-
map: (
|
|
1147
|
-
|
|
1188
|
+
map: (resource, _included)=>{
|
|
1189
|
+
const data = resource.attributes;
|
|
1190
|
+
var _data_unique_id, _data_user_id, _data_user_unique_id;
|
|
1148
1191
|
return {
|
|
1149
|
-
id:
|
|
1192
|
+
id: resource.id,
|
|
1150
1193
|
uniqueId: String((_data_unique_id = data['unique_id']) != null ? _data_unique_id : ''),
|
|
1151
1194
|
userId: String((_data_user_id = data['user_id']) != null ? _data_user_id : ''),
|
|
1152
1195
|
userUniqueId: String((_data_user_unique_id = data['user_unique_id']) != null ? _data_user_unique_id : ''),
|
|
@@ -1185,10 +1228,11 @@ const profileMapper = {
|
|
|
1185
1228
|
// Device mapper
|
|
1186
1229
|
const deviceMapper = {
|
|
1187
1230
|
type: 'user_device',
|
|
1188
|
-
map: (
|
|
1189
|
-
|
|
1231
|
+
map: (resource, _included)=>{
|
|
1232
|
+
const data = resource.attributes;
|
|
1233
|
+
var _data_unique_id, _data_user_id, _data_user_unique_id;
|
|
1190
1234
|
return {
|
|
1191
|
-
id:
|
|
1235
|
+
id: resource.id,
|
|
1192
1236
|
uniqueId: String((_data_unique_id = data['unique_id']) != null ? _data_unique_id : ''),
|
|
1193
1237
|
userId: String((_data_user_id = data['user_id']) != null ? _data_user_id : ''),
|
|
1194
1238
|
userUniqueId: String((_data_user_unique_id = data['user_unique_id']) != null ? _data_user_unique_id : ''),
|
|
@@ -1208,22 +1252,34 @@ const deviceMapper = {
|
|
|
1208
1252
|
// Subscription mapper
|
|
1209
1253
|
const subscriptionMapper = {
|
|
1210
1254
|
type: 'user_subscription',
|
|
1211
|
-
map: (
|
|
1212
|
-
|
|
1255
|
+
map: (resource, _included)=>{
|
|
1256
|
+
const data = resource.attributes;
|
|
1257
|
+
var _data_unique_id, _data_user_unique_id, _data_code, _data_program_code, _data_recurring_payment_fees, _data_recurring_payment_amount, _data_subscription_number, _data_last_payment, _data_payments_made, _data_status, _data_initial_payment, _data_subscription_type, _data_payments, _data_payload, _data_max_items, _data_consumption;
|
|
1213
1258
|
return {
|
|
1214
|
-
id:
|
|
1259
|
+
id: resource.id,
|
|
1215
1260
|
uniqueId: String((_data_unique_id = data['unique_id']) != null ? _data_unique_id : ''),
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1261
|
+
userUniqueId: String((_data_user_unique_id = data['user_unique_id']) != null ? _data_user_unique_id : ''),
|
|
1262
|
+
code: String((_data_code = data['code']) != null ? _data_code : ''),
|
|
1263
|
+
programCode: (_data_program_code = data['program_code']) != null ? _data_program_code : null,
|
|
1264
|
+
recurringPaymentFees: (_data_recurring_payment_fees = data['recurring_payment_fees']) != null ? _data_recurring_payment_fees : null,
|
|
1265
|
+
recurringPaymentAmount: (_data_recurring_payment_amount = data['recurring_payment_amount']) != null ? _data_recurring_payment_amount : null,
|
|
1266
|
+
subscriptionNumber: (_data_subscription_number = data['subscription_number']) != null ? _data_subscription_number : null,
|
|
1267
|
+
subscribedAt: data['subscribed_at'] ? new Date(data['subscribed_at']) : null,
|
|
1268
|
+
closedAt: data['closed_at'] ? new Date(data['closed_at']) : null,
|
|
1269
|
+
lastPaymentAt: data['last_payment_at'] ? new Date(data['last_payment_at']) : null,
|
|
1270
|
+
nextPaymentAt: data['next_payment_at'] ? new Date(data['next_payment_at']) : null,
|
|
1271
|
+
lastPayment: (_data_last_payment = data['last_payment']) != null ? _data_last_payment : null,
|
|
1272
|
+
paymentsMade: Number((_data_payments_made = data['payments_made']) != null ? _data_payments_made : 0),
|
|
1273
|
+
status: (_data_status = data['status']) != null ? _data_status : 'active',
|
|
1274
|
+
bankruptcy: Boolean(data['bankruptcy']),
|
|
1275
|
+
initialPayment: (_data_initial_payment = data['initial_payment']) != null ? _data_initial_payment : null,
|
|
1276
|
+
subscriptionType: (_data_subscription_type = data['subscription_type']) != null ? _data_subscription_type : null,
|
|
1277
|
+
payments: (_data_payments = data['payments']) != null ? _data_payments : null,
|
|
1278
|
+
payload: (_data_payload = data['payload']) != null ? _data_payload : null,
|
|
1279
|
+
maxItems: (_data_max_items = data['max_items']) != null ? _data_max_items : null,
|
|
1280
|
+
consumption: Number((_data_consumption = data['consumption']) != null ? _data_consumption : 0),
|
|
1281
|
+
createdAt: data['created_at'] ? new Date(data['created_at']) : new Date(),
|
|
1282
|
+
updatedAt: data['updated_at'] ? new Date(data['updated_at']) : new Date()
|
|
1227
1283
|
};
|
|
1228
1284
|
}
|
|
1229
1285
|
};
|
|
@@ -1443,7 +1499,7 @@ const subscriptionMapper = {
|
|
|
1443
1499
|
},
|
|
1444
1500
|
async getCompanies (userUniqueId) {
|
|
1445
1501
|
const response = await transport.get(`/users/${userUniqueId}/companies`);
|
|
1446
|
-
return (response.data || []).map((item)=>companyMapper.map(item));
|
|
1502
|
+
return (response.data || []).map((item)=>companyMapper.map(item, new Map()));
|
|
1447
1503
|
},
|
|
1448
1504
|
async addSubscription (userUniqueId, request) {
|
|
1449
1505
|
const payload = typeof request.payload === 'string' ? request.payload : JSON.stringify(request.payload);
|
|
@@ -1708,6 +1764,49 @@ const subscriptionMapper = {
|
|
|
1708
1764
|
};
|
|
1709
1765
|
}
|
|
1710
1766
|
|
|
1767
|
+
/**
|
|
1768
|
+
* Create the service tokens service
|
|
1769
|
+
*/ function createServiceTokensService(transport, _config) {
|
|
1770
|
+
return {
|
|
1771
|
+
async list (params) {
|
|
1772
|
+
const queryParams = {};
|
|
1773
|
+
if (params == null ? void 0 : params.page) queryParams['page'] = params.page;
|
|
1774
|
+
if (params == null ? void 0 : params.perPage) queryParams['records'] = params.perPage;
|
|
1775
|
+
if (params == null ? void 0 : params.filter) {
|
|
1776
|
+
for (const [key, value] of Object.entries(params.filter)){
|
|
1777
|
+
queryParams[`filter[${key}]`] = value;
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
const response = await transport.get('/service_tokens', {
|
|
1781
|
+
params: queryParams
|
|
1782
|
+
});
|
|
1783
|
+
return decodePageResult(response, serviceTokenMapper);
|
|
1784
|
+
},
|
|
1785
|
+
async get (uniqueId) {
|
|
1786
|
+
const response = await transport.get(`/service_tokens/${uniqueId}`);
|
|
1787
|
+
return decodeOne(response, serviceTokenMapper);
|
|
1788
|
+
},
|
|
1789
|
+
async create (request) {
|
|
1790
|
+
const response = await transport.post('/service_tokens', {
|
|
1791
|
+
service_token: {
|
|
1792
|
+
name: request.name,
|
|
1793
|
+
token_category: request.tokenCategory,
|
|
1794
|
+
scopes: request.scopes,
|
|
1795
|
+
expires_in_days: request.expiresInDays
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
return decodeOne(response, serviceTokenWithJwtMapper);
|
|
1799
|
+
},
|
|
1800
|
+
async revoke (uniqueId) {
|
|
1801
|
+
await transport.delete(`/service_tokens/${uniqueId}`);
|
|
1802
|
+
},
|
|
1803
|
+
async regenerate (uniqueId) {
|
|
1804
|
+
const response = await transport.post(`/service_tokens/${uniqueId}/regenerate`);
|
|
1805
|
+
return decodeOne(response, serviceTokenWithJwtMapper);
|
|
1806
|
+
}
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1711
1810
|
/**
|
|
1712
1811
|
* Build filter params for list operations
|
|
1713
1812
|
*/ function buildListParams$3(params) {
|
|
@@ -2366,7 +2465,7 @@ const subscriptionMapper = {
|
|
|
2366
2465
|
|
|
2367
2466
|
/**
|
|
2368
2467
|
* Create the MFA service
|
|
2369
|
-
*/ function createMfaService(transport) {
|
|
2468
|
+
*/ function createMfaService(transport, _config) {
|
|
2370
2469
|
return {
|
|
2371
2470
|
async setup (userUniqueId, regenerate) {
|
|
2372
2471
|
const response = await transport.post(`/users/${userUniqueId}/mfa/setup`, {
|
|
@@ -2422,7 +2521,7 @@ const subscriptionMapper = {
|
|
|
2422
2521
|
|
|
2423
2522
|
/**
|
|
2424
2523
|
* Create the OAuth service
|
|
2425
|
-
*/ function createOAuthService(transport) {
|
|
2524
|
+
*/ function createOAuthService(transport, _config) {
|
|
2426
2525
|
return {
|
|
2427
2526
|
async facebookLogin (request) {
|
|
2428
2527
|
var _response_meta_auth, _response_meta, _response_meta_auth1, _response_meta1, _response_meta_auth2, _response_meta2;
|
|
@@ -2430,7 +2529,11 @@ const subscriptionMapper = {
|
|
|
2430
2529
|
token: request.token,
|
|
2431
2530
|
subscription: request.subscription,
|
|
2432
2531
|
role_id: request.roleId
|
|
2433
|
-
}
|
|
2532
|
+
}, request.oauthMode ? {
|
|
2533
|
+
headers: {
|
|
2534
|
+
'X-OAuth-Mode': 'true'
|
|
2535
|
+
}
|
|
2536
|
+
} : undefined);
|
|
2434
2537
|
const user = decodeOne(response, userMapper);
|
|
2435
2538
|
var _response_meta_auth_access_token;
|
|
2436
2539
|
return {
|
|
@@ -2447,7 +2550,11 @@ const subscriptionMapper = {
|
|
|
2447
2550
|
token: request.token,
|
|
2448
2551
|
subscription: request.subscription,
|
|
2449
2552
|
role_id: request.roleId
|
|
2450
|
-
}
|
|
2553
|
+
}, request.oauthMode ? {
|
|
2554
|
+
headers: {
|
|
2555
|
+
'X-OAuth-Mode': 'true'
|
|
2556
|
+
}
|
|
2557
|
+
} : undefined);
|
|
2451
2558
|
const user = decodeOne(response, userMapper);
|
|
2452
2559
|
var _response_meta_auth_access_token;
|
|
2453
2560
|
return {
|
|
@@ -2579,10 +2686,11 @@ const subscriptionMapper = {
|
|
|
2579
2686
|
// Avatar mapper
|
|
2580
2687
|
const avatarMapper = {
|
|
2581
2688
|
type: 'user_avatar',
|
|
2582
|
-
map: (
|
|
2583
|
-
|
|
2689
|
+
map: (resource, _included)=>{
|
|
2690
|
+
const data = resource.attributes;
|
|
2691
|
+
var _data_unique_id, _data_user_id, _data_user_unique_id;
|
|
2584
2692
|
return {
|
|
2585
|
-
id:
|
|
2693
|
+
id: resource.id,
|
|
2586
2694
|
uniqueId: String((_data_unique_id = data['unique_id']) != null ? _data_unique_id : ''),
|
|
2587
2695
|
userId: String((_data_user_id = data['user_id']) != null ? _data_user_id : ''),
|
|
2588
2696
|
userUniqueId: String((_data_user_unique_id = data['user_unique_id']) != null ? _data_user_unique_id : ''),
|
|
@@ -2604,13 +2712,14 @@ const avatarMapper = {
|
|
|
2604
2712
|
};
|
|
2605
2713
|
/**
|
|
2606
2714
|
* Create the Avatars service
|
|
2607
|
-
*/ function createAvatarsService(transport) {
|
|
2715
|
+
*/ function createAvatarsService(transport, _config) {
|
|
2608
2716
|
return {
|
|
2609
2717
|
async list (userUniqueId, params) {
|
|
2718
|
+
var _params_filter;
|
|
2610
2719
|
const queryParams = {};
|
|
2611
2720
|
if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
|
|
2612
2721
|
if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
|
|
2613
|
-
if (params == null ? void 0 : params.search) queryParams['search'] = params.search;
|
|
2722
|
+
if (params == null ? void 0 : (_params_filter = params.filter) == null ? void 0 : _params_filter['search']) queryParams['search'] = String(params.filter['search']);
|
|
2614
2723
|
const response = await transport.get(`/users/${userUniqueId}/avatars`, {
|
|
2615
2724
|
params: queryParams
|
|
2616
2725
|
});
|
|
@@ -2698,10 +2807,11 @@ const avatarMapper = {
|
|
|
2698
2807
|
// Tenant user mapper
|
|
2699
2808
|
const tenantUserMapper = {
|
|
2700
2809
|
type: 'tenant_user',
|
|
2701
|
-
map: (
|
|
2702
|
-
|
|
2810
|
+
map: (resource, _included)=>{
|
|
2811
|
+
const data = resource.attributes;
|
|
2812
|
+
var _data_unique_id, _data_user_unique_id, _data_user_id, _data_user_name, _data_user_email, _data_tenant_id, _data_tenant_unique_id, _data_tenant_access_key, _data_tenant_url_id;
|
|
2703
2813
|
return {
|
|
2704
|
-
id:
|
|
2814
|
+
id: resource.id,
|
|
2705
2815
|
uniqueId: String((_data_unique_id = data['unique_id']) != null ? _data_unique_id : ''),
|
|
2706
2816
|
userUniqueId: String((_data_user_unique_id = data['user_unique_id']) != null ? _data_user_unique_id : ''),
|
|
2707
2817
|
userId: String((_data_user_id = data['user_id']) != null ? _data_user_id : ''),
|
|
@@ -2728,13 +2838,14 @@ const tenantUserMapper = {
|
|
|
2728
2838
|
};
|
|
2729
2839
|
/**
|
|
2730
2840
|
* Create the Tenants service
|
|
2731
|
-
*/ function createTenantsService(transport) {
|
|
2841
|
+
*/ function createTenantsService(transport, _config) {
|
|
2732
2842
|
return {
|
|
2733
2843
|
async listChildren (params) {
|
|
2844
|
+
var _params_filter;
|
|
2734
2845
|
const queryParams = {};
|
|
2735
2846
|
if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
|
|
2736
2847
|
if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
|
|
2737
|
-
if (params == null ? void 0 : params.search) queryParams['search'] = params.search;
|
|
2848
|
+
if (params == null ? void 0 : (_params_filter = params.filter) == null ? void 0 : _params_filter['search']) queryParams['search'] = String(params.filter['search']);
|
|
2738
2849
|
const response = await transport.get('/auth/tenant/children', {
|
|
2739
2850
|
params: queryParams
|
|
2740
2851
|
});
|
|
@@ -3099,6 +3210,7 @@ const tenantUserMapper = {
|
|
|
3099
3210
|
roles: createRolesService(transport),
|
|
3100
3211
|
permissions: createPermissionsService(transport),
|
|
3101
3212
|
apiKeys: createApiKeysService(transport),
|
|
3213
|
+
serviceTokens: createServiceTokensService(transport),
|
|
3102
3214
|
mfa: createMfaService(transport),
|
|
3103
3215
|
oauth: createOAuthService(transport),
|
|
3104
3216
|
avatars: createAvatarsService(transport),
|
|
@@ -3144,6 +3256,7 @@ const tenantUserMapper = {
|
|
|
3144
3256
|
'CompanyKey',
|
|
3145
3257
|
'Tenant',
|
|
3146
3258
|
'ApiKey',
|
|
3259
|
+
'ServiceToken',
|
|
3147
3260
|
'App',
|
|
3148
3261
|
'Block',
|
|
3149
3262
|
'Service',
|
|
@@ -3166,4 +3279,4 @@ const tenantUserMapper = {
|
|
|
3166
3279
|
]
|
|
3167
3280
|
};
|
|
3168
3281
|
|
|
3169
|
-
export { apiKeyMapper, apiKeyWithSecretMapper, authenticationBlockMetadata, companyBlockMapper, companyDetailMapper, companyKeyMapper, companyMapper, createAuthenticationBlock, permissionMapper, roleMapper, tenantMapper, userAvatarMapper, userMapper, userProfileMapper };
|
|
3282
|
+
export { apiKeyMapper, apiKeyWithSecretMapper, authenticationBlockMetadata, companyBlockMapper, companyDetailMapper, companyKeyMapper, companyMapper, createAuthenticationBlock, permissionMapper, roleMapper, serviceTokenMapper, serviceTokenWithJwtMapper, tenantMapper, userAvatarMapper, userMapper, userProfileMapper };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createAuthenticationBlock, type AuthenticationBlock, type AuthenticationBlockConfig, authenticationBlockMetadata, } from './lib/authentication.block.js';
|
|
2
|
-
export { type User, type Role, type Permission, type UserAvatar, type UserProfile, type Company, type CompanyDetail, type CompanyBlock, type CompanyKey, type Tenant, type SignInRequest, type SignInResponse, type SignUpRequest, type SignUpResponse, type PasswordResetRequest, type PasswordUpdateRequest, type TokenValidationResponse, type RefreshTokenRequest, type RefreshTokenResponse, type OAuthSignInRequest, type MagicLinkRequest, type MagicLinkVerifyRequest, type MfaSetupResponse, type MfaVerifyRequest, type InvitationRequest, type AcceptInvitationRequest, type ResendConfirmationRequest, type ValidateEmailRequest, type ValidateEmailResponse, type ValidateDocumentRequest, type ValidateDocumentResponse, type AuthHeaders, type ApiKey, type ApiKeyWithSecret, type CreateApiKeyRequest, type UpdateApiKeyRequest, type RevokeApiKeyRequest, type MfaSetupResponseFull, type MfaEnableRequest, type MfaDisableRequest, type MfaVerifyRequestFull, type MfaStatusResponse, type MfaVerificationResponse, type MfaOperationResponse, type OAuthSocialLoginRequest, type TenantLoginRequest, type TokenIntrospectionResponse, type TokenRevokeRequest, type TokenRevokeAllRequest, type TokenRevokeResponse, type TenantContextCreateRequest, type TenantInfo, type TenantContextResponse, type TenantContextRevokeRequest, type TenantContextAuditEntry, type UserProfileFull, type ProfileRequest, type UpdateEmailRequest, type UserDeviceFull, type AddDeviceRequest, type UserSearchRequest, type AddUserSubscriptionRequest, type AccountRecoveryRequest, type AccountRecoveryResponse, type CompleteRecoveryRequest, type UserAvatarFull, type CreateAvatarRequest, type AvatarPresignResponse, type MultipartPresignRequest, type MultipartPresignResponse, type MultipartCompleteRequest, type MultipartCompleteResponse, type TenantUserFull, type CreateTenantUserRequest, type ValidateTenantCodeRequest, type ValidateTenantCodeResponse, type SearchTenantRequest, type UpdateTenantUserOnboardingRequest, type UpdateTenantUserSalesRequest, type ResendInvitationRequest, type App, type Block, type Service, type CreateAppRequest, type UpdateAppRequest, type SubscriptionModel, type UserSubscription, type CompanySubscription, type Country, type State, type County, type City, type Currency, type Guest, type MagicLink, type RefreshToken, type UserDevice, type TenantUser, type MailTemplate, type CreateMagicLinkRequest, type RegisterDeviceRequest, type JsonWebKey, type JwksResponse, type RsaKey, type CreateRsaKeyRequest, type RotateRsaKeyRequest, type OidcDiscovery, type OidcAuthorizeRequest, type OidcTokenRequest, type OidcTokenResponse, type OidcUserInfo, } from './lib/types/index.js';
|
|
3
|
-
export { type AuthService, type UsersService, type RolesService, type ApiKeysService, type UpdateUserRequest, type UpdateProfileRequest, type CreateRoleRequest, type UpdateRoleRequest, type ApiKeyUsageStats, type MfaService, type OAuthService, type AvatarsService, type TenantsService, type PermissionsService, type CreatePermissionRequest, type UpdatePermissionRequest, type AppsService, type BlocksService, type ServicesRegistryService, type SubscriptionModelsService, type UserSubscriptionsService, type CompanySubscriptionsService, type SubscribeRequest, type CountriesService, type StatesService, type CountiesService, type CitiesService, type CurrenciesService, type GuestsService, type MagicLinksService, type RefreshTokensService, type UserDevicesService, type TenantUsersService, type MailTemplatesService, type JwksService, type AdminRsaKeysService, type OidcService, } from './lib/services/index.js';
|
|
4
|
-
export { userMapper, roleMapper, permissionMapper, userAvatarMapper, userProfileMapper, companyMapper, companyDetailMapper, companyBlockMapper, companyKeyMapper, tenantMapper, apiKeyMapper, apiKeyWithSecretMapper, } from './lib/mappers/index.js';
|
|
2
|
+
export { type User, type Role, type Permission, type UserAvatar, type UserProfile, type Company, type CompanyDetail, type CompanyBlock, type CompanyKey, type Tenant, type SignInRequest, type SignInResponse, type SignUpRequest, type SignUpResponse, type PasswordResetRequest, type PasswordUpdateRequest, type TokenValidationResponse, type RefreshTokenRequest, type RefreshTokenResponse, type OAuthSignInRequest, type MagicLinkRequest, type MagicLinkVerifyRequest, type MfaSetupResponse, type MfaVerifyRequest, type InvitationRequest, type AcceptInvitationRequest, type ResendConfirmationRequest, type ValidateEmailRequest, type ValidateEmailResponse, type ValidateDocumentRequest, type ValidateDocumentResponse, type AuthHeaders, type ApiKey, type ApiKeyWithSecret, type CreateApiKeyRequest, type UpdateApiKeyRequest, type RevokeApiKeyRequest, type ServiceToken, type ServiceTokenWithJwt, type ServiceTokenCategory, type CreateServiceTokenRequest, type MfaSetupResponseFull, type MfaEnableRequest, type MfaDisableRequest, type MfaVerifyRequestFull, type MfaStatusResponse, type MfaVerificationResponse, type MfaOperationResponse, type OAuthSocialLoginRequest, type TenantLoginRequest, type TokenIntrospectionResponse, type TokenRevokeRequest, type TokenRevokeAllRequest, type TokenRevokeResponse, type TenantContextCreateRequest, type TenantInfo, type TenantContextResponse, type TenantContextRevokeRequest, type TenantContextAuditEntry, type UserProfileFull, type ProfileRequest, type UpdateEmailRequest, type UserDeviceFull, type AddDeviceRequest, type UserSearchRequest, type AddUserSubscriptionRequest, type AccountRecoveryRequest, type AccountRecoveryResponse, type CompleteRecoveryRequest, type UserAvatarFull, type CreateAvatarRequest, type AvatarPresignResponse, type MultipartPresignRequest, type MultipartPresignResponse, type MultipartCompleteRequest, type MultipartCompleteResponse, type TenantUserFull, type CreateTenantUserRequest, type ValidateTenantCodeRequest, type ValidateTenantCodeResponse, type SearchTenantRequest, type UpdateTenantUserOnboardingRequest, type UpdateTenantUserSalesRequest, type ResendInvitationRequest, type App, type Block, type Service, type CreateAppRequest, type UpdateAppRequest, type SubscriptionModel, type UserSubscription, type CompanySubscription, type Country, type State, type County, type City, type Currency, type Guest, type MagicLink, type RefreshToken, type UserDevice, type TenantUser, type MailTemplate, type CreateMagicLinkRequest, type RegisterDeviceRequest, type JsonWebKey, type JwksResponse, type RsaKey, type CreateRsaKeyRequest, type RotateRsaKeyRequest, type OidcDiscovery, type OidcAuthorizeRequest, type OidcTokenRequest, type OidcTokenResponse, type OidcUserInfo, } from './lib/types/index.js';
|
|
3
|
+
export { type AuthService, type UsersService, type RolesService, type ApiKeysService, type UpdateUserRequest, type UpdateProfileRequest, type CreateRoleRequest, type UpdateRoleRequest, type ApiKeyUsageStats, type ServiceTokensService, type MfaService, type OAuthService, type AvatarsService, type TenantsService, type PermissionsService, type CreatePermissionRequest, type UpdatePermissionRequest, type AppsService, type BlocksService, type ServicesRegistryService, type SubscriptionModelsService, type UserSubscriptionsService, type CompanySubscriptionsService, type SubscribeRequest, type CountriesService, type StatesService, type CountiesService, type CitiesService, type CurrenciesService, type GuestsService, type MagicLinksService, type RefreshTokensService, type UserDevicesService, type TenantUsersService, type MailTemplatesService, type JwksService, type AdminRsaKeysService, type OidcService, } from './lib/services/index.js';
|
|
4
|
+
export { userMapper, roleMapper, permissionMapper, userAvatarMapper, userProfileMapper, companyMapper, companyDetailMapper, companyBlockMapper, companyKeyMapper, tenantMapper, apiKeyMapper, apiKeyWithSecretMapper, serviceTokenMapper, serviceTokenWithJwtMapper, } from './lib/mappers/index.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,WAAW,EAGhB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,MAAM,EAGX,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,kBAAk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a,EACb,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { type UsersService } from './services/users.service.js';
|
|
|
4
4
|
import { type RolesService } from './services/roles.service.js';
|
|
5
5
|
import { type PermissionsService } from './services/permissions.service.js';
|
|
6
6
|
import { type ApiKeysService } from './services/api-keys.service.js';
|
|
7
|
+
import { type ServiceTokensService } from './services/service-tokens.service.js';
|
|
7
8
|
import { type AppsService, type BlocksService, type ServicesRegistryService } from './services/apps.service.js';
|
|
8
9
|
import { type SubscriptionModelsService, type UserSubscriptionsService, type CompanySubscriptionsService } from './services/subscriptions.service.js';
|
|
9
10
|
import { type CountriesService, type StatesService, type CountiesService, type CitiesService, type CurrenciesService } from './services/geography.service.js';
|
|
@@ -18,10 +19,6 @@ import { type OidcService } from './services/oidc.service.js';
|
|
|
18
19
|
* Configuration for the Authentication block
|
|
19
20
|
*/
|
|
20
21
|
export interface AuthenticationBlockConfig extends BlockConfig {
|
|
21
|
-
/** API Key for authenticating with 23blocks services */
|
|
22
|
-
apiKey: string;
|
|
23
|
-
/** Tenant ID (optional, for multi-tenant setups) */
|
|
24
|
-
tenantId?: string;
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
27
24
|
* Authentication block interface
|
|
@@ -47,6 +44,10 @@ export interface AuthenticationBlock {
|
|
|
47
44
|
* API key management
|
|
48
45
|
*/
|
|
49
46
|
apiKeys: ApiKeysService;
|
|
47
|
+
/**
|
|
48
|
+
* Service token management for machine-to-machine authentication
|
|
49
|
+
*/
|
|
50
|
+
serviceTokens: ServiceTokensService;
|
|
50
51
|
/**
|
|
51
52
|
* Multi-factor authentication
|
|
52
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.block.d.ts","sourceRoot":"","sources":["../../../src/lib/authentication.block.ts"],"names":[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E,iBAAiB,CAAC;IAE9B;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,oBAAoB,CAAC;IAEpC;;OAEG;IACH,WAAW,EAAE,kBAAkB,CAAC;IAEhC;;OAEG;IACH,WAAW,EAAE,kBAAkB,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,oBAAoB,CAAC;IAEpC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,YAAY,EAAE,mBAAmB,CAAC;IAElC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB,uCAAuC;IACvC,MAAM,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,yBAAyB,GAChC,mBAAmB,CAkCrB;AAED;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;CAavC,CAAC"}
|
|
@@ -5,5 +5,6 @@ export { appMapper, blockMapper, serviceMapper } from './app.mapper.js';
|
|
|
5
5
|
export { subscriptionModelMapper, userSubscriptionMapper, companySubscriptionMapper } from './subscription.mapper.js';
|
|
6
6
|
export { countryMapper, stateMapper, countyMapper, cityMapper, currencyMapper } from './geography.mapper.js';
|
|
7
7
|
export { guestMapper, magicLinkMapper, refreshTokenMapper, userDeviceMapper, tenantUserMapper, mailTemplateMapper, } from './guest.mapper.js';
|
|
8
|
+
export { serviceTokenMapper, serviceTokenWithJwtMapper } from './service-token.mapper.js';
|
|
8
9
|
export { parseString, parseDate, parseBoolean, parseNumber, parseStringArray } from './utils.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names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,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAGtH,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG7G,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAG1F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { ServiceToken, ServiceTokenWithJwt } from '../types/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Service Token mapper
|
|
5
|
+
*/
|
|
6
|
+
export declare const serviceTokenMapper: ResourceMapper<ServiceToken>;
|
|
7
|
+
/**
|
|
8
|
+
* Service Token with JWT mapper (only used on create/regenerate)
|
|
9
|
+
*/
|
|
10
|
+
export declare const serviceTokenWithJwtMapper: ResourceMapper<ServiceTokenWithJwt>;
|
|
11
|
+
//# sourceMappingURL=service-token.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-token.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/service-token.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAgC,MAAM,yBAAyB,CAAC;AAC5F,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CAyB3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,mBAAmB,CAYzE,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parse a string value, returning null for empty/undefined
|
|
3
3
|
*/
|
|
4
|
-
export declare function parseString(value: unknown): string
|
|
4
|
+
export declare function parseString(value: unknown): string;
|
|
5
5
|
/**
|
|
6
6
|
* Parse a date value
|
|
7
7
|
*/
|
|
8
|
-
export declare function parseDate(value: unknown): Date
|
|
8
|
+
export declare function parseDate(value: unknown): Date;
|
|
9
9
|
/**
|
|
10
10
|
* Parse a boolean value
|
|
11
11
|
*/
|
|
@@ -17,5 +17,5 @@ export declare function parseStringArray(value: unknown): string[];
|
|
|
17
17
|
/**
|
|
18
18
|
* Parse a number value
|
|
19
19
|
*/
|
|
20
|
-
export declare function parseNumber(value: unknown): number
|
|
20
|
+
export declare function parseNumber(value: unknown): number;
|
|
21
21
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMlD;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAe9C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAQpD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAKzD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMlD"}
|
|
@@ -55,5 +55,5 @@ export interface AvatarsService {
|
|
|
55
55
|
/**
|
|
56
56
|
* Create the Avatars service
|
|
57
57
|
*/
|
|
58
|
-
export declare function createAvatarsService(transport: Transport): AvatarsService;
|
|
58
|
+
export declare function createAvatarsService(transport: Transport, _config?: unknown): AvatarsService;
|
|
59
59
|
//# sourceMappingURL=avatars.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatars.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/avatars.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"avatars.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/avatars.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AA6BtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;IAErF;;;;OAIG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEnD;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEpF;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAE7F;;OAEG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5C;;;;OAIG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAEtF;;;;OAIG;IACH,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAE5G;;;;OAIG;IACH,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChH;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,cAAc,CAgH5F"}
|
|
@@ -7,6 +7,7 @@ export { createAppsService, createBlocksService, createServicesRegistryService,
|
|
|
7
7
|
export { createSubscriptionModelsService, createUserSubscriptionsService, createCompanySubscriptionsService, type SubscriptionModelsService, type UserSubscriptionsService, type CompanySubscriptionsService, type SubscribeRequest, } from './subscriptions.service.js';
|
|
8
8
|
export { createCountriesService, createStatesService, createCountiesService, createCitiesService, createCurrenciesService, type CountriesService, type StatesService, type CountiesService, type CitiesService, type CurrenciesService, } from './geography.service.js';
|
|
9
9
|
export { createGuestsService, createMagicLinksService, createRefreshTokensService, createUserDevicesService, createTenantUsersService, createMailTemplatesService, type GuestsService, type MagicLinksService, type RefreshTokensService, type UserDevicesService, type TenantUsersService, type MailTemplatesService, } from './guests.service.js';
|
|
10
|
+
export { createServiceTokensService, type ServiceTokensService } from './service-tokens.service.js';
|
|
10
11
|
export { createMfaService, type MfaService } from './mfa.service.js';
|
|
11
12
|
export { createOAuthService, type OAuthService } from './oauth.service.js';
|
|
12
13
|
export { createAvatarsService, type AvatarsService } from './avatars.service.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9H,OAAO,EAAE,kBAAkB,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3H,OAAO,EAAE,wBAAwB,EAAE,KAAK,kBAAkB,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACzJ,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzG,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,uBAAuB,GAC7B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,iCAAiC,EACjC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,GACtB,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK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CAAC;AAGjF,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,WAAW,EAChB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -41,5 +41,5 @@ export interface MfaService {
|
|
|
41
41
|
/**
|
|
42
42
|
* Create the MFA service
|
|
43
43
|
*/
|
|
44
|
-
export declare function createMfaService(transport: Transport): MfaService;
|
|
44
|
+
export declare function createMfaService(transport: Transport, _config?: unknown): MfaService;
|
|
45
45
|
//# sourceMappingURL=mfa.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfa.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/mfa.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjF;;;;OAIG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEvF;;;;OAIG;IACH,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEzF;;;;;OAKG;IACH,MAAM,CAAC,YAAY,EAAE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G,UAAU,CAwGpF"}
|
|
@@ -74,5 +74,5 @@ export interface OAuthService {
|
|
|
74
74
|
/**
|
|
75
75
|
* Create the OAuth service
|
|
76
76
|
*/
|
|
77
|
-
export declare function createOAuthService(transport: Transport): OAuthService;
|
|
77
|
+
export declare function createOAuthService(transport: Transport, _config?: unknown): OAuthService;
|
|
78
78
|
//# sourceMappingURL=oauth.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/oauth.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"oauth.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/oauth.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,0BAA0B,EAC1B,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAG3B;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEzE;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAEvE;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CA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