@infrab4a/connect 1.0.0-beta.17 → 1.0.0-beta.18

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.
@@ -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-md5'), require('axios'), require('firebase'), require('firebase/app'), require('gql-query-builder'), require('node-fetch')) :
3
- typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-md5', 'axios', 'firebase', 'firebase/app', 'gql-query-builder', 'node-fetch'], 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.tsMd5, global.axios, global.firebase, global.firebase$1, global["gql-query-builder"], global.fetch));
5
- })(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsMd5, axios, firebase, firebase$1, gqlQueryBuilder, fetch) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('class-transformer'), require('date-fns'), require('lodash'), require('ts-md5'), require('axios'), require('firebase'), require('gql-query-builder'), require('node-fetch')) :
3
+ typeof define === 'function' && define.amd ? define('@infrab4a/connect', ['exports', 'reflect-metadata', 'class-transformer', 'date-fns', 'lodash', 'ts-md5', 'axios', 'firebase', 'gql-query-builder', 'node-fetch'], 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-md5"], global.axios, global.firebase, global["gql-query-builder"], global["node-fetch"]));
5
+ })(this, (function (exports, reflectMetadata, classTransformer, dateFns, lodash, tsMd5, axios, firebase, gqlQueryBuilder, fetch) { '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 firebase__default$1 = /*#__PURE__*/_interopDefaultLegacy(firebase$1);
12
11
  var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
13
12
 
14
13
  var BaseModel = /** @class */ (function () {
@@ -2707,7 +2706,7 @@
2707
2706
  var credentials, user;
2708
2707
  return __generator(this, function (_a) {
2709
2708
  switch (_a.label) {
2710
- case 0: return [4 /*yield*/, this.firebaseAuth.signInWithPopup(new firebase__default$1["default"].auth.GoogleAuthProvider())];
2709
+ case 0: return [4 /*yield*/, this.firebaseAuth.signInWithPopup(new firebase__default["default"].auth.GoogleAuthProvider())];
2711
2710
  case 1:
2712
2711
  credentials = _a.sent();
2713
2712
  user = credentials.user;
@@ -4007,59 +4006,6 @@
4007
4006
  return VariantHasuraGraphQLRepository;
4008
4007
  }(withCrudHasuraGraphQL(withHasuraGraphQL(Base))));
4009
4008
 
4010
- var MilleniumProduct = /** @class */ (function (_super) {
4011
- __extends(MilleniumProduct, _super);
4012
- function MilleniumProduct() {
4013
- return _super !== null && _super.apply(this, arguments) || this;
4014
- }
4015
- Object.defineProperty(MilleniumProduct, "identifiersFields", {
4016
- get: function () {
4017
- return ['id'];
4018
- },
4019
- enumerable: false,
4020
- configurable: true
4021
- });
4022
- return MilleniumProduct;
4023
- }(BaseModel));
4024
- __decorate([
4025
- classTransformer.Type(function () { return Product; }),
4026
- __metadata("design:type", Product)
4027
- ], MilleniumProduct.prototype, "product", void 0);
4028
- var MilleniumProductHasuraGraphQL = /** @class */ (function (_super) {
4029
- __extends(MilleniumProductHasuraGraphQL, _super);
4030
- function MilleniumProductHasuraGraphQL() {
4031
- return _super !== null && _super.apply(this, arguments) || this;
4032
- }
4033
- return MilleniumProductHasuraGraphQL;
4034
- }(MilleniumProduct));
4035
- __decorate([
4036
- classTransformer.Type(function () { return ProductHasuraGraphQL; }),
4037
- __metadata("design:type", ProductHasuraGraphQL)
4038
- ], MilleniumProductHasuraGraphQL.prototype, "product", void 0);
4039
- var MilleniumProductHasuraGraphQLRepository = /** @class */ (function (_super) {
4040
- __extends(MilleniumProductHasuraGraphQLRepository, _super);
4041
- function MilleniumProductHasuraGraphQLRepository(endpoint, authOptions, productRepository) {
4042
- return _super.call(this, {
4043
- endpoint: endpoint,
4044
- authOptions: authOptions,
4045
- model: MilleniumProduct,
4046
- tableName: 'product_milleniun',
4047
- fields: [
4048
- 'id',
4049
- { productId: { columnName: 'product_id' } },
4050
- { codProduct: { columnName: 'cod_product' } },
4051
- { internalId: { columnName: 'internal_id' } },
4052
- { createdAt: { columnName: 'created_at' } },
4053
- { updatedAt: { columnName: 'updated_at' } },
4054
- {
4055
- product: { columnName: 'product', foreignKeyColumn: { id: 'product_id' }, fields: productRepository.fields },
4056
- },
4057
- ],
4058
- }) || this;
4059
- }
4060
- return MilleniumProductHasuraGraphQLRepository;
4061
- }(withCrudHasuraGraphQL(withHasuraGraphQL(Base))));
4062
-
4063
4009
  /**
4064
4010
  * Generated bundle index. Do not edit.
4065
4011
  */
@@ -4196,9 +4142,6 @@
4196
4142
  exports.LeadFirestoreRepository = LeadFirestoreRepository;
4197
4143
  exports.LegacyOrderFirestoreRepository = LegacyOrderFirestoreRepository;
4198
4144
  exports.LineItem = LineItem;
4199
- exports.MilleniumProduct = MilleniumProduct;
4200
- exports.MilleniumProductHasuraGraphQL = MilleniumProductHasuraGraphQL;
4201
- exports.MilleniumProductHasuraGraphQLRepository = MilleniumProductHasuraGraphQLRepository;
4202
4145
  exports.NotFoundError = NotFoundError;
4203
4146
  exports.Order = Order;
4204
4147
  exports.OrderFirestoreRepository = OrderFirestoreRepository;