@daffodil/order 0.83.0 → 0.85.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.
@@ -10,17 +10,17 @@ import { daffIdentifiableArrayToDict } from '@daffodil/core';
10
10
  class MockOrderAddress extends MockDaffPersonalAddress {
11
11
  constructor() {
12
12
  super(...arguments);
13
- this.order_id = faker.datatype.uuid();
13
+ this.order_id = faker.string.uuid();
14
14
  }
15
15
  }
16
16
  class DaffOrderAddressFactory extends DaffModelFactory {
17
17
  constructor() {
18
18
  super(MockOrderAddress);
19
19
  }
20
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderAddressFactory, providedIn: 'root' }); }
20
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderAddressFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderAddressFactory, providedIn: 'root' }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderAddressFactory, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderAddressFactory, decorators: [{
24
24
  type: Injectable,
25
25
  args: [{
26
26
  providedIn: 'root',
@@ -29,7 +29,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
29
29
 
30
30
  class MockOrderCoupon {
31
31
  constructor() {
32
- this.code = faker.random.alphaNumeric(10);
32
+ this.code = faker.string.alphanumeric(10);
33
33
  }
34
34
  }
35
35
  ;
@@ -37,10 +37,10 @@ class DaffOrderCouponFactory extends DaffModelFactory {
37
37
  constructor() {
38
38
  super(MockOrderCoupon);
39
39
  }
40
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderCouponFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
41
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderCouponFactory, providedIn: 'root' }); }
40
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderCouponFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
41
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderCouponFactory, providedIn: 'root' }); }
42
42
  }
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderCouponFactory, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderCouponFactory, decorators: [{
44
44
  type: Injectable,
45
45
  args: [{
46
46
  providedIn: 'root',
@@ -49,13 +49,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
49
49
 
50
50
  class MockOrderPayment {
51
51
  constructor() {
52
- this.id = faker.datatype.uuid();
53
- this.order_id = faker.datatype.uuid();
52
+ this.id = faker.string.uuid();
53
+ this.order_id = faker.string.uuid();
54
54
  this.created_at = faker.date.past().toString();
55
55
  this.updated_at = faker.date.past().toString();
56
56
  this.method = 'card';
57
57
  this.cc_type = 'visa';
58
- this.cc_last4 = faker.datatype.number({ min: 1000, max: 9999 }).toString();
58
+ this.cc_last4 = faker.number.int({ min: 1000, max: 9999 }).toString();
59
59
  this.cc_owner = 'owner';
60
60
  this.cc_exp_month = 'month';
61
61
  this.cc_exp_year = 'year';
@@ -65,10 +65,10 @@ class DaffOrderPaymentFactory extends DaffModelFactory {
65
65
  constructor() {
66
66
  super(MockOrderPayment);
67
67
  }
68
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderPaymentFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
69
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderPaymentFactory, providedIn: 'root' }); }
68
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderPaymentFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
69
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderPaymentFactory, providedIn: 'root' }); }
70
70
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderPaymentFactory, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderPaymentFactory, decorators: [{
72
72
  type: Injectable,
73
73
  args: [{
74
74
  providedIn: 'root',
@@ -77,33 +77,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
77
77
 
78
78
  class MockOrderItem {
79
79
  constructor() {
80
- this.id = faker.datatype.uuid();
80
+ this.id = faker.string.uuid();
81
81
  this.image = {
82
- url: faker.image.imageUrl(),
83
- id: faker.datatype.uuid(),
84
- label: faker.random.word(),
82
+ url: faker.image.url(),
83
+ id: faker.string.uuid(),
84
+ label: faker.lorem.word(),
85
85
  };
86
- this.order_id = faker.datatype.uuid();
87
- this.qty_ordered = faker.datatype.number({ min: 1, max: 1000 });
88
- this.qty_canceled = faker.datatype.number({ min: 1, max: 1000 });
89
- this.qty_fulfilled = faker.datatype.number({ min: 1, max: 1000 });
86
+ this.order_id = faker.string.uuid();
87
+ this.qty_ordered = faker.number.int({ min: 1, max: 1000 });
88
+ this.qty_canceled = faker.number.int({ min: 1, max: 1000 });
89
+ this.qty_fulfilled = faker.number.int({ min: 1, max: 1000 });
90
90
  this.created_at = faker.date.past().toString();
91
91
  this.updated_at = faker.date.past().toString();
92
- this.product_id = faker.datatype.uuid();
93
- this.parent_item_id = faker.datatype.uuid();
94
- this.sku = faker.random.alphaNumeric(20);
95
- this.name = faker.random.word();
96
- this.weight = faker.datatype.number({ min: 1, max: 1000 });
97
- this.qty = faker.datatype.number({ min: 1, max: 10 });
98
- this.price = faker.datatype.number({ min: 1, max: 1000 });
99
- this.discount_amount = faker.datatype.number({ min: 1, max: this.price });
92
+ this.product_id = faker.string.uuid();
93
+ this.parent_item_id = faker.string.uuid();
94
+ this.sku = faker.string.alphanumeric(20);
95
+ this.name = faker.lorem.word();
96
+ this.weight = faker.number.int({ min: 1, max: 1000 });
97
+ this.qty = faker.number.int({ min: 1, max: 10 });
98
+ this.price = faker.number.int({ min: 1, max: 1000 });
99
+ this.discount_amount = faker.number.int({ min: 1, max: this.price });
100
100
  this.discount_percent = Math.floor(this.discount_amount / this.price * 100);
101
- this.tax_percent = faker.datatype.number({ min: 1, max: 10 });
102
- this.tax_amount = faker.datatype.number({ min: 1, max: 10 });
101
+ this.tax_percent = faker.number.int({ min: 1, max: 10 });
102
+ this.tax_amount = faker.number.int({ min: 1, max: 10 });
103
103
  this.row_total = this.price * this.qty;
104
104
  this.row_total_with_discount = (this.price - this.discount_amount) * this.qty;
105
- this.row_weight = faker.datatype.number({ min: 1, max: 100 });
106
- this.tax_before_discount = faker.datatype.number({ min: 1, max: 100 });
105
+ this.row_weight = faker.number.int({ min: 1, max: 100 });
106
+ this.tax_before_discount = faker.number.int({ min: 1, max: 100 });
107
107
  this.type = DaffOrderItemType.Simple;
108
108
  }
109
109
  }
@@ -111,10 +111,10 @@ class DaffOrderItemFactory extends DaffModelFactory {
111
111
  constructor() {
112
112
  super(MockOrderItem);
113
113
  }
114
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderItemFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
115
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderItemFactory, providedIn: 'root' }); }
114
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderItemFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
115
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderItemFactory, providedIn: 'root' }); }
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderItemFactory, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderItemFactory, decorators: [{
118
118
  type: Injectable,
119
119
  args: [{
120
120
  providedIn: 'root',
@@ -125,7 +125,7 @@ class MockOrderShipmentItem {
125
125
  constructor(itemFactory) {
126
126
  this.itemFactory = itemFactory;
127
127
  this.item = this.itemFactory.create();
128
- this.qty = faker.datatype.number({ min: 1, max: 100 });
128
+ this.qty = faker.number.int({ min: 1, max: 100 });
129
129
  }
130
130
  }
131
131
  ;
@@ -133,10 +133,10 @@ class DaffOrderShipmentItemFactory extends DaffModelFactory {
133
133
  constructor(itemFactory) {
134
134
  super(MockOrderShipmentItem, itemFactory);
135
135
  }
136
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentItemFactory, deps: [{ token: DaffOrderItemFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
137
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentItemFactory, providedIn: 'root' }); }
136
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentItemFactory, deps: [{ token: DaffOrderItemFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
137
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentItemFactory, providedIn: 'root' }); }
138
138
  }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentItemFactory, decorators: [{
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentItemFactory, decorators: [{
140
140
  type: Injectable,
141
141
  args: [{
142
142
  providedIn: 'root',
@@ -145,29 +145,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
145
145
 
146
146
  class MockOrderShippingMethod {
147
147
  constructor() {
148
- this.rate_id = faker.datatype.uuid();
149
- this.address_id = faker.datatype.uuid();
150
- this.order_id = faker.datatype.uuid();
148
+ this.rate_id = faker.string.uuid();
149
+ this.address_id = faker.string.uuid();
150
+ this.order_id = faker.string.uuid();
151
151
  this.created_at = faker.date.past().toString();
152
152
  this.updated_at = faker.date.past().toString();
153
- this.carrier = faker.random.word();
154
- this.carrier_title = faker.random.word();
155
- this.code = faker.random.word();
156
- this.method = faker.random.word();
157
- this.method_description = faker.random.word();
158
- this.price = faker.datatype.number({ min: 1, max: 1000 });
159
- this.error_message = faker.random.word();
160
- this.method_title = faker.random.word();
153
+ this.carrier = faker.lorem.word();
154
+ this.carrier_title = faker.lorem.word();
155
+ this.code = faker.lorem.word();
156
+ this.method = faker.lorem.word();
157
+ this.method_description = faker.lorem.word();
158
+ this.price = faker.number.int({ min: 1, max: 1000 });
159
+ this.error_message = faker.lorem.word();
160
+ this.method_title = faker.lorem.word();
161
161
  }
162
162
  }
163
163
  class DaffOrderShippingMethodFactory extends DaffModelFactory {
164
164
  constructor() {
165
165
  super(MockOrderShippingMethod);
166
166
  }
167
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShippingMethodFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
168
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShippingMethodFactory, providedIn: 'root' }); }
167
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShippingMethodFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
168
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShippingMethodFactory, providedIn: 'root' }); }
169
169
  }
170
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShippingMethodFactory, decorators: [{
170
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShippingMethodFactory, decorators: [{
171
171
  type: Injectable,
172
172
  args: [{
173
173
  providedIn: 'root',
@@ -176,10 +176,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
176
176
 
177
177
  class MockOrderTotal {
178
178
  constructor() {
179
- this.label = faker.random.word();
180
- this.value = faker.datatype.number({ min: 1, max: 100 });
181
- this.sort_order = faker.datatype.number({ min: 1, max: 100 });
182
- this.type = faker.datatype.uuid();
179
+ this.label = faker.lorem.word();
180
+ this.value = faker.number.int({ min: 1, max: 100 });
181
+ this.sort_order = faker.number.int({ min: 1, max: 100 });
182
+ this.type = faker.string.uuid();
183
183
  }
184
184
  }
185
185
  ;
@@ -187,10 +187,10 @@ class DaffOrderTotalFactory extends DaffModelFactory {
187
187
  constructor() {
188
188
  super(MockOrderTotal);
189
189
  }
190
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderTotalFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
191
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderTotalFactory, providedIn: 'root' }); }
190
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderTotalFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
191
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderTotalFactory, providedIn: 'root' }); }
192
192
  }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderTotalFactory, decorators: [{
193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderTotalFactory, decorators: [{
194
194
  type: Injectable,
195
195
  args: [{
196
196
  providedIn: 'root',
@@ -204,8 +204,8 @@ class MockOrderInvoice {
204
204
  this.paymentFactory = paymentFactory;
205
205
  this.totalFactory = totalFactory;
206
206
  this.shippingMethodFactory = shippingMethodFactory;
207
- this.items = this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
208
- this.totals = this.totalFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
207
+ this.items = this.itemFactory.createMany(faker.number.int({ min: 1, max: 3 }));
208
+ this.totals = this.totalFactory.createMany(faker.number.int({ min: 1, max: 3 }));
209
209
  this.billing_address = this.addressFactory.create();
210
210
  this.shipping_address = this.addressFactory.create();
211
211
  this.payment = this.paymentFactory.create();
@@ -217,10 +217,10 @@ class DaffOrderInvoiceFactory extends DaffModelFactory {
217
217
  constructor(itemFactory, addressFactory, paymentFactory, totalFactory, shippingMethodFactory) {
218
218
  super(MockOrderInvoice, itemFactory, addressFactory, paymentFactory, totalFactory, shippingMethodFactory);
219
219
  }
220
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderInvoiceFactory, deps: [{ token: DaffOrderShipmentItemFactory }, { token: DaffOrderAddressFactory }, { token: DaffOrderPaymentFactory }, { token: DaffOrderTotalFactory }, { token: DaffOrderShippingMethodFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
221
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderInvoiceFactory, providedIn: 'root' }); }
220
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderInvoiceFactory, deps: [{ token: DaffOrderShipmentItemFactory }, { token: DaffOrderAddressFactory }, { token: DaffOrderPaymentFactory }, { token: DaffOrderTotalFactory }, { token: DaffOrderShippingMethodFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
221
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderInvoiceFactory, providedIn: 'root' }); }
222
222
  }
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderInvoiceFactory, decorators: [{
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderInvoiceFactory, decorators: [{
224
224
  type: Injectable,
225
225
  args: [{
226
226
  providedIn: 'root',
@@ -233,12 +233,12 @@ class MockCompositeOrderItem extends MockOrderItem {
233
233
  this.type = DaffOrderItemType.Composite;
234
234
  this.options = [
235
235
  {
236
- option_label: faker.random.word(),
237
- value_label: faker.random.word(),
236
+ option_label: faker.lorem.word(),
237
+ value_label: faker.lorem.word(),
238
238
  },
239
239
  {
240
- option_label: faker.random.word(),
241
- value_label: faker.random.word(),
240
+ option_label: faker.lorem.word(),
241
+ value_label: faker.lorem.word(),
242
242
  },
243
243
  ];
244
244
  }
@@ -247,10 +247,10 @@ class DaffCompositeOrderItemFactory extends DaffModelFactory {
247
247
  constructor() {
248
248
  super(MockCompositeOrderItem);
249
249
  }
250
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffCompositeOrderItemFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
251
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffCompositeOrderItemFactory, providedIn: 'root' }); }
250
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCompositeOrderItemFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
251
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCompositeOrderItemFactory, providedIn: 'root' }); }
252
252
  }
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffCompositeOrderItemFactory, decorators: [{
253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffCompositeOrderItemFactory, decorators: [{
254
254
  type: Injectable,
255
255
  args: [{
256
256
  providedIn: 'root',
@@ -277,10 +277,10 @@ class DaffConfigurableOrderItemFactory extends DaffModelFactory {
277
277
  constructor() {
278
278
  super(MockConfigurableOrderItem);
279
279
  }
280
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffConfigurableOrderItemFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
281
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffConfigurableOrderItemFactory, providedIn: 'root' }); }
280
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffConfigurableOrderItemFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
281
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffConfigurableOrderItemFactory, providedIn: 'root' }); }
282
282
  }
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffConfigurableOrderItemFactory, decorators: [{
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffConfigurableOrderItemFactory, decorators: [{
284
284
  type: Injectable,
285
285
  args: [{
286
286
  providedIn: 'root',
@@ -289,11 +289,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImpor
289
289
 
290
290
  class MockOrderShipmentTracking {
291
291
  constructor() {
292
- this.tracking_number = faker.random.alphaNumeric(16);
292
+ this.tracking_number = faker.string.alphanumeric(16);
293
293
  this.tracking_url = faker.internet.url();
294
- this.carrier = faker.random.word();
294
+ this.carrier = faker.lorem.word();
295
295
  this.carrier_logo = faker.internet.url();
296
- this.title = faker.random.word();
296
+ this.title = faker.lorem.word();
297
297
  }
298
298
  }
299
299
  ;
@@ -301,10 +301,10 @@ class DaffOrderShipmentTrackingFactory extends DaffModelFactory {
301
301
  constructor() {
302
302
  super(MockOrderShipmentTracking);
303
303
  }
304
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentTrackingFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
305
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentTrackingFactory, providedIn: 'root' }); }
304
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentTrackingFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
305
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentTrackingFactory, providedIn: 'root' }); }
306
306
  }
307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentTrackingFactory, decorators: [{
307
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentTrackingFactory, decorators: [{
308
308
  type: Injectable,
309
309
  args: [{
310
310
  providedIn: 'root',
@@ -317,17 +317,17 @@ class MockOrderShipment {
317
317
  this.itemFactory = itemFactory;
318
318
  this.tracking = this.createTracking();
319
319
  this.items = this.createItems();
320
- this.carrier = faker.random.word();
321
- this.carrier_title = faker.random.word();
322
- this.code = faker.random.word();
323
- this.method = faker.random.word();
324
- this.method_description = faker.random.word();
320
+ this.carrier = faker.lorem.word();
321
+ this.carrier_title = faker.lorem.word();
322
+ this.code = faker.lorem.word();
323
+ this.method = faker.lorem.word();
324
+ this.method_description = faker.lorem.word();
325
325
  }
326
326
  createTracking() {
327
- return this.trackingFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
327
+ return this.trackingFactory.createMany(faker.number.int({ min: 1, max: 3 }));
328
328
  }
329
329
  createItems() {
330
- return this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
330
+ return this.itemFactory.createMany(faker.number.int({ min: 1, max: 3 }));
331
331
  }
332
332
  }
333
333
  ;
@@ -335,10 +335,10 @@ class DaffOrderShipmentFactory extends DaffModelFactory {
335
335
  constructor(trackingFactory, itemFactory) {
336
336
  super(MockOrderShipment, trackingFactory, itemFactory);
337
337
  }
338
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentFactory, deps: [{ token: DaffOrderShipmentTrackingFactory }, { token: DaffOrderShipmentItemFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
339
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentFactory, providedIn: 'root' }); }
338
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentFactory, deps: [{ token: DaffOrderShipmentTrackingFactory }, { token: DaffOrderShipmentItemFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
339
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentFactory, providedIn: 'root' }); }
340
340
  }
341
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderShipmentFactory, decorators: [{
341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderShipmentFactory, decorators: [{
342
342
  type: Injectable,
343
343
  args: [{
344
344
  providedIn: 'root',
@@ -354,21 +354,21 @@ class MockOrder {
354
354
  this.shipmentFactory = shipmentFactory;
355
355
  this.paymentFactory = paymentFactory;
356
356
  this.invoiceFactory = invoiceFactory;
357
- this.id = faker.datatype.uuid();
358
- this.customer_id = faker.datatype.uuid();
357
+ this.id = faker.string.uuid();
358
+ this.customer_id = faker.string.uuid();
359
359
  this.email = faker.internet.email();
360
360
  this.created_at = faker.date.past().toString();
361
361
  this.updated_at = faker.date.past().toString();
362
- this.status = faker.random.word();
362
+ this.status = faker.lorem.word();
363
363
  this.totals = this.createTotals();
364
- this.applied_codes = this.couponFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
365
- this.items = this.itemFactory.createMany(faker.datatype.number({ min: 1, max: 5 }));
366
- this.billing_addresses = this.addressFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
367
- this.shipping_addresses = this.addressFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
368
- this.shipments = this.shipmentFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
364
+ this.applied_codes = this.couponFactory.createMany(faker.number.int({ min: 1, max: 3 }));
365
+ this.items = this.itemFactory.createMany(faker.number.int({ min: 1, max: 5 }));
366
+ this.billing_addresses = this.addressFactory.createMany(faker.number.int({ min: 1, max: 3 }));
367
+ this.shipping_addresses = this.addressFactory.createMany(faker.number.int({ min: 1, max: 3 }));
368
+ this.shipments = this.shipmentFactory.createMany(faker.number.int({ min: 1, max: 3 }));
369
369
  this.payment = this.paymentFactory.create();
370
- this.invoices = this.invoiceFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
371
- this.credits = this.invoiceFactory.createMany(faker.datatype.number({ min: 1, max: 3 }));
370
+ this.invoices = this.invoiceFactory.createMany(faker.number.int({ min: 1, max: 3 }));
371
+ this.credits = this.invoiceFactory.createMany(faker.number.int({ min: 1, max: 3 }));
372
372
  }
373
373
  createTotals() {
374
374
  return [
@@ -405,10 +405,10 @@ class DaffOrderFactory extends DaffModelFactory {
405
405
  constructor(totalFactory, couponFactory, itemFactory, addressFactory, shipmentFactory, paymentFactory, invoiceFactory) {
406
406
  super(MockOrder, totalFactory, couponFactory, itemFactory, addressFactory, shipmentFactory, paymentFactory, invoiceFactory);
407
407
  }
408
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderFactory, deps: [{ token: DaffOrderTotalFactory }, { token: DaffOrderCouponFactory }, { token: DaffOrderItemFactory }, { token: DaffOrderAddressFactory }, { token: DaffOrderShipmentFactory }, { token: DaffOrderPaymentFactory }, { token: DaffOrderInvoiceFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
409
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderFactory, providedIn: 'root' }); }
408
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderFactory, deps: [{ token: DaffOrderTotalFactory }, { token: DaffOrderCouponFactory }, { token: DaffOrderItemFactory }, { token: DaffOrderAddressFactory }, { token: DaffOrderShipmentFactory }, { token: DaffOrderPaymentFactory }, { token: DaffOrderInvoiceFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
409
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderFactory, providedIn: 'root' }); }
410
410
  }
411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderFactory, decorators: [{
411
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderFactory, decorators: [{
412
412
  type: Injectable,
413
413
  args: [{
414
414
  providedIn: 'root',
@@ -430,7 +430,7 @@ class MockOrderCollection {
430
430
  });
431
431
  }
432
432
  createOrders() {
433
- return daffIdentifiableArrayToDict(this.orderFactory.createMany(faker.datatype.number({ min: 3, max: 15 })));
433
+ return daffIdentifiableArrayToDict(this.orderFactory.createMany(faker.number.int({ min: 3, max: 15 })));
434
434
  }
435
435
  }
436
436
  /**
@@ -440,10 +440,10 @@ class DaffOrderCollectionFactory extends DaffModelFactory {
440
440
  constructor(orderFactory, metadataFactory) {
441
441
  super(MockOrderCollection, orderFactory, metadataFactory);
442
442
  }
443
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderCollectionFactory, deps: [{ token: DaffOrderFactory }, { token: i2.DaffCollectionMetadataFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
444
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderCollectionFactory, providedIn: 'root' }); }
443
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderCollectionFactory, deps: [{ token: DaffOrderFactory }, { token: i2.DaffCollectionMetadataFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
444
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderCollectionFactory, providedIn: 'root' }); }
445
445
  }
446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.5", ngImport: i0, type: DaffOrderCollectionFactory, decorators: [{
446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.11", ngImport: i0, type: DaffOrderCollectionFactory, decorators: [{
447
447
  type: Injectable,
448
448
  args: [{
449
449
  providedIn: 'root',