cecon-interfaces 1.6.97 → 1.6.98

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  import { CustomerEntity } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
3
  import { ICustomerMobyo } from '../interfaces/i-customer-mobyo';
4
+ import { IPrivacySetting } from '../interfaces/i-customer-privacy';
4
5
  export declare class CustomerMobyoEntity extends CustomerEntity implements ICustomerMobyo {
5
6
  active: boolean;
6
7
  addresses: IAddress[];
@@ -12,5 +13,6 @@ export declare class CustomerMobyoEntity extends CustomerEntity implements ICust
12
13
  uid: string;
13
14
  version: string;
14
15
  birthday: Date | null;
16
+ privacySettings: IPrivacySetting;
15
17
  constructor(data?: Partial<CustomerMobyoEntity>);
16
18
  }
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.CustomerMobyoEntity = void 0;
19
19
  var customer_1 = require("../../../customer");
20
+ var customer_privacy_entity_1 = require("./customer-privacy.entity");
20
21
  var CustomerMobyoEntity = /** @class */ (function (_super) {
21
22
  __extends(CustomerMobyoEntity, _super);
22
23
  // #endregion Properties (9)
@@ -34,6 +35,7 @@ var CustomerMobyoEntity = /** @class */ (function (_super) {
34
35
  _this.uid = '';
35
36
  _this.version = '1.0.2';
36
37
  _this.birthday = null;
38
+ _this.privacySettings = new customer_privacy_entity_1.PrivacySettingEntity();
37
39
  if (data) {
38
40
  for (var key in data) {
39
41
  if (data.hasOwnProperty(key) && key in _this) {
@@ -0,0 +1,10 @@
1
+ import { IPrivacySetting } from '../interfaces/i-customer-privacy';
2
+ export declare class PrivacySettingEntity implements IPrivacySetting {
3
+ orderNotifications: boolean;
4
+ pushNotificationsPromo: boolean;
5
+ emailNotificationsPromo: boolean;
6
+ whatsAppNotificationsPromo: boolean;
7
+ smsNotificationsPromo: boolean;
8
+ acceptPrivayAndPolicyTerm: boolean;
9
+ constructor(data?: Partial<PrivacySettingEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivacySettingEntity = void 0;
4
+ var PrivacySettingEntity = /** @class */ (function () {
5
+ // #endregion Properties (9)
6
+ // #region Constructors (1)
7
+ function PrivacySettingEntity(data) {
8
+ // #region Properties (9)
9
+ this.orderNotifications = false;
10
+ this.pushNotificationsPromo = false;
11
+ this.emailNotificationsPromo = false;
12
+ this.whatsAppNotificationsPromo = false;
13
+ this.smsNotificationsPromo = false;
14
+ this.acceptPrivayAndPolicyTerm = false;
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return PrivacySettingEntity;
24
+ }());
25
+ exports.PrivacySettingEntity = PrivacySettingEntity;
@@ -1 +1,2 @@
1
1
  export { CustomerMobyoEntity } from './customer-mobyo.entity';
2
+ export { PrivacySettingEntity } from './customer-privacy.entity';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomerMobyoEntity = void 0;
3
+ exports.PrivacySettingEntity = exports.CustomerMobyoEntity = void 0;
4
4
  var customer_mobyo_entity_1 = require("./customer-mobyo.entity");
5
5
  Object.defineProperty(exports, "CustomerMobyoEntity", { enumerable: true, get: function () { return customer_mobyo_entity_1.CustomerMobyoEntity; } });
6
+ var customer_privacy_entity_1 = require("./customer-privacy.entity");
7
+ Object.defineProperty(exports, "PrivacySettingEntity", { enumerable: true, get: function () { return customer_privacy_entity_1.PrivacySettingEntity; } });
@@ -1,5 +1,6 @@
1
1
  import { ICustomer } from '../../../customer';
2
2
  import { IAddress } from '../../../general';
3
+ import { IPrivacySetting } from './i-customer-privacy';
3
4
  export interface ICustomerMobyo extends ICustomer {
4
5
  active: boolean;
5
6
  addresses: IAddress[];
@@ -11,4 +12,5 @@ export interface ICustomerMobyo extends ICustomer {
11
12
  uid: string;
12
13
  version: string;
13
14
  birthday: Date | null;
15
+ privacySettings: IPrivacySetting;
14
16
  }
@@ -0,0 +1,8 @@
1
+ export interface IPrivacySetting {
2
+ orderNotifications: boolean;
3
+ pushNotificationsPromo: boolean;
4
+ emailNotificationsPromo: boolean;
5
+ whatsAppNotificationsPromo: boolean;
6
+ smsNotificationsPromo: boolean;
7
+ acceptPrivayAndPolicyTerm: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export { ICustomerMobyo } from './i-customer-mobyo';
2
2
  export { IUsedVoucher } from './i-used-voucher';
3
+ export { IPrivacySetting } from './i-customer-privacy';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.96",
3
+ "version": "1.6.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.97",
3
+ "version": "1.6.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,8 @@
8
8
  "scripts": {
9
9
  "packagr": "ng-packagr -p ng-package.json",
10
10
  "build": "tsc src/index.ts --outDir dist",
11
- "test": "echo \"Error: no test specified\" && exit 1"
11
+ "test": "echo \"Error: no test specified\" && exit 1",
12
+ "deploy": "npm run packagr && npm run build && npm publish"
12
13
  },
13
14
  "repository": {
14
15
  "type": "git",