@artisan-commerce/types 0.14.0-canary.29 → 0.14.0-canary.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +0 -230
  2. package/build/index.d.ts +26 -0
  3. package/build/index.js +40 -0
  4. package/build/index.js.map +1 -0
  5. package/build/types/account.types.d.ts +17 -0
  6. package/build/types/account.types.js +4 -0
  7. package/build/types/account.types.js.map +1 -0
  8. package/build/types/app.types.d.ts +153 -0
  9. package/build/types/app.types.js +4 -0
  10. package/build/types/app.types.js.map +1 -0
  11. package/build/types/artisnDB.types.d.ts +29 -0
  12. package/build/types/artisnDB.types.js +4 -0
  13. package/build/types/artisnDB.types.js.map +1 -0
  14. package/build/types/banner.types.d.ts +97 -0
  15. package/build/types/banner.types.js +4 -0
  16. package/build/types/banner.types.js.map +1 -0
  17. package/build/types/billingData.types.d.ts +39 -0
  18. package/build/types/billingData.types.js +4 -0
  19. package/build/types/billingData.types.js.map +1 -0
  20. package/build/types/catalogue.types.d.ts +16 -0
  21. package/build/types/catalogue.types.js +4 -0
  22. package/build/types/catalogue.types.js.map +1 -0
  23. package/build/types/category.types.d.ts +33 -0
  24. package/build/types/category.types.js +4 -0
  25. package/build/types/category.types.js.map +1 -0
  26. package/build/types/common.types.d.ts +36 -0
  27. package/build/types/common.types.js +4 -0
  28. package/build/types/common.types.js.map +1 -0
  29. package/build/types/country.types.d.ts +51 -0
  30. package/build/types/country.types.js +4 -0
  31. package/build/types/country.types.js.map +1 -0
  32. package/build/types/coupon.types.d.ts +112 -0
  33. package/build/types/coupon.types.js +4 -0
  34. package/build/types/coupon.types.js.map +1 -0
  35. package/build/types/currency.types.d.ts +7 -0
  36. package/build/types/currency.types.js +4 -0
  37. package/build/types/currency.types.js.map +1 -0
  38. package/build/types/fulfillment.types.d.ts +218 -0
  39. package/build/types/fulfillment.types.js +4 -0
  40. package/build/types/fulfillment.types.js.map +1 -0
  41. package/build/types/http.types.d.ts +64 -0
  42. package/build/types/http.types.js +4 -0
  43. package/build/types/http.types.js.map +1 -0
  44. package/build/types/image.types.d.ts +82 -0
  45. package/build/types/image.types.js +4 -0
  46. package/build/types/image.types.js.map +1 -0
  47. package/build/types/livingPlace.types.d.ts +92 -0
  48. package/build/types/livingPlace.types.js +4 -0
  49. package/build/types/livingPlace.types.js.map +1 -0
  50. package/build/types/notification.types.d.ts +21 -0
  51. package/build/types/notification.types.js +4 -0
  52. package/build/types/notification.types.js.map +1 -0
  53. package/build/types/order.types.d.ts +157 -0
  54. package/build/types/order.types.js +3 -0
  55. package/build/types/order.types.js.map +1 -0
  56. package/build/types/payment.types.d.ts +97 -0
  57. package/build/types/payment.types.js +4 -0
  58. package/build/types/payment.types.js.map +1 -0
  59. package/build/types/product.types.d.ts +299 -0
  60. package/build/types/product.types.js +4 -0
  61. package/build/types/product.types.js.map +1 -0
  62. package/build/types/settings.types.d.ts +23 -0
  63. package/build/types/settings.types.js +4 -0
  64. package/build/types/settings.types.js.map +1 -0
  65. package/build/types/shippingAddress.types.d.ts +73 -0
  66. package/build/types/shippingAddress.types.js +4 -0
  67. package/build/types/shippingAddress.types.js.map +1 -0
  68. package/build/types/shippingCost.types.d.ts +54 -0
  69. package/build/types/shippingCost.types.js +4 -0
  70. package/build/types/shippingCost.types.js.map +1 -0
  71. package/build/types/shoppingCart.types.d.ts +124 -0
  72. package/build/types/shoppingCart.types.js +4 -0
  73. package/build/types/shoppingCart.types.js.map +1 -0
  74. package/build/types/store.types.d.ts +198 -0
  75. package/build/types/store.types.js +4 -0
  76. package/build/types/store.types.js.map +1 -0
  77. package/build/types/user.types.d.ts +114 -0
  78. package/build/types/user.types.js +4 -0
  79. package/build/types/user.types.js.map +1 -0
  80. package/build/types/vendor.types.d.ts +23 -0
  81. package/build/types/vendor.types.js +3 -0
  82. package/build/types/vendor.types.js.map +1 -0
  83. package/build/vendors.d.ts +1 -0
  84. package/build/vendors.js +4 -0
  85. package/build/vendors.js.map +1 -0
  86. package/package.json +26 -18
  87. package/dist/bundle.d.ts +0 -3393
package/CHANGELOG.md CHANGED
@@ -3,236 +3,6 @@
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.14.0-canary.29](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.28...@artisan-commerce/types@0.14.0-canary.29) (2021-12-28)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * **artisn:** fix banner types ([af0d441](https://bitbucket.org/tradesystem/artisn_sdk/commit/af0d441ac0ee0c1bb97dd5ae7c4fca9ace46e2c1))
12
-
13
-
14
-
15
- ## [0.14.0-canary.28](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.27...@artisan-commerce/types@0.14.0-canary.28) (2021-12-15)
16
-
17
-
18
- ### Features
19
-
20
- * **global:** add function to write pick up time remotely on shopping cart ([e71c4c4](https://bitbucket.org/tradesystem/artisn_sdk/commit/e71c4c408e4a5703bad4600b9cec2e4e642c80d3))
21
-
22
-
23
-
24
- ## [0.14.0-canary.27](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.26...@artisan-commerce/types@0.14.0-canary.27) (2021-12-13)
25
-
26
-
27
- ### Bug Fixes
28
-
29
- * **global:** fix types and builder for order store ([35286a9](https://bitbucket.org/tradesystem/artisn_sdk/commit/35286a92e5e3df2fe5b3cfa5f289a0e321a24128))
30
-
31
-
32
-
33
- ## [0.14.0-canary.26](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.25...@artisan-commerce/types@0.14.0-canary.26) (2021-12-01)
34
-
35
-
36
- ### Features
37
-
38
- * **global:** update and add types and builders for notifications ([5d6902b](https://bitbucket.org/tradesystem/artisn_sdk/commit/5d6902ba54a84d14a783b5bcda3381ec68a1e636))
39
-
40
-
41
-
42
- ## [0.14.0-canary.25](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.24...@artisan-commerce/types@0.14.0-canary.25) (2021-11-05)
43
-
44
-
45
- ### Features
46
-
47
- * **global:** fix types and builders for store coupon and add condition to shipping cost ([2800a87](https://bitbucket.org/tradesystem/artisn_sdk/commit/2800a87a326c9f0ca5e0f1fbe202e15768fc32c9))
48
-
49
-
50
-
51
- ## [0.14.0-canary.24](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.23...@artisan-commerce/types@0.14.0-canary.24) (2021-10-22)
52
-
53
-
54
- ### Features
55
-
56
- * **global:** add interfaces, functions and services for store coupons ([7e8a959](https://bitbucket.org/tradesystem/artisn_sdk/commit/7e8a95998982e8c8b892b61eb709e98ac7671a09))
57
- * **global:** add missing interface and docs ([e7fca2f](https://bitbucket.org/tradesystem/artisn_sdk/commit/e7fca2f5a608a592380b8cd9aafab04cc32ce13d))
58
-
59
-
60
-
61
- ## [0.14.0-canary.23](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.22...@artisan-commerce/types@0.14.0-canary.23) (2021-10-21)
62
-
63
- **Note:** Version bump only for package @artisan-commerce/types
64
-
65
-
66
-
67
-
68
-
69
- ## [0.14.0-canary.22](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.21...@artisan-commerce/types@0.14.0-canary.22) (2021-10-21)
70
-
71
-
72
- ### Bug Fixes
73
-
74
- * **global:** add clean shopping cart to remove benefits and fix coupon docs ([dd3e66a](https://bitbucket.org/tradesystem/artisn_sdk/commit/dd3e66a5aa19430ec745b6e726c1b45c103e1b82))
75
-
76
-
77
-
78
- ## [0.14.0-canary.21](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.20...@artisan-commerce/types@0.14.0-canary.21) (2021-10-20)
79
-
80
- **Note:** Version bump only for package @artisan-commerce/types
81
-
82
-
83
-
84
-
85
-
86
- ## [0.14.0-canary.20](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.19...@artisan-commerce/types@0.14.0-canary.20) (2021-10-19)
87
-
88
-
89
- ### Bug Fixes
90
-
91
- * **global:** add interfaces and builders for order ([53d18b0](https://bitbucket.org/tradesystem/artisn_sdk/commit/53d18b07c53fa54f9af69a0751b94a95452bfdc3))
92
- * **global:** fix tax calculation builder ([3f7698f](https://bitbucket.org/tradesystem/artisn_sdk/commit/3f7698f1cfdf97e2b8d8fa4040b70a7cfa150b74))
93
-
94
-
95
-
96
- ## [0.14.0-canary.19](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.18...@artisan-commerce/types@0.14.0-canary.19) (2021-10-14)
97
-
98
-
99
- ### Bug Fixes
100
-
101
- * **global:** make export not module by default ([4e701b1](https://bitbucket.org/tradesystem/artisn_sdk/commit/4e701b1b59df89cf8358cf500984b1c2c4f42c60))
102
-
103
-
104
-
105
- ## [0.14.0-canary.18](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.17...@artisan-commerce/types@0.14.0-canary.18) (2021-10-14)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * **global:** fix some payment types ([8000970](https://bitbucket.org/tradesystem/artisn_sdk/commit/80009700cd8664828b1236e8ad7cc90ce2fcb3e7))
111
-
112
-
113
-
114
- ## [0.14.0-canary.17](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.16...@artisan-commerce/types@0.14.0-canary.17) (2021-10-14)
115
-
116
- **Note:** Version bump only for package @artisan-commerce/types
117
-
118
-
119
-
120
-
121
-
122
- ## [0.14.0-canary.16](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.15...@artisan-commerce/types@0.14.0-canary.16) (2021-10-13)
123
-
124
-
125
- ### Features
126
-
127
- * **global:** fix builder and types to adjust better to reality ([11cdb93](https://bitbucket.org/tradesystem/artisn_sdk/commit/11cdb93199d5a57d12f5aa6f7ece17f0c38c0521))
128
- * **global:** fix unnecessary params on functions and add docs ([3830d7d](https://bitbucket.org/tradesystem/artisn_sdk/commit/3830d7d8b0044ca580bcbcc4acd0b0ea5a8b0266))
129
-
130
-
131
-
132
- ## [0.14.0-canary.15](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.14...@artisan-commerce/types@0.14.0-canary.15) (2021-10-05)
133
-
134
-
135
- ### Bug Fixes
136
-
137
- * **global:** fix ProductDetail builder and update its types ([cdc6cf9](https://bitbucket.org/tradesystem/artisn_sdk/commit/cdc6cf9ed2e7ff1a340bc691b0dc1156bc682d38))
138
-
139
-
140
-
141
- ## [0.14.0-canary.14](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.13...@artisan-commerce/types@0.14.0-canary.14) (2021-10-01)
142
-
143
-
144
- ### Bug Fixes
145
-
146
- * **global:** fix firebase related types ([efa5081](https://bitbucket.org/tradesystem/artisn_sdk/commit/efa5081a844be033ac9135ac65bf8f56184b71b0))
147
-
148
-
149
-
150
- ## [0.14.0-canary.13](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.12...@artisan-commerce/types@0.14.0-canary.13) (2021-09-30)
151
-
152
- **Note:** Version bump only for package @artisan-commerce/types
153
-
154
-
155
-
156
-
157
-
158
- ## [0.14.0-canary.12](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.11...@artisan-commerce/types@0.14.0-canary.12) (2021-09-30)
159
-
160
- **Note:** Version bump only for package @artisan-commerce/types
161
-
162
-
163
-
164
-
165
-
166
- ## [0.14.0-canary.11](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.10...@artisan-commerce/types@0.14.0-canary.11) (2021-09-23)
167
-
168
-
169
- ### Bug Fixes
170
-
171
- * **global:** update types of CDNImage, reduce the depth of product questions ([82dba32](https://bitbucket.org/tradesystem/artisn_sdk/commit/82dba324457455e6cd2d76091aaffaef5f540d9f))
172
-
173
-
174
-
175
- ## [0.14.0-canary.10](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.9...@artisan-commerce/types@0.14.0-canary.10) (2021-09-21)
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * **global:** fix product details and settings builders ([5452fc9](https://bitbucket.org/tradesystem/artisn_sdk/commit/5452fc9d70ff3fa9f859ed4a665fd933e133c7ce))
181
-
182
-
183
-
184
- ## [0.14.0-canary.9](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.8...@artisan-commerce/types@0.14.0-canary.9) (2021-09-17)
185
-
186
-
187
- ### Features
188
-
189
- * **global:** add categories property to product details interface ([0d95d09](https://bitbucket.org/tradesystem/artisn_sdk/commit/0d95d093383673322369b0870af290182bb57cb8))
190
-
191
-
192
-
193
- ## [0.14.0-canary.8](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.7...@artisan-commerce/types@0.14.0-canary.8) (2021-08-25)
194
-
195
- **Note:** Version bump only for package @artisan-commerce/types
196
-
197
-
198
-
199
-
200
-
201
- ## [0.14.0-canary.7](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.6...@artisan-commerce/types@0.14.0-canary.7) (2021-08-24)
202
-
203
- **Note:** Version bump only for package @artisan-commerce/types
204
-
205
-
206
-
207
-
208
-
209
- ## [0.14.0-canary.6](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.5...@artisan-commerce/types@0.14.0-canary.6) (2021-08-23)
210
-
211
-
212
- ### Bug Fixes
213
-
214
- * **global:** add missing properties to order interfaces and types ([757157f](https://bitbucket.org/tradesystem/artisn_sdk/commit/757157fbb2dd25d04efc791cd9b9511e41685471))
215
-
216
-
217
-
218
- ## [0.14.0-canary.5](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.4...@artisan-commerce/types@0.14.0-canary.5) (2021-08-23)
219
-
220
-
221
- ### Bug Fixes
222
-
223
- * **global:** add missing properties to shipping address and complete document type ([c9156f6](https://bitbucket.org/tradesystem/artisn_sdk/commit/c9156f6db3e55f23479484577760f5196e112afc))
224
-
225
-
226
-
227
- ## [0.14.0-canary.4](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.3...@artisan-commerce/types@0.14.0-canary.4) (2021-08-12)
228
-
229
-
230
- ### Bug Fixes
231
-
232
- * **global:** add CountryCode type and update user builder ([f94eb5d](https://bitbucket.org/tradesystem/artisn_sdk/commit/f94eb5d38e0725bd157398e3c51b3bb8b2592abc))
233
-
234
-
235
-
236
6
  ## [0.14.0-canary.3](https://bitbucket.org/tradesystem/artisn_sdk/compare/@artisan-commerce/types@0.14.0-canary.2...@artisan-commerce/types@0.14.0-canary.3) (2021-08-12)
237
7
 
238
8
 
@@ -0,0 +1,26 @@
1
+ export * from "./types/account.types";
2
+ export * from "./types/app.types";
3
+ export * from "./types/artisnDB.types";
4
+ export * from "./types/banner.types";
5
+ export * from "./types/billingData.types";
6
+ export * from "./types/catalogue.types";
7
+ export * from "./types/category.types";
8
+ export * from "./types/common.types";
9
+ export * from "./types/country.types";
10
+ export * from "./types/coupon.types";
11
+ export * from "./types/currency.types";
12
+ export * from "./types/fulfillment.types";
13
+ export * from "./types/http.types";
14
+ export * from "./types/image.types";
15
+ export * from "./types/livingPlace.types";
16
+ export * from "./types/notification.types";
17
+ export * from "./types/order.types";
18
+ export * from "./types/payment.types";
19
+ export * from "./types/product.types";
20
+ export * from "./types/settings.types";
21
+ export * from "./types/shippingAddress.types";
22
+ export * from "./types/shippingCost.types";
23
+ export * from "./types/shoppingCart.types";
24
+ export * from "./types/store.types";
25
+ export * from "./types/vendor.types";
26
+ export * from "./types/user.types";
package/build/index.js ADDED
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ // Main
14
+ __exportStar(require("./types/account.types"), exports);
15
+ __exportStar(require("./types/app.types"), exports);
16
+ __exportStar(require("./types/artisnDB.types"), exports);
17
+ __exportStar(require("./types/banner.types"), exports);
18
+ __exportStar(require("./types/billingData.types"), exports);
19
+ __exportStar(require("./types/catalogue.types"), exports);
20
+ __exportStar(require("./types/category.types"), exports);
21
+ __exportStar(require("./types/common.types"), exports);
22
+ __exportStar(require("./types/country.types"), exports);
23
+ __exportStar(require("./types/coupon.types"), exports);
24
+ __exportStar(require("./types/currency.types"), exports);
25
+ __exportStar(require("./types/fulfillment.types"), exports);
26
+ __exportStar(require("./types/http.types"), exports);
27
+ __exportStar(require("./types/image.types"), exports);
28
+ __exportStar(require("./types/livingPlace.types"), exports);
29
+ __exportStar(require("./types/notification.types"), exports);
30
+ __exportStar(require("./types/order.types"), exports);
31
+ __exportStar(require("./types/payment.types"), exports);
32
+ __exportStar(require("./types/product.types"), exports);
33
+ __exportStar(require("./types/settings.types"), exports);
34
+ __exportStar(require("./types/shippingAddress.types"), exports);
35
+ __exportStar(require("./types/shippingCost.types"), exports);
36
+ __exportStar(require("./types/shoppingCart.types"), exports);
37
+ __exportStar(require("./types/store.types"), exports);
38
+ __exportStar(require("./types/vendor.types"), exports);
39
+ __exportStar(require("./types/user.types"), exports);
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO;AACP,wDAAsC;AACtC,oDAAkC;AAClC,yDAAuC;AACvC,uDAAqC;AACrC,4DAA0C;AAC1C,0DAAwC;AACxC,yDAAuC;AACvC,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,qDAAmC;AACnC,sDAAoC;AACpC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC"}
@@ -0,0 +1,17 @@
1
+ import { CDNImage } from "./image.types";
2
+ /**
3
+ * Representation of a Commerce Account.
4
+ *
5
+ * @interface Account
6
+ * @since 0.5.14
7
+ */
8
+ export interface Account {
9
+ /** Artisn's account unique identifier */
10
+ accountId: number;
11
+ /** Account's name */
12
+ name: string;
13
+ /** Account's description */
14
+ description?: string;
15
+ /** Account's images, see {@link CDNImage} for further information */
16
+ images: CDNImage[];
17
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Account types and interfaces
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=account.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.types.js","sourceRoot":"","sources":["../../src/types/account.types.ts"],"names":[],"mappings":";AAAA,+BAA+B"}
@@ -0,0 +1,153 @@
1
+ import firebase from "firebase";
2
+ /**
3
+ * The ArtisnApp controls the app connection with the DBs and its settings.
4
+ *
5
+ * @typedef ArtisnApp
6
+ * @since 0.5.14
7
+ */
8
+ export declare type ArtisnApp = ArtisnAppWeb | ArtisnAppRN;
9
+ /**
10
+ * The ArtisnAppWeb orchestrate the connections of the app with the DB, server and its settings.
11
+ *
12
+ * @interface ArtisnAppWeb
13
+ * @since 0.5.14
14
+ */
15
+ export interface ArtisnAppWeb {
16
+ /** App's name */
17
+ name: firebase.app.App["name"];
18
+ /** Artisn's account API URL */
19
+ apiURL: string;
20
+ /** Artisn app settings configuration, see {@link ArtisnSettings} */
21
+ settings: ArtisnSettings;
22
+ /** Internal configuration of App and databases */
23
+ __internals__: firebase.app.App;
24
+ /** ArtisnApp object internal instance */
25
+ __instance__: typeof firebase;
26
+ }
27
+ /**
28
+ * The ArtisnAppRN orchestrate the connections of the app with the DB, server and its settings.
29
+ *
30
+ * @interface ArtisnAppRN
31
+ * @since 0.5.14
32
+ */
33
+ export interface ArtisnAppRN {
34
+ /** Artisn's account API URL */
35
+ apiURL: string;
36
+ /** Internal configuration of App and databases */
37
+ __internals__: RNFirebaseInstance;
38
+ /** ArtisnApp object internal instance */
39
+ __instance__: RNFirebaseInstance;
40
+ /** Artisn app settings configuration, see {@link ArtisnSettings} */
41
+ settings: ArtisnSettings;
42
+ /** App's name */
43
+ name: string;
44
+ }
45
+ /**
46
+ * Settings to configure the Firebase Instance.
47
+ *
48
+ * @interface RNFirebaseInstance
49
+ * @since 0.5.14
50
+ */
51
+ export interface RNFirebaseInstance {
52
+ /** Auth package from react-native-auth */
53
+ auth: any;
54
+ /** Firestore package from react-native-auth */
55
+ firestore: any;
56
+ }
57
+ /**
58
+ * Settings to configure the Artisn app.
59
+ *
60
+ * @interface ArtisnSettings
61
+ * @since 0.5.14
62
+ */
63
+ export interface ArtisnSettings {
64
+ /** Artisn's account unique identifier */
65
+ accountId?: number;
66
+ /** Platform where the app is running, see {@link ArtisnPlatform} */
67
+ platform?: ArtisnPlatform;
68
+ /** App's project id */
69
+ projectId: string;
70
+ /** App's API key */
71
+ apiKey: string;
72
+ /** App's external app id */
73
+ appId?: string;
74
+ /** App's auth domain url */
75
+ authDomain: string;
76
+ }
77
+ /**
78
+ * Settings to configure the Artisn app react-native.
79
+ *
80
+ * @interface ArtisnSettingsRN
81
+ * @since 0.5.14
82
+ */
83
+ export interface ArtisnSettingsRN {
84
+ /** Platform where the app is running, see {@link ArtisnPlatform} */
85
+ platform: ArtisnPlatform;
86
+ /** Artisn's account unique identifier */
87
+ accountId?: number;
88
+ }
89
+ /**
90
+ * Artisn app's allowed platforms to run on.
91
+ *
92
+ * @typedef ArtisnPlatform
93
+ * @since 0.5.14
94
+ */
95
+ export declare type ArtisnPlatform = "web" | "ios" | "android" | "windows" | "macos" | "call center";
96
+ /**
97
+ * Artisn's auth instance is the instance of the internal auth object.
98
+ *
99
+ * @typedef ArtisnInstanceAuth
100
+ * @since 0.5.14
101
+ */
102
+ export declare type ArtisnInstanceAuth = typeof firebase.auth;
103
+ /**
104
+ * Artisn's auth object to handle providers authentication.
105
+ *
106
+ * @typedef ArtisnAuth
107
+ * @since 0.5.14
108
+ */
109
+ export interface ArtisnAuth extends firebase.auth.Auth {
110
+ }
111
+ /**
112
+ * Main artisn commerce filters.
113
+ *
114
+ * @interface ArtisnHints
115
+ * @since 0.5.14
116
+ */
117
+ export interface ArtisnHints {
118
+ /** Artisn's account unique identifier */
119
+ accountId: string | number;
120
+ /** Artisn's vendor unique identifier */
121
+ vendorId?: string | number;
122
+ /** Artisn's catalogue unique identifier */
123
+ catalogueId?: string | number;
124
+ /** Artisn's store unique identifier */
125
+ storeId?: number;
126
+ /** Artisn's category unique identifier */
127
+ categoryId?: string | number;
128
+ /** Artisn's productId unique identifier */
129
+ productId?: string | number;
130
+ }
131
+ /**
132
+ * Unrestricted allowed Artisn SDK rest api headers.
133
+ *
134
+ * @interface ArtisnHeaders
135
+ * @since 0.5.14
136
+ */
137
+ export interface ArtisnHeaders {
138
+ /** Platform where the app is running, see {@link ArtisnPlatform} */
139
+ Platform: ArtisnPlatform;
140
+ /** Artisn's account unique identifier */
141
+ account: string;
142
+ }
143
+ /**
144
+ * Restricted allowed Artisn SDK rest api headers.
145
+ *
146
+ * @interface ArtisnRestrictedHeaders
147
+ * @since 0.5.14
148
+ * @extends {{@link ArtisnHeaders}
149
+ */
150
+ export interface ArtisnRestrictedHeaders extends ArtisnHeaders {
151
+ /** Authorization app's authentication token */
152
+ Authorization: string;
153
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Artisn App types and interfaces
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=app.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.types.js","sourceRoot":"","sources":["../../src/types/app.types.ts"],"names":[],"mappings":";AAAA,kCAAkC"}
@@ -0,0 +1,29 @@
1
+ import firebase from "firebase";
2
+ /**
3
+ * Artisn database object.
4
+ *
5
+ * @typedef ArtisnDB
6
+ * @since 0.5.14
7
+ */
8
+ export declare type ArtisnDB = firebase.firestore.Firestore;
9
+ /**
10
+ * Artisn database document data object.
11
+ *
12
+ * @typedef ArtisnDBDocumentData
13
+ * @since 0.5.14
14
+ */
15
+ export declare type ArtisnDBDocumentData = firebase.firestore.DocumentData;
16
+ /**
17
+ * The current state of a node from the Artisn DB.
18
+ *
19
+ * @typedef ArtisnDBQueryDocumentSnapshot
20
+ * @since 0.5.14
21
+ */
22
+ export declare type ArtisnDBQueryDocumentSnapshot<T = ArtisnDBDocumentData> = firebase.firestore.QueryDocumentSnapshot<T>;
23
+ /**
24
+ * An Artisn DB collection of nodes.
25
+ *
26
+ * @typedef ArtisnDBCollectionReference
27
+ * @since 0.5.14
28
+ */
29
+ export declare type ArtisnDBCollectionReference<T = ArtisnDBDocumentData> = firebase.firestore.CollectionReference<T>;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Artisn DB types and interfaces
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=artisnDB.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"artisnDB.types.js","sourceRoot":"","sources":["../../src/types/artisnDB.types.ts"],"names":[],"mappings":";AAAA,iCAAiC"}
@@ -0,0 +1,97 @@
1
+ import { CDNImage } from "./image.types";
2
+ /**
3
+ * Representation of a Commerce Banner.
4
+ *
5
+ * @interface Banner
6
+ * @since 0.5.14
7
+ */
8
+ export interface Banner {
9
+ /** Banner category id */
10
+ banner_category_id: number;
11
+ /** Banner description */
12
+ banner_description: string;
13
+ /** Banner qr code */
14
+ banner_qr_code: string;
15
+ /** Banner title */
16
+ banner_title: string;
17
+ /** Banner type, see {@link BannerType} */
18
+ banner_type: BannerType;
19
+ /** Banner image url */
20
+ banner_url: string | null;
21
+ /** Banner's benefits */
22
+ benefits: null;
23
+ /** Banner category id */
24
+ category_id: number;
25
+ /** Banner category name */
26
+ category_name: string;
27
+ /** Banner channel's id */
28
+ channel_id: number;
29
+ /** Banner coupon's code */
30
+ coupon: null;
31
+ /** Banner coupon's id */
32
+ coupon_id: string | null;
33
+ /** The base 64 image value, see {@link CDNImage} */
34
+ image_base64: CDNImage["base64"];
35
+ /** The bucket where the image is saved */
36
+ image_bucket: string | null;
37
+ /** he cloud where the banner is saved, see {@link CDNImage} */
38
+ image_cloud_front_url: CDNImage["cloudFrontUrl"];
39
+ /** Banner image's filename */
40
+ image_file_name: string;
41
+ /** The directory where the banner image is saved */
42
+ image_key: string;
43
+ /** The url where the banner image is saved */
44
+ image_url: string;
45
+ /** An array of banner images, see {@link BannerImage} */
46
+ images: BannerImage[];
47
+ /** Banner product's id */
48
+ product_id: null;
49
+ /** Banner product's name */
50
+ product_name: null;
51
+ /** Banner's section */
52
+ section: null;
53
+ /** Banner's scope, see {@link BannerScope} */
54
+ scope: BannerScope;
55
+ /** Banner stores array */
56
+ stores: unknown[];
57
+ /** Banner vendor's id */
58
+ vendor_id: number;
59
+ /** Banner vendor's name */
60
+ vendor_name: string;
61
+ }
62
+ /**
63
+ * The possible values of the banner's type.
64
+ *
65
+ * @typedef BannerType
66
+ * @since 0.5.14
67
+ */
68
+ export declare type BannerType = "INFO" | "URL" | "PRODUCT" | "COUPON";
69
+ /**
70
+ * The possible values of the banner's scope.
71
+ *
72
+ * @typedef BannerScope
73
+ * @since 0.5.14
74
+ */
75
+ export declare type BannerScope = "WEB" | "GLOBAL" | "APP";
76
+ /**
77
+ * Representation of a Banner image.
78
+ *
79
+ * @interface BannerImage
80
+ * @since 0.5.14
81
+ */
82
+ export interface BannerImage {
83
+ /** Banner's id */
84
+ id: number;
85
+ /** Banner image's filename */
86
+ file_name: string;
87
+ /** Banner image's filename */
88
+ image_file_name: string;
89
+ /** Banner image's directory */
90
+ image_key: string;
91
+ /** The url where the banner image is saved */
92
+ image_url: string;
93
+ /** Banner's position inside the banner images array */
94
+ position: number;
95
+ /** The url where the banner image is saved */
96
+ url: string;
97
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // Banner types and interfaces
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=banner.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.types.js","sourceRoot":"","sources":["../../src/types/banner.types.ts"],"names":[],"mappings":";AAAA,8BAA8B"}