capacitor-event-bird 0.0.23 → 0.0.24

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
@@ -13,13 +13,10 @@ npx cap sync
13
13
 
14
14
  <docgen-index>
15
15
 
16
- * [`echo(...)`](#echo)
17
- * [`logout()`](#logout)
18
16
  * [`signupWithGoogle()`](#signupwithgoogle)
19
17
  * [`waitlistAfterInit()`](#waitlistafterinit)
20
18
  * [`openHelpModal()`](#openhelpmodal)
21
19
  * [`getDeviceId()`](#getdeviceid)
22
- * [`getGoogleData()`](#getgoogledata)
23
20
  * [`getFCMToken(...)`](#getfcmtoken)
24
21
 
25
22
  </docgen-index>
@@ -27,36 +24,14 @@ npx cap sync
27
24
  <docgen-api>
28
25
  <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
29
26
 
30
- ### echo(...)
31
-
32
- ```typescript
33
- echo(options: { value: string; }) => Promise<{ value: string; }>
34
- ```
35
-
36
- | Param | Type |
37
- | ------------- | ------------------------------- |
38
- | **`options`** | <code>{ value: string; }</code> |
39
-
40
- **Returns:** <code>Promise&lt;{ value: string; }&gt;</code>
41
-
42
- --------------------
43
-
44
-
45
- ### logout()
46
-
47
- ```typescript
48
- logout() => Promise<void>
49
- ```
50
-
51
- --------------------
52
-
53
-
54
27
  ### signupWithGoogle()
55
28
 
56
29
  ```typescript
57
- signupWithGoogle() => Promise<void>
30
+ signupWithGoogle() => Promise<{ displayName: string; email: string; firebaseToken: string; }>
58
31
  ```
59
32
 
33
+ **Returns:** <code>Promise&lt;{ displayName: string; email: string; firebaseToken: string; }&gt;</code>
34
+
60
35
  --------------------
61
36
 
62
37
 
@@ -89,17 +64,6 @@ getDeviceId() => Promise<{ value: string; }>
89
64
  --------------------
90
65
 
91
66
 
92
- ### getGoogleData()
93
-
94
- ```typescript
95
- getGoogleData() => Promise<{ displayName: string; email: string; firebaseToken: string; }>
96
- ```
97
-
98
- **Returns:** <code>Promise&lt;{ displayName: string; email: string; firebaseToken: string; }&gt;</code>
99
-
100
- --------------------
101
-
102
-
103
67
  ### getFCMToken(...)
104
68
 
105
69
  ```typescript
package/dist/docs.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorEventBirdPlugin",
4
+ "slug": "capacitoreventbirdplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "signupWithGoogle",
10
+ "signature": "() => Promise<{ displayName: string; email: string; firebaseToken: string; }>",
11
+ "parameters": [],
12
+ "returns": "Promise<{ displayName: string; email: string; firebaseToken: string; }>",
13
+ "tags": [],
14
+ "docs": "",
15
+ "complexTypes": [],
16
+ "slug": "signupwithgoogle"
17
+ },
18
+ {
19
+ "name": "waitlistAfterInit",
20
+ "signature": "() => Promise<void>",
21
+ "parameters": [],
22
+ "returns": "Promise<void>",
23
+ "tags": [],
24
+ "docs": "",
25
+ "complexTypes": [],
26
+ "slug": "waitlistafterinit"
27
+ },
28
+ {
29
+ "name": "openHelpModal",
30
+ "signature": "() => Promise<void>",
31
+ "parameters": [],
32
+ "returns": "Promise<void>",
33
+ "tags": [],
34
+ "docs": "",
35
+ "complexTypes": [],
36
+ "slug": "openhelpmodal"
37
+ },
38
+ {
39
+ "name": "getDeviceId",
40
+ "signature": "() => Promise<{ value: string; }>",
41
+ "parameters": [],
42
+ "returns": "Promise<{ value: string; }>",
43
+ "tags": [],
44
+ "docs": "",
45
+ "complexTypes": [],
46
+ "slug": "getdeviceid"
47
+ },
48
+ {
49
+ "name": "getFCMToken",
50
+ "signature": "(options: { value: string; }) => Promise<{ value: string; }>",
51
+ "parameters": [
52
+ {
53
+ "name": "options",
54
+ "docs": "",
55
+ "type": "{ value: string; }"
56
+ }
57
+ ],
58
+ "returns": "Promise<{ value: string; }>",
59
+ "tags": [],
60
+ "docs": "",
61
+ "complexTypes": [],
62
+ "slug": "getfcmtoken"
63
+ }
64
+ ],
65
+ "properties": []
66
+ },
67
+ "interfaces": [],
68
+ "enums": [],
69
+ "typeAliases": [],
70
+ "pluginConfigs": []
71
+ }
@@ -0,0 +1,17 @@
1
+ export interface CapacitorEventBirdPlugin {
2
+ signupWithGoogle(): Promise<{
3
+ displayName: string;
4
+ email: string;
5
+ firebaseToken: string;
6
+ }>;
7
+ waitlistAfterInit(): Promise<void>;
8
+ openHelpModal(): Promise<void>;
9
+ getDeviceId(): Promise<{
10
+ value: string;
11
+ }>;
12
+ getFCMToken(options: {
13
+ value: string;
14
+ }): Promise<{
15
+ value: string;
16
+ }>;
17
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface CapacitorEventBirdPlugin {\n signupWithGoogle(): Promise<{ displayName: string; email: string, firebaseToken: string }>;\n waitlistAfterInit(): Promise<void>;\n openHelpModal(): Promise<void>;\n getDeviceId(): Promise<{ value: string }>;\n getFCMToken(options: { value: string }): Promise<{ value: string }>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { CapacitorEventBirdPlugin } from './definitions';
2
+ declare const CapacitorEventBird: CapacitorEventBirdPlugin;
3
+ export * from './definitions';
4
+ export { CapacitorEventBird };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const CapacitorEventBird = registerPlugin('CapacitorEventBird', {
3
+ web: () => import('./web').then((m) => new m.CapacitorEventBirdWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { CapacitorEventBird };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,kBAAkB,GAAG,cAAc,CAA2B,oBAAoB,EAAE;IACxF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC;CACtE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorEventBirdPlugin } from './definitions';\n\nconst CapacitorEventBird = registerPlugin<CapacitorEventBirdPlugin>('CapacitorEventBird', {\n web: () => import('./web').then((m) => new m.CapacitorEventBirdWeb()),\n});\n\nexport * from './definitions';\nexport { CapacitorEventBird };\n"]}
@@ -0,0 +1,19 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { CapacitorEventBirdPlugin } from './definitions';
3
+ export declare class CapacitorEventBirdWeb extends WebPlugin implements CapacitorEventBirdPlugin {
4
+ getFCMToken(options: {
5
+ value: string;
6
+ }): Promise<{
7
+ value: string;
8
+ }>;
9
+ signupWithGoogle(): Promise<{
10
+ displayName: string;
11
+ email: string;
12
+ firebaseToken: string;
13
+ }>;
14
+ openHelpModal(): Promise<void>;
15
+ waitlistAfterInit(): Promise<void>;
16
+ getDeviceId(): Promise<{
17
+ value: string;
18
+ }>;
19
+ }
@@ -0,0 +1,25 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class CapacitorEventBirdWeb extends WebPlugin {
3
+ async getFCMToken(options) {
4
+ console.log('getFCMToken', options);
5
+ return options;
6
+ }
7
+ async signupWithGoogle() {
8
+ console.log('signupWithGoogle in web isnt really needed it already works');
9
+ return {
10
+ displayName: '',
11
+ email: '',
12
+ firebaseToken: '',
13
+ };
14
+ }
15
+ async openHelpModal() {
16
+ console.log('openHelpModal in web isnt really needed it already works');
17
+ }
18
+ async waitlistAfterInit() {
19
+ console.log('waitlistAfterInit in web isnt really needed it already works');
20
+ }
21
+ async getDeviceId() {
22
+ return { value: 'ios device id is not needed for web' };
23
+ }
24
+ }
25
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,KAAK,CAAC,WAAW,CAAC,OAA0B;QAC1C,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACpC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;QAC3E,OAAO;YACL,WAAW,EAAE,EAAE;YACf,KAAK,EAAE,EAAE;YACT,aAAa,EAAE,EAAE;SAClB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa;QACjB,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,WAAW;QACf,OAAO,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;IAC1D,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { CapacitorEventBirdPlugin } from './definitions';\n\nexport class CapacitorEventBirdWeb extends WebPlugin implements CapacitorEventBirdPlugin {\n async getFCMToken(options: { value: string }): Promise<{ value: string }> {\n console.log('getFCMToken', options);\n return options;\n }\n\n async signupWithGoogle(): Promise<{ displayName: string; email: string, firebaseToken: string }> {\n console.log('signupWithGoogle in web isnt really needed it already works');\n return {\n displayName: '',\n email: '',\n firebaseToken: '',\n };\n }\n\n async openHelpModal(): Promise<void> {\n console.log('openHelpModal in web isnt really needed it already works');\n }\n\n async waitlistAfterInit(): Promise<void> {\n console.log('waitlistAfterInit in web isnt really needed it already works');\n }\n\n async getDeviceId(): Promise<{ value: string }> {\n return { value: 'ios device id is not needed for web' };\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-event-bird",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "returns events back to native env",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",