@longvansoftware/storefront-js-client 4.3.6 → 4.3.7-beta.1
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 +221 -221
- package/dist/index.d.ts +1698 -0
- package/dist/index.js +13673 -0
- package/dist/src/graphql/auth/mutations.js +309 -309
- package/dist/src/graphql/auth/queries.js +209 -209
- package/dist/src/graphql/campaign/mutations.js +26 -26
- package/dist/src/graphql/campaign/queries.js +457 -457
- package/dist/src/graphql/cashbook/queries.js +93 -93
- package/dist/src/graphql/cloud/mutations.js +103 -103
- package/dist/src/graphql/cloud/queries.js +112 -112
- package/dist/src/graphql/cloudCloud/mutations.js +12 -12
- package/dist/src/graphql/cloudCloud/queries.js +117 -117
- package/dist/src/graphql/computing/mutations.js +96 -96
- package/dist/src/graphql/computing/queries.js +41 -41
- package/dist/src/graphql/crm/mutations.js +1064 -1064
- package/dist/src/graphql/crm/queries.js +920 -920
- package/dist/src/graphql/orderCloud/mutations.js +7 -7
- package/dist/src/graphql/orderCloud/queries.js +7 -7
- package/dist/src/graphql/payment/mutations.js +194 -194
- package/dist/src/graphql/payment/queries.js +117 -117
- package/dist/src/graphql/paymentV2/mutations.js +115 -115
- package/dist/src/graphql/paymentV2/queries.js +263 -263
- package/dist/src/graphql/product/mutations.js +652 -652
- package/dist/src/graphql/product/queries.js +989 -989
- package/dist/src/graphql/service/mutations.js +304 -304
- package/dist/src/graphql/service/queries.js +131 -131
- package/dist/src/graphql/store/mutations.js +24 -24
- package/dist/src/graphql/store/queries.js +24 -24
- package/dist/src/graphql/user/mutations.js +201 -201
- package/dist/src/graphql/user/queries.js +339 -339
- package/dist/src/lib/order/index.d.ts +9 -0
- package/dist/src/lib/order/index.js +21 -0
- package/dist/src/lib/serviceSDK.js +14 -14
- package/package.json +43 -43
- package/dist/src/graphql/cloudService/queries.d.ts +0 -1
- package/dist/src/graphql/cloudService/queries.js +0 -71
- package/dist/src/lib/cloudService/index.d.ts +0 -5
- package/dist/src/lib/cloudService/index.js +0 -35
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GET_PARTY_DETAILS_BY_PHONE = exports.SHOW_LOGIN_SOCIAL = exports.GET_ORGANIZATION_BY_ID = exports.GET_WORK_SPACES = exports.GET_MENUS = exports.GET_ORGANIZATIONS_BY_PARTY_ID = exports.GET_ACCESS_TOKEN_BY_OTP_QUERY = exports.CHECK_USER_LOGIN = exports.LOGIN_ZALO = exports.LOGIN_FACEBOOK = exports.LOGIN_GOOGLE = exports.CHECK_USERNAME_EXISTED = exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = exports.GET_USER_LOGIN_BY_TOKEN = exports.GET_USER_DETAIL = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
-
exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
|
-
query GetUserDetail($orgId: String!, $accessToken: String!) {
|
|
7
|
-
getUserDetail(orgId: $orgId, accessToken: $accessToken) {
|
|
8
|
-
partyId
|
|
9
|
-
orgId
|
|
10
|
-
fullName
|
|
11
|
-
email
|
|
12
|
-
phone
|
|
13
|
-
address
|
|
14
|
-
identityNumber
|
|
15
|
-
gender
|
|
16
|
-
birthDate
|
|
17
|
-
avatarUrl
|
|
18
|
-
accessToken
|
|
19
|
-
username
|
|
20
|
-
orgPermissionsMap
|
|
21
|
-
orgPositionsMap
|
|
22
|
-
orgRolesMap
|
|
23
|
-
}
|
|
24
|
-
}
|
|
5
|
+
exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
|
|
6
|
+
query GetUserDetail($orgId: String!, $accessToken: String!) {
|
|
7
|
+
getUserDetail(orgId: $orgId, accessToken: $accessToken) {
|
|
8
|
+
partyId
|
|
9
|
+
orgId
|
|
10
|
+
fullName
|
|
11
|
+
email
|
|
12
|
+
phone
|
|
13
|
+
address
|
|
14
|
+
identityNumber
|
|
15
|
+
gender
|
|
16
|
+
birthDate
|
|
17
|
+
avatarUrl
|
|
18
|
+
accessToken
|
|
19
|
+
username
|
|
20
|
+
orgPermissionsMap
|
|
21
|
+
orgPositionsMap
|
|
22
|
+
orgRolesMap
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
`;
|
|
26
|
-
exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
|
|
27
|
-
query GetUserLoginByToken($accessToken: String!) {
|
|
28
|
-
getUserLoginByToken(accessToken: $accessToken) {
|
|
29
|
-
id
|
|
30
|
-
status
|
|
31
|
-
partyId
|
|
32
|
-
userLoginId
|
|
33
|
-
}
|
|
34
|
-
}
|
|
26
|
+
exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
|
|
27
|
+
query GetUserLoginByToken($accessToken: String!) {
|
|
28
|
+
getUserLoginByToken(accessToken: $accessToken) {
|
|
29
|
+
id
|
|
30
|
+
status
|
|
31
|
+
partyId
|
|
32
|
+
userLoginId
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
35
|
`;
|
|
36
36
|
// query GetUserLoginByUserLoginId {
|
|
37
37
|
// getUserLoginByUserLoginId(userLoginId: "0971879660") {
|
|
@@ -42,196 +42,196 @@ exports.GET_USER_LOGIN_BY_TOKEN = (0, graphql_tag_1.gql) `
|
|
|
42
42
|
// partyId
|
|
43
43
|
// }
|
|
44
44
|
// }
|
|
45
|
-
exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
|
|
46
|
-
query GetUserLoginByUserLoginId($userLoginId: String!) {
|
|
47
|
-
getUserLoginByUserLoginId(userLoginId: $userLoginId) {
|
|
48
|
-
id
|
|
49
|
-
userLoginId
|
|
50
|
-
accessToken
|
|
51
|
-
status
|
|
52
|
-
partyId
|
|
53
|
-
}
|
|
54
|
-
}
|
|
45
|
+
exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = (0, graphql_tag_1.gql) `
|
|
46
|
+
query GetUserLoginByUserLoginId($userLoginId: String!) {
|
|
47
|
+
getUserLoginByUserLoginId(userLoginId: $userLoginId) {
|
|
48
|
+
id
|
|
49
|
+
userLoginId
|
|
50
|
+
accessToken
|
|
51
|
+
status
|
|
52
|
+
partyId
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
`;
|
|
56
|
-
exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
|
|
57
|
-
query CheckUsernameExisted($username: String!, $orgId: String!) {
|
|
58
|
-
checkUsernameExisted(username: $username, orgId: $orgId)
|
|
59
|
-
}
|
|
56
|
+
exports.CHECK_USERNAME_EXISTED = (0, graphql_tag_1.gql) `
|
|
57
|
+
query CheckUsernameExisted($username: String!, $orgId: String!) {
|
|
58
|
+
checkUsernameExisted(username: $username, orgId: $orgId)
|
|
59
|
+
}
|
|
60
60
|
`;
|
|
61
|
-
exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
|
|
62
|
-
query LoginGoogle(
|
|
63
|
-
$orgId: String!
|
|
64
|
-
$type: String!
|
|
65
|
-
$redirectUrl: String!
|
|
66
|
-
$redirectUrlError: String
|
|
67
|
-
$serviceOperator: String
|
|
68
|
-
) {
|
|
69
|
-
loginGoogle(
|
|
70
|
-
orgId: $orgId
|
|
71
|
-
type: $type
|
|
72
|
-
redirectUrl: $redirectUrl
|
|
73
|
-
redirectUrlError: $redirectUrlError
|
|
74
|
-
serviceOperator: $serviceOperator
|
|
75
|
-
)
|
|
76
|
-
}
|
|
61
|
+
exports.LOGIN_GOOGLE = (0, graphql_tag_1.gql) `
|
|
62
|
+
query LoginGoogle(
|
|
63
|
+
$orgId: String!
|
|
64
|
+
$type: String!
|
|
65
|
+
$redirectUrl: String!
|
|
66
|
+
$redirectUrlError: String
|
|
67
|
+
$serviceOperator: String
|
|
68
|
+
) {
|
|
69
|
+
loginGoogle(
|
|
70
|
+
orgId: $orgId
|
|
71
|
+
type: $type
|
|
72
|
+
redirectUrl: $redirectUrl
|
|
73
|
+
redirectUrlError: $redirectUrlError
|
|
74
|
+
serviceOperator: $serviceOperator
|
|
75
|
+
)
|
|
76
|
+
}
|
|
77
77
|
`;
|
|
78
|
-
exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
|
|
79
|
-
query LoginFacebook(
|
|
80
|
-
$orgId: String!
|
|
81
|
-
$type: String!
|
|
82
|
-
$redirectUrl: String!
|
|
83
|
-
$redirectUrlError: String
|
|
84
|
-
$serviceOperator: String
|
|
85
|
-
) {
|
|
86
|
-
loginFacebook(
|
|
87
|
-
orgId: $orgId
|
|
88
|
-
type: $type
|
|
89
|
-
redirectUrl: $redirectUrl
|
|
90
|
-
redirectUrlError: $redirectUrlError
|
|
91
|
-
serviceOperator: $serviceOperator
|
|
92
|
-
)
|
|
93
|
-
}
|
|
78
|
+
exports.LOGIN_FACEBOOK = (0, graphql_tag_1.gql) `
|
|
79
|
+
query LoginFacebook(
|
|
80
|
+
$orgId: String!
|
|
81
|
+
$type: String!
|
|
82
|
+
$redirectUrl: String!
|
|
83
|
+
$redirectUrlError: String
|
|
84
|
+
$serviceOperator: String
|
|
85
|
+
) {
|
|
86
|
+
loginFacebook(
|
|
87
|
+
orgId: $orgId
|
|
88
|
+
type: $type
|
|
89
|
+
redirectUrl: $redirectUrl
|
|
90
|
+
redirectUrlError: $redirectUrlError
|
|
91
|
+
serviceOperator: $serviceOperator
|
|
92
|
+
)
|
|
93
|
+
}
|
|
94
94
|
`;
|
|
95
|
-
exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
|
|
96
|
-
query LoginZalo(
|
|
97
|
-
$orgId: String!
|
|
98
|
-
$type: String!
|
|
99
|
-
$redirectUrl: String!
|
|
100
|
-
$redirectUrlError: String
|
|
101
|
-
$serviceOperator: String
|
|
102
|
-
) {
|
|
103
|
-
loginZalo(
|
|
104
|
-
orgId: $orgId
|
|
105
|
-
type: $type
|
|
106
|
-
redirectUrl: $redirectUrl
|
|
107
|
-
redirectUrlError: $redirectUrlError
|
|
108
|
-
serviceOperator: $serviceOperator
|
|
109
|
-
)
|
|
110
|
-
}
|
|
95
|
+
exports.LOGIN_ZALO = (0, graphql_tag_1.gql) `
|
|
96
|
+
query LoginZalo(
|
|
97
|
+
$orgId: String!
|
|
98
|
+
$type: String!
|
|
99
|
+
$redirectUrl: String!
|
|
100
|
+
$redirectUrlError: String
|
|
101
|
+
$serviceOperator: String
|
|
102
|
+
) {
|
|
103
|
+
loginZalo(
|
|
104
|
+
orgId: $orgId
|
|
105
|
+
type: $type
|
|
106
|
+
redirectUrl: $redirectUrl
|
|
107
|
+
redirectUrlError: $redirectUrlError
|
|
108
|
+
serviceOperator: $serviceOperator
|
|
109
|
+
)
|
|
110
|
+
}
|
|
111
111
|
`;
|
|
112
|
-
exports.CHECK_USER_LOGIN = (0, graphql_tag_1.gql) `
|
|
113
|
-
query CheckUserLogin($userLoginId: String!) {
|
|
114
|
-
checkUserLogin(userLoginId: $userLoginId)
|
|
115
|
-
}
|
|
112
|
+
exports.CHECK_USER_LOGIN = (0, graphql_tag_1.gql) `
|
|
113
|
+
query CheckUserLogin($userLoginId: String!) {
|
|
114
|
+
checkUserLogin(userLoginId: $userLoginId)
|
|
115
|
+
}
|
|
116
116
|
`;
|
|
117
|
-
exports.GET_ACCESS_TOKEN_BY_OTP_QUERY = (0, graphql_tag_1.gql) `
|
|
118
|
-
query GetAccessTokenByOTP(
|
|
119
|
-
$otpCode: String!
|
|
120
|
-
$phone: String!
|
|
121
|
-
$channelType: String
|
|
122
|
-
) {
|
|
123
|
-
getAccessTokenByOTP(
|
|
124
|
-
otpCode: $otpCode
|
|
125
|
-
phone: $phone
|
|
126
|
-
channelType: $channelType
|
|
127
|
-
)
|
|
128
|
-
}
|
|
117
|
+
exports.GET_ACCESS_TOKEN_BY_OTP_QUERY = (0, graphql_tag_1.gql) `
|
|
118
|
+
query GetAccessTokenByOTP(
|
|
119
|
+
$otpCode: String!
|
|
120
|
+
$phone: String!
|
|
121
|
+
$channelType: String
|
|
122
|
+
) {
|
|
123
|
+
getAccessTokenByOTP(
|
|
124
|
+
otpCode: $otpCode
|
|
125
|
+
phone: $phone
|
|
126
|
+
channelType: $channelType
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
129
|
`;
|
|
130
|
-
exports.GET_ORGANIZATIONS_BY_PARTY_ID = (0, graphql_tag_1.gql) `
|
|
131
|
-
query GetOrganizationsByPartyId($partyId: String!) {
|
|
132
|
-
getOrganizationsByPartyId(partyId: $partyId) {
|
|
133
|
-
id
|
|
134
|
-
partyId
|
|
135
|
-
codeId
|
|
136
|
-
groupName
|
|
137
|
-
groupType
|
|
138
|
-
shortName
|
|
139
|
-
groupNameLocal
|
|
140
|
-
officeSiteName
|
|
141
|
-
comments
|
|
142
|
-
logoImageUrl
|
|
143
|
-
isIncorporated
|
|
144
|
-
federalTaxId
|
|
145
|
-
description
|
|
146
|
-
deleted
|
|
147
|
-
status
|
|
148
|
-
positionIndexId
|
|
149
|
-
prefix
|
|
150
|
-
}
|
|
151
|
-
}
|
|
130
|
+
exports.GET_ORGANIZATIONS_BY_PARTY_ID = (0, graphql_tag_1.gql) `
|
|
131
|
+
query GetOrganizationsByPartyId($partyId: String!) {
|
|
132
|
+
getOrganizationsByPartyId(partyId: $partyId) {
|
|
133
|
+
id
|
|
134
|
+
partyId
|
|
135
|
+
codeId
|
|
136
|
+
groupName
|
|
137
|
+
groupType
|
|
138
|
+
shortName
|
|
139
|
+
groupNameLocal
|
|
140
|
+
officeSiteName
|
|
141
|
+
comments
|
|
142
|
+
logoImageUrl
|
|
143
|
+
isIncorporated
|
|
144
|
+
federalTaxId
|
|
145
|
+
description
|
|
146
|
+
deleted
|
|
147
|
+
status
|
|
148
|
+
positionIndexId
|
|
149
|
+
prefix
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
152
|
`;
|
|
153
|
-
exports.GET_MENUS = (0, graphql_tag_1.gql) `
|
|
154
|
-
query GetMenus(
|
|
155
|
-
$partyId: String!
|
|
156
|
-
$orgId: String!
|
|
157
|
-
$workspaceId: String
|
|
158
|
-
$scope: String
|
|
159
|
-
) {
|
|
160
|
-
getMenus(
|
|
161
|
-
partyId: $partyId
|
|
162
|
-
orgId: $orgId
|
|
163
|
-
workspaceId: $workspaceId
|
|
164
|
-
scope: $scope
|
|
165
|
-
) {
|
|
166
|
-
id
|
|
167
|
-
name
|
|
168
|
-
icon
|
|
169
|
-
url
|
|
170
|
-
childrenMenu {
|
|
171
|
-
id
|
|
172
|
-
name
|
|
173
|
-
icon
|
|
174
|
-
url
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
153
|
+
exports.GET_MENUS = (0, graphql_tag_1.gql) `
|
|
154
|
+
query GetMenus(
|
|
155
|
+
$partyId: String!
|
|
156
|
+
$orgId: String!
|
|
157
|
+
$workspaceId: String
|
|
158
|
+
$scope: String
|
|
159
|
+
) {
|
|
160
|
+
getMenus(
|
|
161
|
+
partyId: $partyId
|
|
162
|
+
orgId: $orgId
|
|
163
|
+
workspaceId: $workspaceId
|
|
164
|
+
scope: $scope
|
|
165
|
+
) {
|
|
166
|
+
id
|
|
167
|
+
name
|
|
168
|
+
icon
|
|
169
|
+
url
|
|
170
|
+
childrenMenu {
|
|
171
|
+
id
|
|
172
|
+
name
|
|
173
|
+
icon
|
|
174
|
+
url
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
178
|
`;
|
|
179
|
-
exports.GET_WORK_SPACES = (0, graphql_tag_1.gql) `
|
|
180
|
-
query GetWorkspaces($partyId: String!, $orgId: String!, $scope: String) {
|
|
181
|
-
getWorkspaces(partyId: $partyId, orgId: $orgId, scope: $scope) {
|
|
182
|
-
id
|
|
183
|
-
name
|
|
184
|
-
icon
|
|
185
|
-
menus {
|
|
186
|
-
id
|
|
187
|
-
name
|
|
188
|
-
icon
|
|
189
|
-
url
|
|
190
|
-
childrenMenu {
|
|
191
|
-
id
|
|
192
|
-
name
|
|
193
|
-
icon
|
|
194
|
-
url
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
179
|
+
exports.GET_WORK_SPACES = (0, graphql_tag_1.gql) `
|
|
180
|
+
query GetWorkspaces($partyId: String!, $orgId: String!, $scope: String) {
|
|
181
|
+
getWorkspaces(partyId: $partyId, orgId: $orgId, scope: $scope) {
|
|
182
|
+
id
|
|
183
|
+
name
|
|
184
|
+
icon
|
|
185
|
+
menus {
|
|
186
|
+
id
|
|
187
|
+
name
|
|
188
|
+
icon
|
|
189
|
+
url
|
|
190
|
+
childrenMenu {
|
|
191
|
+
id
|
|
192
|
+
name
|
|
193
|
+
icon
|
|
194
|
+
url
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
199
|
`;
|
|
200
|
-
exports.GET_ORGANIZATION_BY_ID = (0, graphql_tag_1.gql) `
|
|
201
|
-
query GetOrganizationById($orgId: String!) {
|
|
202
|
-
getOrganizationById(orgId: $orgId) {
|
|
203
|
-
id
|
|
204
|
-
partyId
|
|
205
|
-
codeId
|
|
206
|
-
groupName
|
|
207
|
-
groupType
|
|
208
|
-
shortName
|
|
209
|
-
groupNameLocal
|
|
210
|
-
officeSiteName
|
|
211
|
-
comments
|
|
212
|
-
logoImageUrl
|
|
213
|
-
isIncorporated
|
|
214
|
-
federalTaxId
|
|
215
|
-
description
|
|
216
|
-
deleted
|
|
217
|
-
status
|
|
218
|
-
positionIndexId
|
|
219
|
-
prefix
|
|
220
|
-
}
|
|
221
|
-
}
|
|
200
|
+
exports.GET_ORGANIZATION_BY_ID = (0, graphql_tag_1.gql) `
|
|
201
|
+
query GetOrganizationById($orgId: String!) {
|
|
202
|
+
getOrganizationById(orgId: $orgId) {
|
|
203
|
+
id
|
|
204
|
+
partyId
|
|
205
|
+
codeId
|
|
206
|
+
groupName
|
|
207
|
+
groupType
|
|
208
|
+
shortName
|
|
209
|
+
groupNameLocal
|
|
210
|
+
officeSiteName
|
|
211
|
+
comments
|
|
212
|
+
logoImageUrl
|
|
213
|
+
isIncorporated
|
|
214
|
+
federalTaxId
|
|
215
|
+
description
|
|
216
|
+
deleted
|
|
217
|
+
status
|
|
218
|
+
positionIndexId
|
|
219
|
+
prefix
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
222
|
`;
|
|
223
|
-
exports.SHOW_LOGIN_SOCIAL = (0, graphql_tag_1.gql) `
|
|
224
|
-
query ShowLoginSocial($orgId: String, $serviceOperator: String) {
|
|
225
|
-
showLoginSocial(orgId: $orgId, serviceOperator: $serviceOperator)
|
|
226
|
-
}
|
|
223
|
+
exports.SHOW_LOGIN_SOCIAL = (0, graphql_tag_1.gql) `
|
|
224
|
+
query ShowLoginSocial($orgId: String, $serviceOperator: String) {
|
|
225
|
+
showLoginSocial(orgId: $orgId, serviceOperator: $serviceOperator)
|
|
226
|
+
}
|
|
227
227
|
`;
|
|
228
|
-
exports.GET_PARTY_DETAILS_BY_PHONE = (0, graphql_tag_1.gql) `
|
|
229
|
-
query GetPartyDetailsByPhone($phone: String!) {
|
|
230
|
-
getPartyDetailsByPhone(phone: $phone) {
|
|
231
|
-
id
|
|
232
|
-
name
|
|
233
|
-
phone
|
|
234
|
-
email
|
|
235
|
-
}
|
|
236
|
-
}
|
|
228
|
+
exports.GET_PARTY_DETAILS_BY_PHONE = (0, graphql_tag_1.gql) `
|
|
229
|
+
query GetPartyDetailsByPhone($phone: String!) {
|
|
230
|
+
getPartyDetailsByPhone(phone: $phone) {
|
|
231
|
+
id
|
|
232
|
+
name
|
|
233
|
+
phone
|
|
234
|
+
email
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
237
|
`;
|
|
@@ -5,30 +5,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = void 0;
|
|
7
7
|
const graphql_tag_1 = __importDefault(require("graphql-tag"));
|
|
8
|
-
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
|
|
9
|
-
mutation AddCustomerToVoucher(
|
|
10
|
-
$partyId: String!
|
|
11
|
-
$voucherCode: String!
|
|
12
|
-
$userId: String!
|
|
13
|
-
$affiliateId: String
|
|
14
|
-
) {
|
|
15
|
-
addCustomerToVoucher(
|
|
16
|
-
partyId: $partyId
|
|
17
|
-
voucherCode: $voucherCode
|
|
18
|
-
userId: $userId
|
|
19
|
-
affiliateId: $affiliateId
|
|
20
|
-
) {
|
|
21
|
-
id
|
|
22
|
-
customerId
|
|
23
|
-
campaignActionId
|
|
24
|
-
campaignId
|
|
25
|
-
partyId
|
|
26
|
-
voucherCode
|
|
27
|
-
voucherType
|
|
28
|
-
status
|
|
29
|
-
discountAmount
|
|
30
|
-
discountPercent
|
|
31
|
-
usageLimitPerVoucher
|
|
32
|
-
}
|
|
33
|
-
}
|
|
8
|
+
exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
|
|
9
|
+
mutation AddCustomerToVoucher(
|
|
10
|
+
$partyId: String!
|
|
11
|
+
$voucherCode: String!
|
|
12
|
+
$userId: String!
|
|
13
|
+
$affiliateId: String
|
|
14
|
+
) {
|
|
15
|
+
addCustomerToVoucher(
|
|
16
|
+
partyId: $partyId
|
|
17
|
+
voucherCode: $voucherCode
|
|
18
|
+
userId: $userId
|
|
19
|
+
affiliateId: $affiliateId
|
|
20
|
+
) {
|
|
21
|
+
id
|
|
22
|
+
customerId
|
|
23
|
+
campaignActionId
|
|
24
|
+
campaignId
|
|
25
|
+
partyId
|
|
26
|
+
voucherCode
|
|
27
|
+
voucherType
|
|
28
|
+
status
|
|
29
|
+
discountAmount
|
|
30
|
+
discountPercent
|
|
31
|
+
usageLimitPerVoucher
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
`;
|