@infrab4a/connect 3.5.0-beta.2 → 3.6.0-beta.0
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/bundles/infrab4a-connect.umd.js +103 -135
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/shop-settings/models/index.d.ts +1 -0
- package/domain/shop-settings/models/shop-settings.d.ts +9 -0
- package/domain/shop-settings/models/types/index.d.ts +5 -0
- package/domain/shop-settings/models/types/shop-banner.type.d.ts +12 -0
- package/domain/shop-settings/models/types/shop-brands.type.d.ts +10 -0
- package/domain/shop-settings/models/types/shop-carousel.type.d.ts +5 -0
- package/domain/shop-settings/models/types/shop-collection.type.d.ts +9 -0
- package/domain/shop-settings/models/types/shop-section.type.d.ts +9 -0
- package/domain/shop-settings/repositories/index.d.ts +1 -0
- package/domain/shop-settings/repositories/shop-settings.repository.d.ts +4 -0
- package/domain/shopping/models/index.d.ts +4 -5
- package/domain/shopping/repositories/index.d.ts +2 -4
- package/esm2015/domain/shop-settings/models/index.js +2 -1
- package/esm2015/domain/shop-settings/models/shop-settings.js +7 -0
- package/esm2015/domain/shop-settings/models/types/index.js +6 -1
- package/esm2015/domain/shop-settings/models/types/shop-banner.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/shop-brands.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/shop-carousel.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/shop-collection.type.js +2 -0
- package/esm2015/domain/shop-settings/models/types/shop-section.type.js +2 -0
- package/esm2015/domain/shop-settings/repositories/index.js +2 -1
- package/esm2015/domain/shop-settings/repositories/shop-settings.repository.js +2 -0
- package/esm2015/domain/shopping/models/index.js +5 -6
- package/esm2015/domain/shopping/repositories/index.js +3 -5
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/index.js +2 -1
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +4 -6
- package/esm2015/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.js +5 -5
- package/fesm2015/infrab4a-connect.js +64 -80
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/repositories/shop-settings/index.d.ts +1 -0
- package/infra/firebase/firestore/repositories/shop-settings/shop-settings-firestore.repository.d.ts +8 -0
- package/infra/firebase/firestore/repositories/shopping/index.d.ts +3 -5
- package/package.json +1 -1
- package/domain/shopping/models/campaign-dashboard.d.ts +0 -15
- package/domain/shopping/models/campaign-hashtag.d.ts +0 -18
- package/domain/shopping/repositories/campaign-dashboard.repository.d.ts +0 -4
- package/domain/shopping/repositories/campaign-hashtag.repository.d.ts +0 -4
- package/esm2015/domain/shopping/models/campaign-dashboard.js +0 -7
- package/esm2015/domain/shopping/models/campaign-hashtag.js +0 -7
- package/esm2015/domain/shopping/repositories/campaign-dashboard.repository.js +0 -2
- package/esm2015/domain/shopping/repositories/campaign-hashtag.repository.js +0 -2
- package/esm2015/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.js +0 -12
- package/esm2015/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.js +0 -12
- package/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.d.ts +0 -9
- package/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.d.ts +0 -9
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-custom-error'), require('axios'), require('firebase'), require('gql-query-builder')
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-custom-error', 'axios', 'firebase', 'gql-query-builder'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a.connect = {}), null, global["class-transformer"], global["date-fns"], global.lodash, global["ts-custom-error"], global.axios, global.firebase, global["gql-query-builder"]
|
|
5
|
-
})(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsCustomError, axios, firebase, gqlQueryBuilder
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-custom-error'), require('axios'), require('firebase'), require('gql-query-builder')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-custom-error', 'axios', 'firebase', 'gql-query-builder'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.infrab4a = global.infrab4a || {}, global.infrab4a.connect = {}), null, global["class-transformer"], global["date-fns"], global.lodash, global["ts-custom-error"], global.axios, global.firebase, global["gql-query-builder"]));
|
|
5
|
+
})(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsCustomError, axios, firebase, gqlQueryBuilder) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
9
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
10
10
|
var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
|
|
11
|
-
var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
|
|
12
11
|
|
|
13
12
|
var BaseModel = /** @class */ (function () {
|
|
14
13
|
function BaseModel(args) {
|
|
@@ -1348,54 +1347,17 @@
|
|
|
1348
1347
|
return Variant;
|
|
1349
1348
|
}(BaseModel));
|
|
1350
1349
|
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
});
|
|
1363
|
-
return Buy2Win;
|
|
1364
|
-
}(BaseModel));
|
|
1365
|
-
__decorate([
|
|
1366
|
-
classTransformer.Type(function () { return Category; }),
|
|
1367
|
-
__metadata("design:type", Array)
|
|
1368
|
-
], Buy2Win.prototype, "categories", void 0);
|
|
1369
|
-
|
|
1370
|
-
var CampaignDashboard = /** @class */ (function (_super) {
|
|
1371
|
-
__extends(CampaignDashboard, _super);
|
|
1372
|
-
function CampaignDashboard() {
|
|
1373
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1374
|
-
}
|
|
1375
|
-
Object.defineProperty(CampaignDashboard, "identifiersFields", {
|
|
1376
|
-
get: function () {
|
|
1377
|
-
return ['id'];
|
|
1378
|
-
},
|
|
1379
|
-
enumerable: false,
|
|
1380
|
-
configurable: true
|
|
1381
|
-
});
|
|
1382
|
-
return CampaignDashboard;
|
|
1383
|
-
}(BaseModel));
|
|
1384
|
-
|
|
1385
|
-
var CampaignHashtag = /** @class */ (function (_super) {
|
|
1386
|
-
__extends(CampaignHashtag, _super);
|
|
1387
|
-
function CampaignHashtag() {
|
|
1388
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1389
|
-
}
|
|
1390
|
-
Object.defineProperty(CampaignHashtag, "identifiersFields", {
|
|
1391
|
-
get: function () {
|
|
1392
|
-
return ['id'];
|
|
1393
|
-
},
|
|
1394
|
-
enumerable: false,
|
|
1395
|
-
configurable: true
|
|
1396
|
-
});
|
|
1397
|
-
return CampaignHashtag;
|
|
1398
|
-
}(BaseModel));
|
|
1350
|
+
exports.OrderStatus = void 0;
|
|
1351
|
+
(function (OrderStatus) {
|
|
1352
|
+
OrderStatus["AGUARDANDO_PAGAMENTO"] = "Aguardando pagamento";
|
|
1353
|
+
OrderStatus["EM_PREPARO"] = "Preparando pedido";
|
|
1354
|
+
OrderStatus["NF_EMITIDA"] = "Nota Fiscal Emitida";
|
|
1355
|
+
OrderStatus["AGUARDANDO_ENVIO"] = "Aguardando Transaportadora";
|
|
1356
|
+
OrderStatus["ENVIADO"] = "Enviado";
|
|
1357
|
+
OrderStatus["ENTREGUE"] = "Entregue";
|
|
1358
|
+
OrderStatus["CANCELADO"] = "Cancelado";
|
|
1359
|
+
OrderStatus["CREDIT_CARD"] = "credit_card";
|
|
1360
|
+
})(exports.OrderStatus || (exports.OrderStatus = {}));
|
|
1399
1361
|
|
|
1400
1362
|
var LineItem = /** @class */ (function (_super) {
|
|
1401
1363
|
__extends(LineItem, _super);
|
|
@@ -1459,18 +1421,6 @@
|
|
|
1459
1421
|
__metadata("design:type", Coupon)
|
|
1460
1422
|
], Checkout.prototype, "coupon", void 0);
|
|
1461
1423
|
|
|
1462
|
-
exports.OrderStatus = void 0;
|
|
1463
|
-
(function (OrderStatus) {
|
|
1464
|
-
OrderStatus["AGUARDANDO_PAGAMENTO"] = "Aguardando pagamento";
|
|
1465
|
-
OrderStatus["EM_PREPARO"] = "Preparando pedido";
|
|
1466
|
-
OrderStatus["NF_EMITIDA"] = "Nota Fiscal Emitida";
|
|
1467
|
-
OrderStatus["AGUARDANDO_ENVIO"] = "Aguardando Transaportadora";
|
|
1468
|
-
OrderStatus["ENVIADO"] = "Enviado";
|
|
1469
|
-
OrderStatus["ENTREGUE"] = "Entregue";
|
|
1470
|
-
OrderStatus["CANCELADO"] = "Cancelado";
|
|
1471
|
-
OrderStatus["CREDIT_CARD"] = "credit_card";
|
|
1472
|
-
})(exports.OrderStatus || (exports.OrderStatus = {}));
|
|
1473
|
-
|
|
1474
1424
|
var Order = /** @class */ (function (_super) {
|
|
1475
1425
|
__extends(Order, _super);
|
|
1476
1426
|
function Order() {
|
|
@@ -1514,6 +1464,25 @@
|
|
|
1514
1464
|
__metadata("design:type", Coupon)
|
|
1515
1465
|
], CheckoutSubscription.prototype, "coupon", void 0);
|
|
1516
1466
|
|
|
1467
|
+
var Buy2Win = /** @class */ (function (_super) {
|
|
1468
|
+
__extends(Buy2Win, _super);
|
|
1469
|
+
function Buy2Win() {
|
|
1470
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1471
|
+
}
|
|
1472
|
+
Object.defineProperty(Buy2Win, "identifiersFields", {
|
|
1473
|
+
get: function () {
|
|
1474
|
+
return ['id'];
|
|
1475
|
+
},
|
|
1476
|
+
enumerable: false,
|
|
1477
|
+
configurable: true
|
|
1478
|
+
});
|
|
1479
|
+
return Buy2Win;
|
|
1480
|
+
}(BaseModel));
|
|
1481
|
+
__decorate([
|
|
1482
|
+
classTransformer.Type(function () { return Category; }),
|
|
1483
|
+
__metadata("design:type", Array)
|
|
1484
|
+
], Buy2Win.prototype, "categories", void 0);
|
|
1485
|
+
|
|
1517
1486
|
exports.FilterType = void 0;
|
|
1518
1487
|
(function (FilterType) {
|
|
1519
1488
|
FilterType["ACCESSORY_IMPORTANCE"] = "accessoryImportance";
|
|
@@ -1633,6 +1602,21 @@
|
|
|
1633
1602
|
return ShopMenu;
|
|
1634
1603
|
}(BaseModel));
|
|
1635
1604
|
|
|
1605
|
+
var ShopSettings = /** @class */ (function (_super) {
|
|
1606
|
+
__extends(ShopSettings, _super);
|
|
1607
|
+
function ShopSettings() {
|
|
1608
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1609
|
+
}
|
|
1610
|
+
Object.defineProperty(ShopSettings, "identifiersFields", {
|
|
1611
|
+
get: function () {
|
|
1612
|
+
return ['id'];
|
|
1613
|
+
},
|
|
1614
|
+
enumerable: false,
|
|
1615
|
+
configurable: true
|
|
1616
|
+
});
|
|
1617
|
+
return ShopSettings;
|
|
1618
|
+
}(BaseModel));
|
|
1619
|
+
|
|
1636
1620
|
var InvalidArgumentError = /** @class */ (function (_super) {
|
|
1637
1621
|
__extends(InvalidArgumentError, _super);
|
|
1638
1622
|
function InvalidArgumentError(message) {
|
|
@@ -2713,42 +2697,6 @@
|
|
|
2713
2697
|
return SubscriptionProductFirestoreRepository;
|
|
2714
2698
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2715
2699
|
|
|
2716
|
-
var Buy2WinFirestoreRepository = /** @class */ (function (_super) {
|
|
2717
|
-
__extends(Buy2WinFirestoreRepository, _super);
|
|
2718
|
-
function Buy2WinFirestoreRepository(firestore) {
|
|
2719
|
-
var _this = _super.call(this) || this;
|
|
2720
|
-
_this.firestore = firestore;
|
|
2721
|
-
_this.collectionName = 'buy2win';
|
|
2722
|
-
_this.model = Buy2Win;
|
|
2723
|
-
return _this;
|
|
2724
|
-
}
|
|
2725
|
-
return Buy2WinFirestoreRepository;
|
|
2726
|
-
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2727
|
-
|
|
2728
|
-
var CampaignDashboardFirestoreRepository = /** @class */ (function (_super) {
|
|
2729
|
-
__extends(CampaignDashboardFirestoreRepository, _super);
|
|
2730
|
-
function CampaignDashboardFirestoreRepository(firestore) {
|
|
2731
|
-
var _this = _super.call(this) || this;
|
|
2732
|
-
_this.firestore = firestore;
|
|
2733
|
-
_this.collectionName = 'dashboardCampaignsAuto';
|
|
2734
|
-
_this.model = CampaignDashboard;
|
|
2735
|
-
return _this;
|
|
2736
|
-
}
|
|
2737
|
-
return CampaignDashboardFirestoreRepository;
|
|
2738
|
-
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2739
|
-
|
|
2740
|
-
var CampaignHashtagFirestoreRepository = /** @class */ (function (_super) {
|
|
2741
|
-
__extends(CampaignHashtagFirestoreRepository, _super);
|
|
2742
|
-
function CampaignHashtagFirestoreRepository(firestore) {
|
|
2743
|
-
var _this = _super.call(this) || this;
|
|
2744
|
-
_this.firestore = firestore;
|
|
2745
|
-
_this.collectionName = 'hashtagCampaignsAuto';
|
|
2746
|
-
_this.model = CampaignHashtag;
|
|
2747
|
-
return _this;
|
|
2748
|
-
}
|
|
2749
|
-
return CampaignHashtagFirestoreRepository;
|
|
2750
|
-
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2751
|
-
|
|
2752
2700
|
var CheckoutFirestoreRepository = /** @class */ (function (_super) {
|
|
2753
2701
|
__extends(CheckoutFirestoreRepository, _super);
|
|
2754
2702
|
function CheckoutFirestoreRepository(firestore) {
|
|
@@ -2761,18 +2709,6 @@
|
|
|
2761
2709
|
return CheckoutFirestoreRepository;
|
|
2762
2710
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2763
2711
|
|
|
2764
|
-
var CheckoutSubscriptionFirestoreRepository = /** @class */ (function (_super) {
|
|
2765
|
-
__extends(CheckoutSubscriptionFirestoreRepository, _super);
|
|
2766
|
-
function CheckoutSubscriptionFirestoreRepository(firestore) {
|
|
2767
|
-
var _this = _super.call(this) || this;
|
|
2768
|
-
_this.firestore = firestore;
|
|
2769
|
-
_this.collectionName = 'checkoutsSubscription';
|
|
2770
|
-
_this.model = CheckoutSubscription;
|
|
2771
|
-
return _this;
|
|
2772
|
-
}
|
|
2773
|
-
return CheckoutSubscriptionFirestoreRepository;
|
|
2774
|
-
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2775
|
-
|
|
2776
2712
|
var CouponFirestoreRepository = /** @class */ (function (_super) {
|
|
2777
2713
|
__extends(CouponFirestoreRepository, _super);
|
|
2778
2714
|
function CouponFirestoreRepository(firestore) {
|
|
@@ -2842,17 +2778,6 @@
|
|
|
2842
2778
|
return OrderFirestoreRepository;
|
|
2843
2779
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2844
2780
|
|
|
2845
|
-
var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
|
|
2846
|
-
__extends(LegacyOrderFirestoreRepository, _super);
|
|
2847
|
-
function LegacyOrderFirestoreRepository(firestore) {
|
|
2848
|
-
var _this = _super.call(this, firestore) || this;
|
|
2849
|
-
_this.firestore = firestore;
|
|
2850
|
-
_this.collectionName = 'legacyOrders';
|
|
2851
|
-
return _this;
|
|
2852
|
-
}
|
|
2853
|
-
return LegacyOrderFirestoreRepository;
|
|
2854
|
-
}(OrderFirestoreRepository));
|
|
2855
|
-
|
|
2856
2781
|
var PaymentFirestoreRepository = /** @class */ (function (_super) {
|
|
2857
2782
|
__extends(PaymentFirestoreRepository, _super);
|
|
2858
2783
|
function PaymentFirestoreRepository(firestore) {
|
|
@@ -2865,6 +2790,18 @@
|
|
|
2865
2790
|
return PaymentFirestoreRepository;
|
|
2866
2791
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2867
2792
|
|
|
2793
|
+
var CheckoutSubscriptionFirestoreRepository = /** @class */ (function (_super) {
|
|
2794
|
+
__extends(CheckoutSubscriptionFirestoreRepository, _super);
|
|
2795
|
+
function CheckoutSubscriptionFirestoreRepository(firestore) {
|
|
2796
|
+
var _this = _super.call(this) || this;
|
|
2797
|
+
_this.firestore = firestore;
|
|
2798
|
+
_this.collectionName = 'checkoutsSubscription';
|
|
2799
|
+
_this.model = CheckoutSubscription;
|
|
2800
|
+
return _this;
|
|
2801
|
+
}
|
|
2802
|
+
return CheckoutSubscriptionFirestoreRepository;
|
|
2803
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2804
|
+
|
|
2868
2805
|
var SubscriptionPlanFirestoreRepository = /** @class */ (function (_super) {
|
|
2869
2806
|
__extends(SubscriptionPlanFirestoreRepository, _super);
|
|
2870
2807
|
function SubscriptionPlanFirestoreRepository(firestore) {
|
|
@@ -2877,6 +2814,29 @@
|
|
|
2877
2814
|
return SubscriptionPlanFirestoreRepository;
|
|
2878
2815
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2879
2816
|
|
|
2817
|
+
var Buy2WinFirestoreRepository = /** @class */ (function (_super) {
|
|
2818
|
+
__extends(Buy2WinFirestoreRepository, _super);
|
|
2819
|
+
function Buy2WinFirestoreRepository(firestore) {
|
|
2820
|
+
var _this = _super.call(this) || this;
|
|
2821
|
+
_this.firestore = firestore;
|
|
2822
|
+
_this.collectionName = 'buy2win';
|
|
2823
|
+
_this.model = Buy2Win;
|
|
2824
|
+
return _this;
|
|
2825
|
+
}
|
|
2826
|
+
return Buy2WinFirestoreRepository;
|
|
2827
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2828
|
+
|
|
2829
|
+
var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
|
|
2830
|
+
__extends(LegacyOrderFirestoreRepository, _super);
|
|
2831
|
+
function LegacyOrderFirestoreRepository(firestore) {
|
|
2832
|
+
var _this = _super.call(this, firestore) || this;
|
|
2833
|
+
_this.firestore = firestore;
|
|
2834
|
+
_this.collectionName = 'legacyOrders';
|
|
2835
|
+
return _this;
|
|
2836
|
+
}
|
|
2837
|
+
return LegacyOrderFirestoreRepository;
|
|
2838
|
+
}(OrderFirestoreRepository));
|
|
2839
|
+
|
|
2880
2840
|
var HomeFirestoreRepository = /** @class */ (function (_super) {
|
|
2881
2841
|
__extends(HomeFirestoreRepository, _super);
|
|
2882
2842
|
function HomeFirestoreRepository(firestore) {
|
|
@@ -2945,6 +2905,18 @@
|
|
|
2945
2905
|
return ShopMenuFirestoreRepository;
|
|
2946
2906
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2947
2907
|
|
|
2908
|
+
var ShopSettingsFirestoreRepository = /** @class */ (function (_super) {
|
|
2909
|
+
__extends(ShopSettingsFirestoreRepository, _super);
|
|
2910
|
+
function ShopSettingsFirestoreRepository(firestore) {
|
|
2911
|
+
var _this = _super.call(this) || this;
|
|
2912
|
+
_this.firestore = firestore;
|
|
2913
|
+
_this.collectionName = 'shopSettings';
|
|
2914
|
+
_this.model = ShopSettings;
|
|
2915
|
+
return _this;
|
|
2916
|
+
}
|
|
2917
|
+
return ShopSettingsFirestoreRepository;
|
|
2918
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2919
|
+
|
|
2948
2920
|
var AuthenticationFirebaseAuthService = /** @class */ (function () {
|
|
2949
2921
|
function AuthenticationFirebaseAuthService(firebaseAuth) {
|
|
2950
2922
|
this.firebaseAuth = firebaseAuth;
|
|
@@ -3463,21 +3435,19 @@
|
|
|
3463
3435
|
};
|
|
3464
3436
|
HasuraGraphQLMixin.prototype.fetch = function (params) {
|
|
3465
3437
|
return __awaiter(this, void 0, void 0, function () {
|
|
3466
|
-
var headers,
|
|
3438
|
+
var headers, result;
|
|
3467
3439
|
return __generator(this, function (_a) {
|
|
3468
3440
|
switch (_a.label) {
|
|
3469
3441
|
case 0:
|
|
3470
3442
|
headers = this.headers;
|
|
3471
|
-
return [4 /*yield*/,
|
|
3443
|
+
return [4 /*yield*/, axios__default["default"]({
|
|
3444
|
+
url: "" + this.endpoint,
|
|
3472
3445
|
method: 'POST',
|
|
3473
|
-
|
|
3446
|
+
data: params,
|
|
3474
3447
|
headers: headers,
|
|
3475
3448
|
})];
|
|
3476
3449
|
case 1:
|
|
3477
|
-
|
|
3478
|
-
return [4 /*yield*/, response.json()];
|
|
3479
|
-
case 2:
|
|
3480
|
-
result = _a.sent();
|
|
3450
|
+
result = (_a.sent()).data;
|
|
3481
3451
|
if (!lodash.isNil(result.errors))
|
|
3482
3452
|
throw new Error(JSON.stringify(result.errors));
|
|
3483
3453
|
return [2 /*return*/, result.data];
|
|
@@ -5053,10 +5023,6 @@
|
|
|
5053
5023
|
exports.BeautyQuestionsHelper = BeautyQuestionsHelper;
|
|
5054
5024
|
exports.Buy2Win = Buy2Win;
|
|
5055
5025
|
exports.Buy2WinFirestoreRepository = Buy2WinFirestoreRepository;
|
|
5056
|
-
exports.CampaignDashboard = CampaignDashboard;
|
|
5057
|
-
exports.CampaignDashboardFirestoreRepository = CampaignDashboardFirestoreRepository;
|
|
5058
|
-
exports.CampaignHashtag = CampaignHashtag;
|
|
5059
|
-
exports.CampaignHashtagFirestoreRepository = CampaignHashtagFirestoreRepository;
|
|
5060
5026
|
exports.Category = Category;
|
|
5061
5027
|
exports.CategoryFirestoreRepository = CategoryFirestoreRepository;
|
|
5062
5028
|
exports.CategoryHasuraGraphQL = CategoryHasuraGraphQL;
|
|
@@ -5096,6 +5062,8 @@
|
|
|
5096
5062
|
exports.ShippingMethod = ShippingMethod;
|
|
5097
5063
|
exports.ShopMenu = ShopMenu;
|
|
5098
5064
|
exports.ShopMenuFirestoreRepository = ShopMenuFirestoreRepository;
|
|
5065
|
+
exports.ShopSettings = ShopSettings;
|
|
5066
|
+
exports.ShopSettingsFirestoreRepository = ShopSettingsFirestoreRepository;
|
|
5099
5067
|
exports.SignOut = SignOut;
|
|
5100
5068
|
exports.Subscription = Subscription;
|
|
5101
5069
|
exports.SubscriptionEditionFirestoreRepository = SubscriptionEditionFirestoreRepository;
|