@artisan-commerce/types 0.13.0-canary.0 → 0.13.0-canary.1

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 CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.13.0-canary.1](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.13.0-canary.0...@artisan-commerce/types@0.13.0-canary.1) (2021-03-19)
7
+
8
+
9
+ ### Features
10
+
11
+ * **types:** add init-rn types ([e4f44c4](https://bitbucket.org/tradesystem/artisan_monorepo/commit/e4f44c484e8d223a1716daf4cf0ec098dfde620a))
12
+
13
+
14
+
6
15
  ## [0.13.0-canary.0](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/types@0.12.2-canary.2...@artisan-commerce/types@0.13.0-canary.0) (2021-03-18)
7
16
 
8
17
 
@@ -1,21 +1,53 @@
1
1
  import firebase from "firebase";
2
+ export declare type ArtisanApp = ArtisanAppWeb | ArtisanAppRN;
2
3
  /**
3
- * The ArtisanApp orchestrate the connections of the app with the DB, server and its settings.
4
+ * The ArtisanAppWeb orchestrate the connections of the app with the DB, server and its settings.
4
5
  *
5
- * @interface ArtisanApp
6
+ * @interface ArtisanAppWeb
6
7
  * @author Luis Eduardo Andrade
7
8
  * @since 0.5.14
8
9
  * @property {string} name app's name
9
10
  * @property {string} apiURL artisan's account API URL
10
11
  * @property {ArtisanSettings} settings artisan app settings configuration
11
12
  */
12
- export interface ArtisanApp {
13
+ export interface ArtisanAppWeb {
13
14
  name: firebase.app.App["name"];
14
15
  apiURL: string;
15
16
  settings: ArtisanSettings;
16
17
  __internals__: firebase.app.App;
17
18
  __instance__: typeof firebase;
18
19
  }
20
+ /**
21
+ * The ArtisanAppRN orchestrate the connections of the app with the DB, server and its settings.
22
+ *
23
+ * @interface ArtisanAppRN
24
+ * @author John Arias
25
+ * @since 0.5.14
26
+ * @property {string} name app's name
27
+ * @property {string} apiURL artisan's account API URL
28
+ * @property {ArtisanSettings} settings artisan app settings configuration
29
+ */
30
+ export interface ArtisanAppRN {
31
+ apiURL: string;
32
+ __internals__: RNFirebaseInstance;
33
+ __instance__: RNFirebaseInstance;
34
+ settings: ArtisanSettings;
35
+ name: string;
36
+ }
37
+ /**
38
+ * Settings to configure the Firabse Instance.
39
+ *
40
+ * @interface RNFirebaseInstance
41
+ * @author John Arias
42
+ * @since 0.5.14
43
+ * @property {aut} auth auth package from react-native-auth
44
+ * @property {firestore} firestore firestore package from react-native-auth
45
+ * @property {ArtisanSettings} settings artisan app settings configuration
46
+ */
47
+ export interface RNFirebaseInstance {
48
+ auth: any;
49
+ firestore: any;
50
+ }
19
51
  /**
20
52
  * Settings to configure the Artisan app.
21
53
  *
@@ -37,6 +69,10 @@ export interface ArtisanSettings {
37
69
  appId?: string;
38
70
  authDomain: string;
39
71
  }
72
+ export interface ArtisanSettingsRN {
73
+ platform: ArtisanPlatform;
74
+ accountId?: number;
75
+ }
40
76
  /**
41
77
  * Artisan app's allowed platforms to run on.
42
78
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisan's types and interfaces library",
4
- "version": "0.13.0-canary.0",
4
+ "version": "0.13.0-canary.1",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
7
7
  "files": [
@@ -44,5 +44,5 @@
44
44
  "typescript": "^3.9.7",
45
45
  "webpack-bundle-analyzer": "^3.9.0"
46
46
  },
47
- "gitHead": "68827d9ca402ce4d599f8e626f8d94a15dde6086"
47
+ "gitHead": "16fd34386acfecedb853c838ad41944fdce1ac22"
48
48
  }