@longvansoftware/storefront-js-client 1.0.9 → 1.0.11

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.
@@ -0,0 +1,218 @@
1
+ export interface AddOpportunityRequest {
2
+ name: string;
3
+ description: string;
4
+ parentId?: string | null;
5
+ priorityName: string;
6
+ referName: string;
7
+ referPhone: string;
8
+ referEmail: string;
9
+ targetId: string;
10
+ extSource: string;
11
+ }
12
+ export interface Opportunity {
13
+ goal: string;
14
+ campaignId: string;
15
+ valueReal: number;
16
+ valueExpect: number;
17
+ successRate: number;
18
+ referName?: string | null;
19
+ referPhone?: string | null;
20
+ referEmail?: string | null;
21
+ id: string;
22
+ createdBy: string;
23
+ ownerId?: string | null;
24
+ workEffortTypeId: string;
25
+ partyId?: string | null;
26
+ name: string;
27
+ description: string;
28
+ parentId: string | null;
29
+ status: string;
30
+ stmId: string;
31
+ createdStamp: string;
32
+ updatedStamp: string;
33
+ endDateExpect?: string | null;
34
+ priorityName: string;
35
+ targetId?: string | null;
36
+ targetType?: string | null;
37
+ targetUrl?: string | null;
38
+ extSource?: string | null;
39
+ connectorId?: string | null;
40
+ processResult?: string | null;
41
+ }
42
+ export interface GetOpportunityRequest {
43
+ pageSize: number;
44
+ pageNumber: number;
45
+ isPagination: boolean;
46
+ sort: {
47
+ key: string;
48
+ asc: boolean;
49
+ };
50
+ }
51
+ export interface GetOpportunity {
52
+ total: number;
53
+ data: OpjectOpportunity[];
54
+ }
55
+ export interface OpjectOpportunity {
56
+ goal: string;
57
+ campaignId: string;
58
+ valueReal: number;
59
+ valueExpect: number;
60
+ successRate: number;
61
+ referName: string;
62
+ referPhone: string;
63
+ referEmail: string;
64
+ id: string;
65
+ createdBy: string;
66
+ ownerId: string;
67
+ workEffortTypeId: string;
68
+ partyId: string;
69
+ name: string;
70
+ description: string;
71
+ parentId: string;
72
+ status: number;
73
+ stmId: string;
74
+ createdStamp: string;
75
+ updatedStamp: string;
76
+ endDateExpect: string;
77
+ priorityName: string;
78
+ targetId: string;
79
+ targetType: string;
80
+ targetUrl: string;
81
+ extSource: string;
82
+ connectorId: string;
83
+ processResult: number;
84
+ }
85
+ export interface getListWorkEffortType {
86
+ id: string;
87
+ name: string;
88
+ group: string;
89
+ createdStamp: string;
90
+ updatedStamp: string;
91
+ updatedBy: string;
92
+ createdBy: string;
93
+ partyId: string;
94
+ actionLinkId: string;
95
+ partyGroupIds: string[];
96
+ description: string;
97
+ workFlow: workFlow;
98
+ }
99
+ export interface ListToDo {
100
+ workEffortId: string;
101
+ toDoList: toDoList;
102
+ }
103
+ export interface toDoList {
104
+ listAttachment: listAttachment;
105
+ isDone: boolean;
106
+ id: string;
107
+ workEffortTypeId: string;
108
+ workEffortType: workEffortType;
109
+ partyId: string;
110
+ name: string;
111
+ description: string;
112
+ parentId: string;
113
+ parentType: string;
114
+ status: number;
115
+ createdStamp: string;
116
+ updatedStamp: string;
117
+ source: string;
118
+ mode: string;
119
+ connectorId: string;
120
+ actionLink: actionLink;
121
+ partyGroupIds: string;
122
+ tagIds: string;
123
+ processResult: number;
124
+ }
125
+ export interface actionLink {
126
+ name: string;
127
+ uri: string;
128
+ type: string;
129
+ partyId: string;
130
+ fromCollection: string;
131
+ toCollection: string;
132
+ group: string;
133
+ params: string;
134
+ id: string;
135
+ createdStamp: string;
136
+ updatedStamp: string;
137
+ updatedBy: string;
138
+ createdBy: string;
139
+ }
140
+ export interface workEffortType {
141
+ id: string;
142
+ name: string;
143
+ group: string;
144
+ createdStamp: string;
145
+ updatedStamp: string;
146
+ updatedBy: string;
147
+ createdBy: string;
148
+ partyId: string;
149
+ actionLinkId: string;
150
+ partyGroupIds: string;
151
+ description: string;
152
+ workFlow: workFlow;
153
+ }
154
+ export interface workFlow {
155
+ stages: stages;
156
+ }
157
+ export interface stages {
158
+ id: string;
159
+ name: string;
160
+ mode: string;
161
+ workEffortTypeId: string;
162
+ }
163
+ export interface listAttachment {
164
+ id: string;
165
+ createdStamp: string;
166
+ createdBy: string;
167
+ updatedBy: string;
168
+ updatedStamp: string;
169
+ partyId: string;
170
+ path: string;
171
+ srcId: string;
172
+ srcName: string;
173
+ srcPath: string;
174
+ srcConfigPathId: string;
175
+ name: string;
176
+ fileType: string;
177
+ type: string;
178
+ status: string;
179
+ referId: string[];
180
+ }
181
+ export interface updateWorkEffortDescription {
182
+ id: string;
183
+ createdStamp: string;
184
+ updatedStamp: string;
185
+ createdBy: string;
186
+ updatedBy: string;
187
+ name: string;
188
+ partyId: string;
189
+ targetId: string;
190
+ targetType: string;
191
+ targetUrl: string;
192
+ description: string;
193
+ status: number;
194
+ parentId: string;
195
+ workEffortTypeId: string;
196
+ stmId: string;
197
+ workflowId: string;
198
+ endDateExpect: string;
199
+ endDateActual: string;
200
+ startDateActual: string;
201
+ startDateExpect: string;
202
+ source: string;
203
+ ownerId: string;
204
+ priorityName: string;
205
+ priorityValue: number;
206
+ extSource: string;
207
+ extSourceTopicId: string;
208
+ extSourceSocialAppId: string;
209
+ extSourceSupportChannelType: string;
210
+ extSourceSocialChannelType: string;
211
+ extSourceSocialAppName: string;
212
+ extSourceTopicUrl: string;
213
+ connectorId: string;
214
+ mode: string;
215
+ partyGroupIds: [string];
216
+ tagIds: [string];
217
+ processResult: number;
218
+ }
@@ -1 +1,2 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,49 @@
1
+ export interface createCompanyRequest {
2
+ name: string;
3
+ phone: string;
4
+ address: string;
5
+ }
6
+ export interface CreateCompany {
7
+ id: string;
8
+ name: string;
9
+ address: string;
10
+ gender: string;
11
+ identityNumber: string;
12
+ birthDate: Date;
13
+ email: string;
14
+ phone: string;
15
+ createdStamp: Date;
16
+ createdBy: string;
17
+ memberLevel: string;
18
+ }
19
+ export interface updateCustomerRequest {
20
+ fullName: string;
21
+ phone: string;
22
+ address: string;
23
+ }
24
+ export interface GetPersonByPartyIds {
25
+ status: string;
26
+ partyId: string;
27
+ fullName: string;
28
+ phone: string;
29
+ address: string;
30
+ gender: string;
31
+ birthDate: Date;
32
+ email: string;
33
+ personalTitle: string;
34
+ imageUrl: string;
35
+ identityNumber: string;
36
+ addressModel: addressModel;
37
+ id: string;
38
+ }
39
+ export interface addressModel {
40
+ id: string;
41
+ addressInfo: string;
42
+ provinceGeoId: string;
43
+ districtGeoId: string;
44
+ wardGeoId: string;
45
+ provinceName: string;
46
+ districtName: string;
47
+ wardName: string;
48
+ isDefault: boolean;
49
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,40 +1,42 @@
1
- {
2
- "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.0.9",
4
- "main": "dist/src/index.js",
5
- "types": "dist/src/index.d.ts",
6
- "files": [
7
- "dist/**/*.d.ts",
8
- "dist/**/*.js"
9
- ],
10
- "directories": {
11
- "test": "jest"
12
- },
13
- "scripts": {
14
- "test": "jest",
15
- "build": "tsc"
16
- },
17
- "keywords": [],
18
- "author": "",
19
- "license": "ISC",
20
- "dependencies": {
21
- "@apollo/client": "^3.9.11",
22
- "apollo-boost": "^0.4.9",
23
- "axios": "^1.6.8",
24
- "crypto-js": "^4.2.0",
25
- "graphql": "^15.8.0",
26
- "graphql-request": "^6.1.0",
27
- "react": "^18.2.0",
28
- "ts-node": "^10.9.2"
29
- },
30
- "devDependencies": {
31
- "@types/axios": "^0.14.0",
32
- "@types/crypto-js": "^4.2.2",
33
- "@types/jest": "^29.5.12",
34
- "@types/node": "^20.12.7",
35
- "jest": "^29.7.0",
36
- "ts-jest": "^29.1.2",
37
- "typescript": "^5.4.5"
38
- },
39
- "description": ""
40
- }
1
+ {
2
+ "name": "@longvansoftware/storefront-js-client",
3
+ "version": "1.0.11",
4
+ "main": "dist/src/index.js",
5
+ "types": "dist/src/index.d.ts",
6
+ "files": [
7
+ "dist/**/*.d.ts",
8
+ "dist/**/*.js"
9
+ ],
10
+ "directories": {
11
+ "test": "jest"
12
+ },
13
+ "scripts": {
14
+ "test": "jest",
15
+ "build": "tsc",
16
+ "publish": "npm run build && npm publish"
17
+ },
18
+ "keywords": [],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "dependencies": {
22
+ "@apollo/client": "^3.9.11",
23
+ "apollo-boost": "^0.4.9",
24
+ "axios": "^1.6.8",
25
+ "crypto-js": "^4.2.0",
26
+ "graphql": "^15.8.0",
27
+ "graphql-request": "^6.1.0",
28
+ "graphql-tag": "^2.12.6",
29
+ "react": "^18.2.0",
30
+ "ts-node": "^10.9.2"
31
+ },
32
+ "devDependencies": {
33
+ "@types/axios": "^0.14.0",
34
+ "@types/crypto-js": "^4.2.2",
35
+ "@types/jest": "^29.5.12",
36
+ "@types/node": "^20.12.7",
37
+ "jest": "^29.7.0",
38
+ "ts-jest": "^29.1.2",
39
+ "typescript": "^5.4.5"
40
+ },
41
+ "description": ""
42
+ }