@sendhome/common 1.0.169 → 1.0.171
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/build/events/publishers/collection-created-event.d.ts +2 -2
- package/build/events/publishers/collection-updated-event.d.ts +2 -2
- package/build/events/publishers/order-created-event.d.ts +2 -2
- package/build/events/publishers/order-updated-event.d.ts +2 -2
- package/build/events/publishers/product-created-event.d.ts +2 -4
- package/build/events/publishers/product-updated-event.d.ts +2 -4
- package/build/events/publishers/productItem-created-event.d.ts +3 -5
- package/build/events/publishers/productItem-updated-event.d.ts +3 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { CollectionStatus } from "../types/collection-status";
|
|
3
|
-
import {
|
|
3
|
+
import { Category } from "../types/category";
|
|
4
4
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
5
|
export interface CollectionCreatedEvent {
|
|
6
6
|
subject: Subjects.CollectionCreated;
|
|
@@ -10,7 +10,7 @@ export interface CollectionCreatedEvent {
|
|
|
10
10
|
order: string;
|
|
11
11
|
products: string[];
|
|
12
12
|
amount: number;
|
|
13
|
-
collection_type:
|
|
13
|
+
collection_type: Category;
|
|
14
14
|
company: string;
|
|
15
15
|
module: string;
|
|
16
16
|
branch: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { CollectionStatus } from "../types/collection-status";
|
|
3
|
-
import {
|
|
3
|
+
import { Category } from "../types/category";
|
|
4
4
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
5
|
export interface CollectionUpdatedEvent {
|
|
6
6
|
subject: Subjects.CollectionUpdated;
|
|
@@ -10,7 +10,7 @@ export interface CollectionUpdatedEvent {
|
|
|
10
10
|
order: string;
|
|
11
11
|
products: string[];
|
|
12
12
|
amount: number;
|
|
13
|
-
collection_type:
|
|
13
|
+
collection_type: Category;
|
|
14
14
|
company: string;
|
|
15
15
|
module: string;
|
|
16
16
|
branch: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
|
-
import {
|
|
3
|
+
import { Category } from "../types/category";
|
|
4
4
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
5
|
import { SendCountry } from "../types/send-country";
|
|
6
6
|
interface CardPaymentDetails {
|
|
@@ -23,7 +23,7 @@ export interface OrderCreatedEvent {
|
|
|
23
23
|
data: {
|
|
24
24
|
id: string;
|
|
25
25
|
order_number: number;
|
|
26
|
-
order_type:
|
|
26
|
+
order_type: Category;
|
|
27
27
|
items: string[];
|
|
28
28
|
pay_amount: number;
|
|
29
29
|
receive_amount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { OrderStatus } from "../types/order-status";
|
|
3
|
-
import {
|
|
3
|
+
import { Category } from "../types/category";
|
|
4
4
|
import { ReceiveCountry } from "../types/receive-country";
|
|
5
5
|
import { SendCountry } from "../types/send-country";
|
|
6
6
|
interface CardPaymentDetails {
|
|
@@ -23,7 +23,7 @@ export interface OrderUpdatedEvent {
|
|
|
23
23
|
data: {
|
|
24
24
|
id: string;
|
|
25
25
|
order_number: number;
|
|
26
|
-
order_type:
|
|
26
|
+
order_type: Category;
|
|
27
27
|
items: string[];
|
|
28
28
|
pay_amount: number;
|
|
29
29
|
receive_amount: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
|
-
import { ProductClass } from "../types/product_class";
|
|
3
2
|
import { ProductStatus } from "../types/product-status";
|
|
4
|
-
import {
|
|
3
|
+
import { Category } from "../types/category";
|
|
5
4
|
import { UnitType } from "../types/unit-type";
|
|
6
5
|
import { ReceiveCountry } from "../types/receive-country";
|
|
7
6
|
interface IGroceriesFields {
|
|
@@ -42,8 +41,7 @@ export interface ProductCreatedEvent {
|
|
|
42
41
|
product_id: number;
|
|
43
42
|
name: string;
|
|
44
43
|
description: string;
|
|
45
|
-
|
|
46
|
-
product_class: ProductClass;
|
|
44
|
+
product_category: Category;
|
|
47
45
|
brand: string;
|
|
48
46
|
unit: UnitType;
|
|
49
47
|
unit_value: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
|
-
import { ProductClass } from "../types/product_class";
|
|
3
2
|
import { ProductStatus } from "../types/product-status";
|
|
4
|
-
import {
|
|
3
|
+
import { Category } from "../types/category";
|
|
5
4
|
import { UnitType } from "../types/unit-type";
|
|
6
5
|
import { ReceiveCountry } from "../types/receive-country";
|
|
7
6
|
interface IGroceriesFields {
|
|
@@ -42,8 +41,7 @@ export interface ProductUpdatedEvent {
|
|
|
42
41
|
product_id: number;
|
|
43
42
|
name: string;
|
|
44
43
|
description: string;
|
|
45
|
-
|
|
46
|
-
product_class: ProductClass;
|
|
44
|
+
product_category: Category;
|
|
47
45
|
brand: string;
|
|
48
46
|
unit: UnitType;
|
|
49
47
|
unit_value: number;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { ProductStatus } from "../types/product-status";
|
|
3
3
|
import { ReceiveCountry } from "../types/receive-country";
|
|
4
|
-
import {
|
|
5
|
-
import { ProductClass } from "../types/product_class";
|
|
4
|
+
import { Category } from "../types/category";
|
|
6
5
|
import { UnitType } from "../types/unit-type";
|
|
7
6
|
interface IGroceriesFields {
|
|
8
7
|
expiration_date?: Date;
|
|
@@ -39,8 +38,7 @@ interface ProductAttrs {
|
|
|
39
38
|
product_id: number;
|
|
40
39
|
name: string;
|
|
41
40
|
description: string;
|
|
42
|
-
|
|
43
|
-
product_class: ProductClass;
|
|
41
|
+
product_category: Category;
|
|
44
42
|
brand?: string;
|
|
45
43
|
unit?: UnitType;
|
|
46
44
|
unit_value?: number;
|
|
@@ -55,7 +53,7 @@ export interface ProductItemCreatedEvent {
|
|
|
55
53
|
data: {
|
|
56
54
|
id: string;
|
|
57
55
|
price: number;
|
|
58
|
-
|
|
56
|
+
product_category: Category;
|
|
59
57
|
category: string;
|
|
60
58
|
brand: string;
|
|
61
59
|
product: ProductAttrs | string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Subjects } from "../subjects/subjects";
|
|
2
2
|
import { ProductStatus } from "../types/product-status";
|
|
3
3
|
import { ReceiveCountry } from "../types/receive-country";
|
|
4
|
-
import {
|
|
5
|
-
import { ProductClass } from "../types/product_class";
|
|
4
|
+
import { Category } from "../types/category";
|
|
6
5
|
import { UnitType } from "../types/unit-type";
|
|
7
6
|
interface IGroceriesFields {
|
|
8
7
|
expiration_date?: Date;
|
|
@@ -39,8 +38,7 @@ interface ProductAttrs {
|
|
|
39
38
|
product_id: number;
|
|
40
39
|
name: string;
|
|
41
40
|
description: string;
|
|
42
|
-
|
|
43
|
-
product_class: ProductClass;
|
|
41
|
+
product_category: Category;
|
|
44
42
|
brand?: string;
|
|
45
43
|
unit?: UnitType;
|
|
46
44
|
unit_value?: number;
|
|
@@ -55,7 +53,7 @@ export interface ProductItemUpdatedEvent {
|
|
|
55
53
|
data: {
|
|
56
54
|
id: string;
|
|
57
55
|
price: number;
|
|
58
|
-
|
|
56
|
+
product_category: Category;
|
|
59
57
|
category: string;
|
|
60
58
|
brand: string;
|
|
61
59
|
product: ProductAttrs | string;
|