@infrab4a/connect-angular 3.4.0-beta.8 → 3.4.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/angular-connect.module.d.ts +1 -1
- package/bundles/infrab4a-connect-angular.umd.js +6 -7
- package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
- package/consts/backend-url.const.d.ts +1 -0
- package/consts/index.d.ts +1 -1
- package/esm2015/angular-connect.module.js +3 -3
- package/esm2015/consts/backend-url.const.js +2 -0
- package/esm2015/consts/index.js +2 -2
- package/esm2015/services/shipping.service.js +6 -7
- package/fesm2015/infrab4a-connect-angular.js +6 -7
- package/fesm2015/infrab4a-connect-angular.js.map +1 -1
- package/package.json +1 -1
- package/consts/api-url.const.d.ts +0 -1
- package/esm2015/consts/api-url.const.js +0 -2
|
@@ -11,7 +11,7 @@ export declare class AngularConnectModule {
|
|
|
11
11
|
firebase: FirebaseOptions;
|
|
12
12
|
elasticSearch: AxiosElasticSearchConfig;
|
|
13
13
|
hasura: HasuraGraphQLOptions;
|
|
14
|
-
|
|
14
|
+
backendUrl: string;
|
|
15
15
|
}, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFireModule>;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngularConnectModule, never>;
|
|
17
17
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularConnectModule, never, [typeof i1.AngularFireModule, typeof i2.AngularFirestoreModule, typeof i3.AngularHasuraGraphQLModule], never>;
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
}] }];
|
|
391
391
|
} });
|
|
392
392
|
|
|
393
|
-
var
|
|
393
|
+
var BACKEND_URL = 'BACKEND_URL';
|
|
394
394
|
|
|
395
395
|
var DEFAULT_SHOP = 'DEFAULT_SHOP';
|
|
396
396
|
|
|
@@ -1257,6 +1257,8 @@
|
|
|
1257
1257
|
return s;
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
|
+
if (shop == i1$1.Shops.GLAMSHOP)
|
|
1261
|
+
return shippingMethods;
|
|
1260
1262
|
if (_this.isFreeShippingBySubscription(shop, subscriptionPlan)) {
|
|
1261
1263
|
shippingMethods = shippingMethods.map(function (s) {
|
|
1262
1264
|
if (s.serviceName == 'Same Day')
|
|
@@ -1287,9 +1289,6 @@
|
|
|
1287
1289
|
if (shop == i1$1.Shops.MENSMARKET && subscriptionPlan == 'PRIME') {
|
|
1288
1290
|
return true;
|
|
1289
1291
|
}
|
|
1290
|
-
if (shop == i1$1.Shops.GLAMSHOP && subscriptionPlan) {
|
|
1291
|
-
return true;
|
|
1292
|
-
}
|
|
1293
1292
|
return false;
|
|
1294
1293
|
};
|
|
1295
1294
|
ShippingService.prototype.isHolidays = function (datas) {
|
|
@@ -1306,14 +1305,14 @@
|
|
|
1306
1305
|
};
|
|
1307
1306
|
return ShippingService;
|
|
1308
1307
|
}());
|
|
1309
|
-
ShippingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService, deps: [{ token: i1__namespace$3.HttpClient }, { token:
|
|
1308
|
+
ShippingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService, deps: [{ token: i1__namespace$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1310
1309
|
ShippingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService });
|
|
1311
1310
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: ShippingService, decorators: [{
|
|
1312
1311
|
type: i0.Injectable
|
|
1313
1312
|
}], ctorParameters: function () {
|
|
1314
1313
|
return [{ type: i1__namespace$3.HttpClient }, { type: undefined, decorators: [{
|
|
1315
1314
|
type: i0.Inject,
|
|
1316
|
-
args: [
|
|
1315
|
+
args: [BACKEND_URL]
|
|
1317
1316
|
}] }, { type: HomeShopService }];
|
|
1318
1317
|
} });
|
|
1319
1318
|
|
|
@@ -1908,7 +1907,7 @@
|
|
|
1908
1907
|
AngularConnectModule.initializeApp = function (defaultShop, options, nameOrConfig) {
|
|
1909
1908
|
return {
|
|
1910
1909
|
ngModule: AngularConnectModule,
|
|
1911
|
-
providers: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((i1$1.isNil(defaultShop) ? [] : [{ provide: DEFAULT_SHOP, useValue: defaultShop }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_OPTIONS, useValue: options === null || options === void 0 ? void 0 : options.firebase }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_APP_NAME, useValue: nameOrConfig }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [{ provide: ES_CONFIG, useValue: options.elasticSearch }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.
|
|
1910
|
+
providers: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((i1$1.isNil(defaultShop) ? [] : [{ provide: DEFAULT_SHOP, useValue: defaultShop }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_OPTIONS, useValue: options === null || options === void 0 ? void 0 : options.firebase }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.firebase) ? [] : [{ provide: fire.FIREBASE_APP_NAME, useValue: nameOrConfig }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.elasticSearch) ? [] : [{ provide: ES_CONFIG, useValue: options.elasticSearch }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }]))), __read((i1$1.isNil(options === null || options === void 0 ? void 0 : options.backendUrl) ? [] : [{ provide: BACKEND_URL, useValue: options.backendUrl }]))),
|
|
1912
1911
|
};
|
|
1913
1912
|
};
|
|
1914
1913
|
return AngularConnectModule;
|