@longvansoftware/service-js-client 1.16.1 → 1.16.3
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/README.md +93 -93
- package/dist/src/graphql/accounting_service/mutations.js +96 -96
- package/dist/src/graphql/accounting_service/queries.js +57 -57
- package/dist/src/graphql/auth/mutations.js +235 -235
- package/dist/src/graphql/auth/queries.js +68 -68
- package/dist/src/graphql/cloud/mutations.js +282 -282
- package/dist/src/graphql/cloud/queries.js +341 -341
- package/dist/src/graphql/computing/mutations.js +303 -303
- package/dist/src/graphql/computing/queries.js +548 -548
- package/dist/src/graphql/crm/mutations.d.ts +2 -0
- package/dist/src/graphql/crm/mutations.js +427 -391
- package/dist/src/graphql/crm/queries.d.ts +1 -0
- package/dist/src/graphql/crm/queries.js +392 -358
- package/dist/src/graphql/crm_camping/mutations.js +32 -32
- package/dist/src/graphql/crm_camping/queries.js +228 -199
- package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
- package/dist/src/graphql/orderGraphQL/queries.js +387 -387
- package/dist/src/graphql/payment/mutations.js +45 -45
- package/dist/src/graphql/payment/queries.js +60 -60
- package/dist/src/graphql/paymentLV/mutations.js +19 -19
- package/dist/src/graphql/paymentLV/queries.js +75 -75
- package/dist/src/graphql/product/queries.d.ts +1 -0
- package/dist/src/graphql/product/queries.js +910 -892
- package/dist/src/graphql/quicklab_service/mutations.js +154 -154
- package/dist/src/graphql/quicklab_service/queries.js +108 -108
- package/dist/src/graphql/resource_permission/mutations.js +57 -57
- package/dist/src/graphql/resource_permission/queries.js +13 -13
- package/dist/src/graphql/service/mutations.js +228 -228
- package/dist/src/graphql/service/queries.js +128 -128
- package/dist/src/graphql/user/mutations.js +214 -214
- package/dist/src/graphql/user/queries.js +312 -312
- package/dist/src/lib/crm/index.d.ts +3 -0
- package/dist/src/lib/crm/index.js +51 -0
- package/dist/src/lib/crm_camping/index.d.ts +1 -1
- package/dist/src/lib/crm_camping/index.js +10 -6
- package/dist/src/lib/product/index.d.ts +1 -0
- package/dist/src/lib/product/index.js +18 -0
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/lib/serviceSDK.js +12 -12
- package/dist/src/utils/build-field-string.d.ts +1 -0
- package/dist/src/utils/build-field-string.js +16 -0
- package/package.json +43 -44
- package/dist/src/graphql/campaign/mutations.d.ts +0 -1
- package/dist/src/graphql/campaign/mutations.js +0 -34
- package/dist/src/graphql/campaign/queries.d.ts +0 -9
- package/dist/src/graphql/campaign/queries.js +0 -412
- package/dist/src/graphql/cashbook/queries.d.ts +0 -2
- package/dist/src/graphql/cashbook/queries.js +0 -99
- package/dist/src/graphql/paymentV2/mutations.d.ts +0 -3
- package/dist/src/graphql/paymentV2/mutations.js +0 -54
- package/dist/src/graphql/paymentV2/queries.d.ts +0 -6
- package/dist/src/graphql/paymentV2/queries.js +0 -186
- package/dist/src/graphql/store/mutations.d.ts +0 -1
- package/dist/src/graphql/store/mutations.js +0 -29
- package/dist/src/graphql/store/queries.d.ts +0 -1
- package/dist/src/graphql/store/queries.js +0 -29
- package/dist/src/lib/accounting/index.d.ts +0 -5
- package/dist/src/lib/accounting/index.js +0 -32
- package/dist/src/lib/campaign/index.d.ts +0 -20
- package/dist/src/lib/campaign/index.js +0 -213
- package/dist/src/lib/cashbook/index.d.ts +0 -6
- package/dist/src/lib/cashbook/index.js +0 -56
- package/dist/src/lib/comhub/index.d.ts +0 -6
- package/dist/src/lib/comhub/index.js +0 -50
- package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -6
- package/dist/src/lib/deepLinkVietQr/index.js +0 -45
- package/dist/src/lib/getImage/index.d.ts +0 -4
- package/dist/src/lib/getImage/index.js +0 -10
- package/dist/src/lib/image/index.d.ts +0 -7
- package/dist/src/lib/image/index.js +0 -49
- package/dist/src/lib/omnigateway/index.d.ts +0 -7
- package/dist/src/lib/omnigateway/index.js +0 -58
- package/dist/src/lib/paymentV2/index.d.ts +0 -13
- package/dist/src/lib/paymentV2/index.js +0 -163
- package/dist/src/lib/portal/index.d.ts +0 -21
- package/dist/src/lib/portal/index.js +0 -225
- package/dist/src/lib/store/index.d.ts +0 -30
- package/dist/src/lib/store/index.js +0 -74
- package/dist/src/lib/token/index.d.ts +0 -5
- package/dist/src/lib/token/index.js +0 -32
- package/dist/src/lib/upload/index.d.ts +0 -5
- package/dist/src/lib/upload/index.js +0 -35
- package/dist/src/lib/warehouseV2/index.d.ts +0 -13
- package/dist/src/lib/warehouseV2/index.js +0 -54
- package/dist/src/lib/zca/index.d.ts +0 -12
- package/dist/src/lib/zca/index.js +0 -41
- package/dist/src/types/campaign.d.ts +0 -14
- package/dist/src/types/campaign.js +0 -2
- package/dist/src/types/invoice.d.ts +0 -13
- package/dist/src/types/invoice.js +0 -2
- package/dist/src/types/store.d.ts +0 -158
- package/dist/src/types/store.js +0 -3
- package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
- package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -2,332 +2,332 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GET_USERS_BY_TEAM_ID = exports.GET_TEAM_BY_USER_ID = exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = exports.GET_WARDS_BY_PROVINCE_ID = exports.GET_WARDS = exports.GET_DISTRICTS = exports.GET_PROVINCES = exports.GET_CONTACT_INFOS_BY_COMPANY_ID = exports.GET_COMPANY_BY_CONTACT_INFO_ID = exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = exports.GET_POSTIONS_BY_EMPLOYEES_ID = exports.SEARCH_EMPLOYEES = exports.SEARCH_CUSTOMER = exports.GET_CUSTOMER_BY_ID = exports.SEARCH_COMPANY = exports.GET_PERSON_BY_IDS_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
|
-
exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
|
6
|
-
query GetPersonByIds($partyIds: [String!]!) {
|
7
|
-
getPersonByPartyIds(partyIds: $partyIds) {
|
8
|
-
status
|
9
|
-
partyId
|
10
|
-
fullName
|
11
|
-
phone
|
12
|
-
address
|
13
|
-
gender
|
14
|
-
birthDate
|
15
|
-
email
|
16
|
-
personalTitle
|
17
|
-
imageUrl
|
18
|
-
identityNumber
|
19
|
-
id
|
20
|
-
addressModel {
|
21
|
-
id
|
22
|
-
addressInfo
|
23
|
-
provinceGeoId
|
24
|
-
districtGeoId
|
25
|
-
wardGeoId
|
26
|
-
provinceName
|
27
|
-
districtName
|
28
|
-
wardName
|
29
|
-
isDefault
|
30
|
-
}
|
31
|
-
}
|
32
|
-
}
|
5
|
+
exports.GET_PERSON_BY_IDS_QUERY = (0, graphql_tag_1.gql) `
|
6
|
+
query GetPersonByIds($partyIds: [String!]!) {
|
7
|
+
getPersonByPartyIds(partyIds: $partyIds) {
|
8
|
+
status
|
9
|
+
partyId
|
10
|
+
fullName
|
11
|
+
phone
|
12
|
+
address
|
13
|
+
gender
|
14
|
+
birthDate
|
15
|
+
email
|
16
|
+
personalTitle
|
17
|
+
imageUrl
|
18
|
+
identityNumber
|
19
|
+
id
|
20
|
+
addressModel {
|
21
|
+
id
|
22
|
+
addressInfo
|
23
|
+
provinceGeoId
|
24
|
+
districtGeoId
|
25
|
+
wardGeoId
|
26
|
+
provinceName
|
27
|
+
districtName
|
28
|
+
wardName
|
29
|
+
isDefault
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
33
|
`;
|
34
|
-
exports.SEARCH_COMPANY = (0, graphql_tag_1.gql) `
|
35
|
-
query SearchCompany($keyword: String, $orgId: String!, $limit: Int) {
|
36
|
-
searchCompany(keyword: $keyword, orgId: $orgId, limit: $limit) {
|
37
|
-
id
|
38
|
-
name
|
39
|
-
address
|
40
|
-
gender
|
41
|
-
identityNumber
|
42
|
-
birthDate
|
43
|
-
email
|
44
|
-
phone
|
45
|
-
createdStamp
|
46
|
-
createdBy
|
47
|
-
memberLevel
|
48
|
-
}
|
49
|
-
}
|
34
|
+
exports.SEARCH_COMPANY = (0, graphql_tag_1.gql) `
|
35
|
+
query SearchCompany($keyword: String, $orgId: String!, $limit: Int) {
|
36
|
+
searchCompany(keyword: $keyword, orgId: $orgId, limit: $limit) {
|
37
|
+
id
|
38
|
+
name
|
39
|
+
address
|
40
|
+
gender
|
41
|
+
identityNumber
|
42
|
+
birthDate
|
43
|
+
email
|
44
|
+
phone
|
45
|
+
createdStamp
|
46
|
+
createdBy
|
47
|
+
memberLevel
|
48
|
+
}
|
49
|
+
}
|
50
50
|
`;
|
51
|
-
exports.GET_CUSTOMER_BY_ID = (0, graphql_tag_1.gql) `
|
52
|
-
query GetCustomerById($id: String!) {
|
53
|
-
getCustomerById(id: $id) {
|
54
|
-
id
|
55
|
-
name
|
56
|
-
address
|
57
|
-
gender
|
58
|
-
identityNumber
|
59
|
-
birthDate
|
60
|
-
email
|
61
|
-
phone
|
62
|
-
createdStamp
|
63
|
-
createdBy
|
64
|
-
memberLevel
|
65
|
-
}
|
66
|
-
}
|
51
|
+
exports.GET_CUSTOMER_BY_ID = (0, graphql_tag_1.gql) `
|
52
|
+
query GetCustomerById($id: String!) {
|
53
|
+
getCustomerById(id: $id) {
|
54
|
+
id
|
55
|
+
name
|
56
|
+
address
|
57
|
+
gender
|
58
|
+
identityNumber
|
59
|
+
birthDate
|
60
|
+
email
|
61
|
+
phone
|
62
|
+
createdStamp
|
63
|
+
createdBy
|
64
|
+
memberLevel
|
65
|
+
}
|
66
|
+
}
|
67
67
|
`;
|
68
|
-
exports.SEARCH_CUSTOMER = (0, graphql_tag_1.gql) `
|
69
|
-
query SearchCustomers(
|
70
|
-
$keyword: String
|
71
|
-
$type: String
|
72
|
-
$startCreatedDate: DateCustom
|
73
|
-
$endCreatedDate: DateCustom
|
74
|
-
$memberLevel: String
|
75
|
-
$partnerId: String!
|
76
|
-
$currentPage: Int!
|
77
|
-
$pageSize: Int!
|
78
|
-
) {
|
79
|
-
searchCustomers(
|
80
|
-
keyword: $keyword
|
81
|
-
type: $type
|
82
|
-
startCreatedDate: $startCreatedDate
|
83
|
-
endCreatedDate: $endCreatedDate
|
84
|
-
memberLevel: $memberLevel
|
85
|
-
partnerId: $partnerId
|
86
|
-
currentPage: $currentPage
|
87
|
-
pageSize: $pageSize
|
88
|
-
) {
|
89
|
-
totalPages
|
90
|
-
totalElements
|
91
|
-
currentPage
|
92
|
-
content {
|
93
|
-
id
|
94
|
-
name
|
95
|
-
address
|
96
|
-
gender
|
97
|
-
identityNumber
|
98
|
-
birthDate
|
99
|
-
email
|
100
|
-
phone
|
101
|
-
createdStamp
|
102
|
-
createdBy
|
103
|
-
memberLevel
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
68
|
+
exports.SEARCH_CUSTOMER = (0, graphql_tag_1.gql) `
|
69
|
+
query SearchCustomers(
|
70
|
+
$keyword: String
|
71
|
+
$type: String
|
72
|
+
$startCreatedDate: DateCustom
|
73
|
+
$endCreatedDate: DateCustom
|
74
|
+
$memberLevel: String
|
75
|
+
$partnerId: String!
|
76
|
+
$currentPage: Int!
|
77
|
+
$pageSize: Int!
|
78
|
+
) {
|
79
|
+
searchCustomers(
|
80
|
+
keyword: $keyword
|
81
|
+
type: $type
|
82
|
+
startCreatedDate: $startCreatedDate
|
83
|
+
endCreatedDate: $endCreatedDate
|
84
|
+
memberLevel: $memberLevel
|
85
|
+
partnerId: $partnerId
|
86
|
+
currentPage: $currentPage
|
87
|
+
pageSize: $pageSize
|
88
|
+
) {
|
89
|
+
totalPages
|
90
|
+
totalElements
|
91
|
+
currentPage
|
92
|
+
content {
|
93
|
+
id
|
94
|
+
name
|
95
|
+
address
|
96
|
+
gender
|
97
|
+
identityNumber
|
98
|
+
birthDate
|
99
|
+
email
|
100
|
+
phone
|
101
|
+
createdStamp
|
102
|
+
createdBy
|
103
|
+
memberLevel
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
107
|
`;
|
108
|
-
exports.SEARCH_EMPLOYEES = (0, graphql_tag_1.gql) `
|
109
|
-
query SearchEmployees(
|
110
|
-
$keyword: String
|
111
|
-
$positionShortName: String
|
112
|
-
$partnerId: String
|
113
|
-
) {
|
114
|
-
searchEmployees(
|
115
|
-
keyword: $keyword
|
116
|
-
positionShortName: $positionShortName
|
117
|
-
partnerId: $partnerId
|
118
|
-
) {
|
119
|
-
id
|
120
|
-
name
|
121
|
-
address
|
122
|
-
gender
|
123
|
-
identityNumber
|
124
|
-
birthDate
|
125
|
-
email
|
126
|
-
phone
|
127
|
-
createdStamp
|
128
|
-
createdBy
|
129
|
-
memberLevel
|
130
|
-
}
|
131
|
-
}
|
108
|
+
exports.SEARCH_EMPLOYEES = (0, graphql_tag_1.gql) `
|
109
|
+
query SearchEmployees(
|
110
|
+
$keyword: String
|
111
|
+
$positionShortName: String
|
112
|
+
$partnerId: String
|
113
|
+
) {
|
114
|
+
searchEmployees(
|
115
|
+
keyword: $keyword
|
116
|
+
positionShortName: $positionShortName
|
117
|
+
partnerId: $partnerId
|
118
|
+
) {
|
119
|
+
id
|
120
|
+
name
|
121
|
+
address
|
122
|
+
gender
|
123
|
+
identityNumber
|
124
|
+
birthDate
|
125
|
+
email
|
126
|
+
phone
|
127
|
+
createdStamp
|
128
|
+
createdBy
|
129
|
+
memberLevel
|
130
|
+
}
|
131
|
+
}
|
132
132
|
`;
|
133
|
-
exports.GET_POSTIONS_BY_EMPLOYEES_ID = (0, graphql_tag_1.gql) `
|
134
|
-
query GetPositionsByEmployeeId($employeeId: String!, $partnerId: String!) {
|
135
|
-
getPositionsByEmployeeId(employeeId: $employeeId, partnerId: $partnerId)
|
136
|
-
}
|
133
|
+
exports.GET_POSTIONS_BY_EMPLOYEES_ID = (0, graphql_tag_1.gql) `
|
134
|
+
query GetPositionsByEmployeeId($employeeId: String!, $partnerId: String!) {
|
135
|
+
getPositionsByEmployeeId(employeeId: $employeeId, partnerId: $partnerId)
|
136
|
+
}
|
137
137
|
`;
|
138
|
-
exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = (0, graphql_tag_1.gql) `
|
139
|
-
query GetStoreChannelIdsByEmployeeId(
|
140
|
-
$employeeId: String!
|
141
|
-
$partnerId: String!
|
142
|
-
) {
|
143
|
-
getStoreChannelIdsByEmployeeId(
|
144
|
-
employeeId: $employeeId
|
145
|
-
partnerId: $partnerId
|
146
|
-
)
|
147
|
-
}
|
138
|
+
exports.GET_STORE_CHANEL_IDS_BY_EMPLOYESS_ID = (0, graphql_tag_1.gql) `
|
139
|
+
query GetStoreChannelIdsByEmployeeId(
|
140
|
+
$employeeId: String!
|
141
|
+
$partnerId: String!
|
142
|
+
) {
|
143
|
+
getStoreChannelIdsByEmployeeId(
|
144
|
+
employeeId: $employeeId
|
145
|
+
partnerId: $partnerId
|
146
|
+
)
|
147
|
+
}
|
148
148
|
`;
|
149
|
-
exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = (0, graphql_tag_1.gql) `
|
150
|
-
query GetEmployeesByStoreChannelId(
|
151
|
-
$storeChannelId: String!
|
152
|
-
$partnerId: String!
|
153
|
-
) {
|
154
|
-
getEmployeesByStoreChannelId(
|
155
|
-
storeChannelId: $storeChannelId
|
156
|
-
partnerId: $partnerId
|
157
|
-
) {
|
158
|
-
id
|
159
|
-
name
|
160
|
-
address
|
161
|
-
gender
|
162
|
-
identityNumber
|
163
|
-
birthDate
|
164
|
-
email
|
165
|
-
phone
|
166
|
-
createdStamp
|
167
|
-
createdBy
|
168
|
-
memberLevel
|
169
|
-
}
|
170
|
-
}
|
149
|
+
exports.GET_EMPLOYEES_BY_STORE_CHANEL_ID = (0, graphql_tag_1.gql) `
|
150
|
+
query GetEmployeesByStoreChannelId(
|
151
|
+
$storeChannelId: String!
|
152
|
+
$partnerId: String!
|
153
|
+
) {
|
154
|
+
getEmployeesByStoreChannelId(
|
155
|
+
storeChannelId: $storeChannelId
|
156
|
+
partnerId: $partnerId
|
157
|
+
) {
|
158
|
+
id
|
159
|
+
name
|
160
|
+
address
|
161
|
+
gender
|
162
|
+
identityNumber
|
163
|
+
birthDate
|
164
|
+
email
|
165
|
+
phone
|
166
|
+
createdStamp
|
167
|
+
createdBy
|
168
|
+
memberLevel
|
169
|
+
}
|
170
|
+
}
|
171
171
|
`;
|
172
|
-
exports.GET_COMPANY_BY_CONTACT_INFO_ID = (0, graphql_tag_1.gql) `
|
173
|
-
query GetCompanyByContactInfoId($contactId: String!, $partnerId: String!) {
|
174
|
-
getCompanyByContactInfoId(contactId: $contactId, partnerId: $partnerId) {
|
175
|
-
id
|
176
|
-
name
|
177
|
-
address
|
178
|
-
gender
|
179
|
-
identityNumber
|
180
|
-
birthDate
|
181
|
-
email
|
182
|
-
phone
|
183
|
-
createdStamp
|
184
|
-
createdBy
|
185
|
-
memberLevel
|
186
|
-
}
|
187
|
-
}
|
172
|
+
exports.GET_COMPANY_BY_CONTACT_INFO_ID = (0, graphql_tag_1.gql) `
|
173
|
+
query GetCompanyByContactInfoId($contactId: String!, $partnerId: String!) {
|
174
|
+
getCompanyByContactInfoId(contactId: $contactId, partnerId: $partnerId) {
|
175
|
+
id
|
176
|
+
name
|
177
|
+
address
|
178
|
+
gender
|
179
|
+
identityNumber
|
180
|
+
birthDate
|
181
|
+
email
|
182
|
+
phone
|
183
|
+
createdStamp
|
184
|
+
createdBy
|
185
|
+
memberLevel
|
186
|
+
}
|
187
|
+
}
|
188
188
|
`;
|
189
|
-
exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
|
190
|
-
query GetContactInfosByCompanyId($companyId: String!, $partnerId: String!) {
|
191
|
-
getContactInfosByCompanyId(companyId: $companyId, partnerId: $partnerId) {
|
192
|
-
id
|
193
|
-
name
|
194
|
-
address
|
195
|
-
gender
|
196
|
-
identityNumber
|
197
|
-
birthDate
|
198
|
-
email
|
199
|
-
phone
|
200
|
-
createdStamp
|
201
|
-
createdBy
|
202
|
-
memberLevel
|
203
|
-
}
|
204
|
-
}
|
189
|
+
exports.GET_CONTACT_INFOS_BY_COMPANY_ID = (0, graphql_tag_1.gql) `
|
190
|
+
query GetContactInfosByCompanyId($companyId: String!, $partnerId: String!) {
|
191
|
+
getContactInfosByCompanyId(companyId: $companyId, partnerId: $partnerId) {
|
192
|
+
id
|
193
|
+
name
|
194
|
+
address
|
195
|
+
gender
|
196
|
+
identityNumber
|
197
|
+
birthDate
|
198
|
+
email
|
199
|
+
phone
|
200
|
+
createdStamp
|
201
|
+
createdBy
|
202
|
+
memberLevel
|
203
|
+
}
|
204
|
+
}
|
205
205
|
`;
|
206
|
-
exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
|
207
|
-
query GetProvinces($version: Int) {
|
208
|
-
getProvinces(version: $version) {
|
209
|
-
geoId
|
210
|
-
geoTypeId
|
211
|
-
geoName
|
212
|
-
geoNameLocal
|
213
|
-
geoCode
|
214
|
-
geoSecCode
|
215
|
-
abbreviation
|
216
|
-
vnPostId
|
217
|
-
jtExpressId
|
218
|
-
vnPostRegion
|
219
|
-
inetId
|
220
|
-
lastUpdatedStamp
|
221
|
-
lastUpdatedTxStamp
|
222
|
-
createdStamp
|
223
|
-
createdTxStamp
|
224
|
-
}
|
225
|
-
}
|
206
|
+
exports.GET_PROVINCES = (0, graphql_tag_1.gql) `
|
207
|
+
query GetProvinces($version: Int) {
|
208
|
+
getProvinces(version: $version) {
|
209
|
+
geoId
|
210
|
+
geoTypeId
|
211
|
+
geoName
|
212
|
+
geoNameLocal
|
213
|
+
geoCode
|
214
|
+
geoSecCode
|
215
|
+
abbreviation
|
216
|
+
vnPostId
|
217
|
+
jtExpressId
|
218
|
+
vnPostRegion
|
219
|
+
inetId
|
220
|
+
lastUpdatedStamp
|
221
|
+
lastUpdatedTxStamp
|
222
|
+
createdStamp
|
223
|
+
createdTxStamp
|
224
|
+
}
|
225
|
+
}
|
226
226
|
`;
|
227
|
-
exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
|
228
|
-
query GetDistricts($provinceId: String!, $version: Int) {
|
229
|
-
getDistricts(provinceId: $provinceId, version: $version) {
|
230
|
-
geoId
|
231
|
-
geoTypeId
|
232
|
-
geoName
|
233
|
-
geoNameLocal
|
234
|
-
geoCode
|
235
|
-
geoSecCode
|
236
|
-
abbreviation
|
237
|
-
vnPostId
|
238
|
-
jtExpressId
|
239
|
-
vnPostRegion
|
240
|
-
inetId
|
241
|
-
lastUpdatedStamp
|
242
|
-
lastUpdatedTxStamp
|
243
|
-
createdStamp
|
244
|
-
createdTxStamp
|
245
|
-
}
|
246
|
-
}
|
227
|
+
exports.GET_DISTRICTS = (0, graphql_tag_1.gql) `
|
228
|
+
query GetDistricts($provinceId: String!, $version: Int) {
|
229
|
+
getDistricts(provinceId: $provinceId, version: $version) {
|
230
|
+
geoId
|
231
|
+
geoTypeId
|
232
|
+
geoName
|
233
|
+
geoNameLocal
|
234
|
+
geoCode
|
235
|
+
geoSecCode
|
236
|
+
abbreviation
|
237
|
+
vnPostId
|
238
|
+
jtExpressId
|
239
|
+
vnPostRegion
|
240
|
+
inetId
|
241
|
+
lastUpdatedStamp
|
242
|
+
lastUpdatedTxStamp
|
243
|
+
createdStamp
|
244
|
+
createdTxStamp
|
245
|
+
}
|
246
|
+
}
|
247
247
|
`;
|
248
|
-
exports.GET_WARDS = (0, graphql_tag_1.gql) `
|
249
|
-
query GetWards($districtId: String!, $version: Int) {
|
250
|
-
getWards(districtId: $districtId, version: $version) {
|
251
|
-
geoId
|
252
|
-
geoTypeId
|
253
|
-
geoName
|
254
|
-
geoNameLocal
|
255
|
-
geoCode
|
256
|
-
geoSecCode
|
257
|
-
abbreviation
|
258
|
-
vnPostId
|
259
|
-
jtExpressId
|
260
|
-
vnPostRegion
|
261
|
-
inetId
|
262
|
-
lastUpdatedStamp
|
263
|
-
lastUpdatedTxStamp
|
264
|
-
createdStamp
|
265
|
-
createdTxStamp
|
266
|
-
}
|
267
|
-
}
|
248
|
+
exports.GET_WARDS = (0, graphql_tag_1.gql) `
|
249
|
+
query GetWards($districtId: String!, $version: Int) {
|
250
|
+
getWards(districtId: $districtId, version: $version) {
|
251
|
+
geoId
|
252
|
+
geoTypeId
|
253
|
+
geoName
|
254
|
+
geoNameLocal
|
255
|
+
geoCode
|
256
|
+
geoSecCode
|
257
|
+
abbreviation
|
258
|
+
vnPostId
|
259
|
+
jtExpressId
|
260
|
+
vnPostRegion
|
261
|
+
inetId
|
262
|
+
lastUpdatedStamp
|
263
|
+
lastUpdatedTxStamp
|
264
|
+
createdStamp
|
265
|
+
createdTxStamp
|
266
|
+
}
|
267
|
+
}
|
268
268
|
`;
|
269
|
-
exports.GET_WARDS_BY_PROVINCE_ID = (0, graphql_tag_1.gql) `
|
270
|
-
query getWardsByProvinceId($provinceId: String!) {
|
271
|
-
getWardsByProvinceId(provinceId: $provinceId) {
|
272
|
-
geoId
|
273
|
-
geoTypeId
|
274
|
-
geoName
|
275
|
-
geoNameLocal
|
276
|
-
geoCode
|
277
|
-
geoSecCode
|
278
|
-
abbreviation
|
279
|
-
vnPostId
|
280
|
-
jtExpressId
|
281
|
-
vnPostRegion
|
282
|
-
inetId
|
283
|
-
lastUpdatedStamp
|
284
|
-
lastUpdatedTxStamp
|
285
|
-
createdStamp
|
286
|
-
createdTxStamp
|
287
|
-
}
|
288
|
-
}
|
269
|
+
exports.GET_WARDS_BY_PROVINCE_ID = (0, graphql_tag_1.gql) `
|
270
|
+
query getWardsByProvinceId($provinceId: String!) {
|
271
|
+
getWardsByProvinceId(provinceId: $provinceId) {
|
272
|
+
geoId
|
273
|
+
geoTypeId
|
274
|
+
geoName
|
275
|
+
geoNameLocal
|
276
|
+
geoCode
|
277
|
+
geoSecCode
|
278
|
+
abbreviation
|
279
|
+
vnPostId
|
280
|
+
jtExpressId
|
281
|
+
vnPostRegion
|
282
|
+
inetId
|
283
|
+
lastUpdatedStamp
|
284
|
+
lastUpdatedTxStamp
|
285
|
+
createdStamp
|
286
|
+
createdTxStamp
|
287
|
+
}
|
288
|
+
}
|
289
289
|
`;
|
290
|
-
exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = (0, graphql_tag_1.gql) `
|
291
|
-
query GetVatInfoByOwnerPartyId($ownerPartyId: String!) {
|
292
|
-
getVatInfoByOwnerPartyId(ownerPartyId: $ownerPartyId) {
|
293
|
-
id
|
294
|
-
company
|
295
|
-
taxCode
|
296
|
-
address
|
297
|
-
invoiceReceiveEmail1
|
298
|
-
invoiceReceiveEmail2
|
299
|
-
ownerPartyId
|
300
|
-
createdStamp
|
301
|
-
updatedStamp
|
302
|
-
updatedBy
|
303
|
-
createdBy
|
304
|
-
}
|
305
|
-
}
|
290
|
+
exports.GET_VAT_INFOR_BY_OWNER_PARTY_ID = (0, graphql_tag_1.gql) `
|
291
|
+
query GetVatInfoByOwnerPartyId($ownerPartyId: String!) {
|
292
|
+
getVatInfoByOwnerPartyId(ownerPartyId: $ownerPartyId) {
|
293
|
+
id
|
294
|
+
company
|
295
|
+
taxCode
|
296
|
+
address
|
297
|
+
invoiceReceiveEmail1
|
298
|
+
invoiceReceiveEmail2
|
299
|
+
ownerPartyId
|
300
|
+
createdStamp
|
301
|
+
updatedStamp
|
302
|
+
updatedBy
|
303
|
+
createdBy
|
304
|
+
}
|
305
|
+
}
|
306
306
|
`;
|
307
|
-
exports.GET_TEAM_BY_USER_ID = (0, graphql_tag_1.gql) `
|
308
|
-
query getTeamByUserId($userId: String!, $partnerId: String!) {
|
309
|
-
getTeamByUserId(userId: $userId, partnerId: $partnerId) {
|
310
|
-
id
|
311
|
-
name
|
312
|
-
createdStamp
|
313
|
-
createdBy
|
314
|
-
}
|
315
|
-
}
|
307
|
+
exports.GET_TEAM_BY_USER_ID = (0, graphql_tag_1.gql) `
|
308
|
+
query getTeamByUserId($userId: String!, $partnerId: String!) {
|
309
|
+
getTeamByUserId(userId: $userId, partnerId: $partnerId) {
|
310
|
+
id
|
311
|
+
name
|
312
|
+
createdStamp
|
313
|
+
createdBy
|
314
|
+
}
|
315
|
+
}
|
316
316
|
`;
|
317
|
-
exports.GET_USERS_BY_TEAM_ID = (0, graphql_tag_1.gql) `
|
318
|
-
query getUsersByTeamId($teamId: String!) {
|
319
|
-
getUsersByTeamId(teamId: $teamId) {
|
320
|
-
id
|
321
|
-
name
|
322
|
-
address
|
323
|
-
gender
|
324
|
-
identityNumber
|
325
|
-
birthDate
|
326
|
-
email
|
327
|
-
phone
|
328
|
-
createdStamp
|
329
|
-
createdBy
|
330
|
-
memberLevel
|
331
|
-
}
|
332
|
-
}
|
317
|
+
exports.GET_USERS_BY_TEAM_ID = (0, graphql_tag_1.gql) `
|
318
|
+
query getUsersByTeamId($teamId: String!) {
|
319
|
+
getUsersByTeamId(teamId: $teamId) {
|
320
|
+
id
|
321
|
+
name
|
322
|
+
address
|
323
|
+
gender
|
324
|
+
identityNumber
|
325
|
+
birthDate
|
326
|
+
email
|
327
|
+
phone
|
328
|
+
createdStamp
|
329
|
+
createdBy
|
330
|
+
memberLevel
|
331
|
+
}
|
332
|
+
}
|
333
333
|
`;
|
@@ -31,4 +31,7 @@ export declare class CrmService extends Service {
|
|
31
31
|
getCollegesByProvinceId(provinceId: string | null): Promise<any>;
|
32
32
|
getRelatedResourceByResourceType(fromId: string, fromResourceType: string, toResourceType: string): Promise<any>;
|
33
33
|
addResourceRelated(fromId: string, fromResourceType: string, toIds: string[], toResourceType: string, createdBy: string): Promise<any>;
|
34
|
+
getResumeInfoByCustomerId(customerId: string): Promise<any>;
|
35
|
+
createResumeInfo(data: any): Promise<any>;
|
36
|
+
updateFieldResume(resumeId: string, fieldName: string, value: string, resourceType: string, updatedBy: string): Promise<any>;
|
34
37
|
}
|