@edgedev/create-edge-app 1.0.38 → 1.0.39

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 CHANGED
@@ -7,4 +7,30 @@ npm install -g --ignore-scripts @edgedev/create-edge-app
7
7
 
8
8
  #Then run this whenever you want to create a new app:
9
9
  npx @edgedev/create-edge-app yourappname
10
+
11
+ #Besides other insturtions for deep links also this:
12
+ Need to add this to Info.plist:
13
+
14
+ <key>CFBundleURLTypes</key>
15
+ <array>
16
+ <dict>
17
+ <key>CFBundleURLSchemes</key>
18
+ <array>
19
+ <string>com.edgemarketingdesign.offcall</string>
20
+ </array>
21
+ <key>CFBundleURLName</key>
22
+ <string>Offcall App URL</string>
23
+ <key>CFBundleURLTypes</key>
24
+ <array>
25
+ <dict>
26
+ <key>CFBundleURLSchemes</key>
27
+ <array>
28
+ <string>*</string>
29
+ </array>
30
+ <key>CFBundleURLName</key>
31
+ <string>Wildcard</string>
32
+ </dict>
33
+ </array>
34
+ </dict>
35
+ </array>
10
36
  ```
package/app.vue CHANGED
@@ -1,4 +1,5 @@
1
1
  <script setup>
2
+ // TODO : ADD CODE FOR NOTIFICATIONS AND DEEP LINKING
2
3
  import { useTheme } from 'vuetify'
3
4
 
4
5
  const vueTheme = useTheme()
@@ -82,6 +82,12 @@ exports.webhook = onRequest(async (request, response) => {
82
82
  if (session.customer) {
83
83
  await docRef.update({ stripeCustomerId: session.customer })
84
84
  }
85
+ if (session?.lines?.data[0]?.plan?.product) {
86
+ await docRef.update({ stripeProductId: session.lines.data[0].plan.product })
87
+ }
88
+ if (session?.lines?.data[0]?.price?.id) {
89
+ await docRef.update({ stripePriceId: session.lines.data[0].price.id })
90
+ }
85
91
 
86
92
  if (['customer.subscription.created', 'customer.subscription.updated', 'customer.subscription.deleted'].includes(event.type)) {
87
93
  await docRef.update({ stripeSubscription: session.status })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/create-edge-app",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Create Edge Starter App",
5
5
  "bin": {
6
6
  "create-edge-app": "./bin/cli.js"