@jagota/interfaces 1.3.35 → 1.3.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jagota/interfaces",
3
- "version": "1.3.35",
3
+ "version": "1.3.37",
4
4
  "type": "module",
5
5
  "description": "Interfaces for the Jagota Brothers project",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
- export * from './interfaces/prospect.interface';
2
- export * from './interfaces/codeName.interface';
3
- export * from './interfaces/contact.interface';
4
- export * from './interfaces/attachment.interface';
5
- export * from './interfaces/product.interface';
6
- export * from './interfaces/bidding.interface';
1
+ export * from './interfaces/prospect.interface';
2
+ export * from './interfaces/codeName.interface';
3
+ export * from './interfaces/contact.interface';
4
+ export * from './interfaces/attachment.interface';
5
+ export * from './interfaces/product.interface';
6
+ export * from './interfaces/bidding.interface';
7
+ export * from './interfaces/customer-snapshot.interface';
@@ -6,6 +6,7 @@ export interface ICustomerSnapshotListPayload {
6
6
  salesChannel: string;
7
7
  interval: string;
8
8
  salesCodeArr: string;
9
+ page: number;
9
10
  }
10
11
 
11
12
  export interface spendingHistoryItem {
@@ -25,9 +26,39 @@ export interface ICustomerSnapshotListItem {
25
26
  shopType: string;
26
27
  stockProductCount: string;
27
28
  orderTakingProductCount: string;
29
+ statusText: string;
30
+ salesCode: string;
31
+ salesName: string;
32
+ totalSalePercentage: number;
28
33
  }
29
34
 
30
35
 
31
36
  export interface ICustomerSnapshotListResponse extends IBaseResponse {
32
37
  data: ICustomerSnapshotListItem[];
38
+ }
39
+
40
+ export interface ICustomerSnapshotDetailPayload {
41
+ custCode: string;
42
+ }
43
+
44
+ export interface ICustomerSnapshotDetail {
45
+ custCode: string;
46
+ custName: string;
47
+ status: string;
48
+ statusText: string;
49
+ custType: string;
50
+ tradeName: string;
51
+ shopType: string;
52
+ custGroup: string;
53
+ salesChannel: string;
54
+ lastSales: Date;
55
+ salesAmountToday: number;
56
+ salesAmountCurrentMonth: number;
57
+ salesAmountLifeTime: number;
58
+ averageSale30Days: number;
59
+ joinDate: Date;
60
+ }
61
+
62
+ export interface ICustomerSnapshotDetailResponse extends IBaseResponse {
63
+ data: ICustomerSnapshotDetail;
33
64
  }