@cloudparse/up-miniapps-sdk 0.2.5 → 0.2.6
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/index.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +15 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -56,14 +56,40 @@ interface IUserProfile {
|
|
|
56
56
|
uuid: string;
|
|
57
57
|
/** Full legal name of the user. */
|
|
58
58
|
fullName: string;
|
|
59
|
+
/** First name of the user. */
|
|
60
|
+
firstName: string;
|
|
61
|
+
/** Last name of the user. */
|
|
62
|
+
lastName: string;
|
|
59
63
|
/** Primary email address. */
|
|
60
|
-
email
|
|
64
|
+
email?: string;
|
|
61
65
|
/** Chosen username within the UP ecosystem. */
|
|
62
|
-
username
|
|
66
|
+
username?: string;
|
|
63
67
|
/** ISO country code (e.g., "FR", "US"). */
|
|
64
68
|
countryCode: string;
|
|
65
69
|
/** Phone number without country code. */
|
|
66
70
|
localNumber: string;
|
|
71
|
+
/** Admin status. */
|
|
72
|
+
admin: boolean;
|
|
73
|
+
/** UP points balance. */
|
|
74
|
+
ups: number;
|
|
75
|
+
/** Experience points balance. */
|
|
76
|
+
xp: number;
|
|
77
|
+
/** ISO timestamp of user creation. */
|
|
78
|
+
createdAt: string;
|
|
79
|
+
/** ISO timestamp of last password update. */
|
|
80
|
+
lastPasswordUpdate?: string;
|
|
81
|
+
/** URL to profile picture. */
|
|
82
|
+
avatarUrl?: string;
|
|
83
|
+
/** UUID of profile picture. */
|
|
84
|
+
avatarUuid?: string;
|
|
85
|
+
/** URL to user badge. */
|
|
86
|
+
badgeUrl?: string;
|
|
87
|
+
/** UUID of user badge. */
|
|
88
|
+
badgeUuid?: string;
|
|
89
|
+
/** URL to user profile theme. */
|
|
90
|
+
themeUrl?: string;
|
|
91
|
+
/** UUID of user profile theme. */
|
|
92
|
+
themeUuid?: string;
|
|
67
93
|
}
|
|
68
94
|
/**
|
|
69
95
|
* Geographic location data.
|
package/dist/index.d.ts
CHANGED
|
@@ -56,14 +56,40 @@ interface IUserProfile {
|
|
|
56
56
|
uuid: string;
|
|
57
57
|
/** Full legal name of the user. */
|
|
58
58
|
fullName: string;
|
|
59
|
+
/** First name of the user. */
|
|
60
|
+
firstName: string;
|
|
61
|
+
/** Last name of the user. */
|
|
62
|
+
lastName: string;
|
|
59
63
|
/** Primary email address. */
|
|
60
|
-
email
|
|
64
|
+
email?: string;
|
|
61
65
|
/** Chosen username within the UP ecosystem. */
|
|
62
|
-
username
|
|
66
|
+
username?: string;
|
|
63
67
|
/** ISO country code (e.g., "FR", "US"). */
|
|
64
68
|
countryCode: string;
|
|
65
69
|
/** Phone number without country code. */
|
|
66
70
|
localNumber: string;
|
|
71
|
+
/** Admin status. */
|
|
72
|
+
admin: boolean;
|
|
73
|
+
/** UP points balance. */
|
|
74
|
+
ups: number;
|
|
75
|
+
/** Experience points balance. */
|
|
76
|
+
xp: number;
|
|
77
|
+
/** ISO timestamp of user creation. */
|
|
78
|
+
createdAt: string;
|
|
79
|
+
/** ISO timestamp of last password update. */
|
|
80
|
+
lastPasswordUpdate?: string;
|
|
81
|
+
/** URL to profile picture. */
|
|
82
|
+
avatarUrl?: string;
|
|
83
|
+
/** UUID of profile picture. */
|
|
84
|
+
avatarUuid?: string;
|
|
85
|
+
/** URL to user badge. */
|
|
86
|
+
badgeUrl?: string;
|
|
87
|
+
/** UUID of user badge. */
|
|
88
|
+
badgeUuid?: string;
|
|
89
|
+
/** URL to user profile theme. */
|
|
90
|
+
themeUrl?: string;
|
|
91
|
+
/** UUID of user profile theme. */
|
|
92
|
+
themeUuid?: string;
|
|
67
93
|
}
|
|
68
94
|
/**
|
|
69
95
|
* Geographic location data.
|
package/dist/index.js
CHANGED
|
@@ -2930,7 +2930,7 @@ function renderMap(containerId, props = {}) {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
|
|
2932
2932
|
// package.json
|
|
2933
|
-
var version = "0.2.
|
|
2933
|
+
var version = "0.2.6";
|
|
2934
2934
|
|
|
2935
2935
|
// src/sdk.ts
|
|
2936
2936
|
function deepFreeze(obj) {
|
|
@@ -3485,12 +3485,18 @@ var BridgeMocker = ({
|
|
|
3485
3485
|
name: "Vite Dev (Mock)",
|
|
3486
3486
|
params: {},
|
|
3487
3487
|
profile: {
|
|
3488
|
+
admin: true,
|
|
3488
3489
|
countryCode: "FR",
|
|
3490
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3489
3491
|
email: "caveman@up.app",
|
|
3492
|
+
firstName: "Smart",
|
|
3490
3493
|
fullName: "Smart Caveman",
|
|
3494
|
+
lastName: "Caveman",
|
|
3491
3495
|
localNumber: "0600000000",
|
|
3496
|
+
ups: 100,
|
|
3492
3497
|
username: "smart_caveman",
|
|
3493
|
-
uuid: "mock-user-42"
|
|
3498
|
+
uuid: "mock-user-42",
|
|
3499
|
+
xp: 500
|
|
3494
3500
|
},
|
|
3495
3501
|
success: true,
|
|
3496
3502
|
userData: {},
|
|
@@ -3533,12 +3539,18 @@ var BridgeMocker = ({
|
|
|
3533
3539
|
}
|
|
3534
3540
|
if (type === "GET_USER_PROFILE") {
|
|
3535
3541
|
return Promise.resolve({
|
|
3542
|
+
admin: true,
|
|
3536
3543
|
countryCode: "FR",
|
|
3544
|
+
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3537
3545
|
email: "caveman@up.app",
|
|
3546
|
+
firstName: "Smart",
|
|
3538
3547
|
fullName: "Smart Caveman",
|
|
3548
|
+
lastName: "Caveman",
|
|
3539
3549
|
localNumber: "0600000000",
|
|
3550
|
+
ups: 100,
|
|
3540
3551
|
username: "smart_caveman",
|
|
3541
|
-
uuid: "mock-user-42"
|
|
3552
|
+
uuid: "mock-user-42",
|
|
3553
|
+
xp: 500
|
|
3542
3554
|
});
|
|
3543
3555
|
}
|
|
3544
3556
|
if (type === "GET_PROFILE_PICTURE") {
|