@cloudparse/up-miniapps-sdk 0.6.8 β 0.7.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.
- package/README.md +15 -3
- package/dist/index.browser.min.js +104 -101
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +955 -989
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -3
- package/dist/index.d.ts +71 -3
- package/dist/index.js +922 -955
- package/dist/index.js.map +1 -1
- package/dist/style.css +96 -18
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm i @cloudparse/up-miniapps-sdk
|
|
|
13
13
|
### Initialization
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {sdk} from 'up-miniapps-sdk';
|
|
16
|
+
import {sdk} from '@cloudparse/up-miniapps-sdk';
|
|
17
17
|
|
|
18
18
|
// Or if using UMD/CDN
|
|
19
19
|
// const sdk = window.UPSDK;
|
|
@@ -128,7 +128,7 @@ Bypass CORS or use host-level authentication by routing requests through the hos
|
|
|
128
128
|
</details>
|
|
129
129
|
|
|
130
130
|
<details>
|
|
131
|
-
<summary><b>π Fidelity &
|
|
131
|
+
<summary><b>π Fidelity & Points</b></summary>
|
|
132
132
|
|
|
133
133
|
Integration with the Fidelity program.
|
|
134
134
|
|
|
@@ -139,6 +139,18 @@ Integration with the Fidelity program.
|
|
|
139
139
|
|
|
140
140
|
</details>
|
|
141
141
|
|
|
142
|
+
<details>
|
|
143
|
+
<summary><b>π Achievements</b></summary>
|
|
144
|
+
|
|
145
|
+
Read-only progress on the Hub's direct-count Achievement system (a mini-app's own backend
|
|
146
|
+
reports progress server-to-server via the Hub's M2M endpoint β this SDK only reads current
|
|
147
|
+
state, e.g. to render a progress bar; there is no "claim" step or write method here).
|
|
148
|
+
|
|
149
|
+
- `sdk.achievement(slug: string): Promise<Achievement>` - Fetches a single Achievement's current progress by slug.
|
|
150
|
+
- `sdk.achievements(): Promise<Achievement[]>` - Fetches every Achievement (with current progress) visible to this mini-app.
|
|
151
|
+
|
|
152
|
+
</details>
|
|
153
|
+
|
|
142
154
|
<details>
|
|
143
155
|
<summary><b>πΊοΈ Map & Navigation</b></summary>
|
|
144
156
|
|
|
@@ -303,7 +315,7 @@ npm run build
|
|
|
303
315
|
|
|
304
316
|
- `src/bridge.ts`: Communication layer with the Native Shell.
|
|
305
317
|
- `src/sdk.ts`: Main SDK entry point and module composition.
|
|
306
|
-
- `src/types.ts`: TypeScript definitions.
|
|
318
|
+
- `src/types/types.ts`: TypeScript definitions.
|
|
307
319
|
|
|
308
320
|
## License
|
|
309
321
|
|