@longvansoftware/storefront-js-client 1.0.8 → 1.0.10
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/auth/mutations.js +88 -88
- package/dist/src/graphql/crm/mutations.d.ts +6 -0
- package/dist/src/graphql/crm/mutations.js +257 -0
- package/dist/src/graphql/crm/queries.d.ts +3 -0
- package/dist/src/graphql/crm/queries.js +154 -0
- package/dist/src/graphql/product/queries.d.ts +1 -0
- package/dist/src/graphql/product/queries.js +315 -295
- package/dist/src/graphql/user/mutations.d.ts +3 -0
- package/dist/src/graphql/user/mutations.js +87 -0
- package/dist/src/graphql/user/queries.js +28 -28
- package/dist/src/lib/crm/index.d.ts +14 -0
- package/dist/src/lib/crm/index.js +184 -0
- package/dist/src/lib/product/index.d.ts +1 -0
- package/dist/src/lib/product/index.js +18 -0
- package/dist/src/lib/service.js +4 -4
- package/dist/src/lib/user/index.d.ts +4 -0
- package/dist/src/lib/user/index.js +67 -0
- package/dist/src/types/crm.d.ts +218 -0
- package/dist/src/types/crm.js +1 -0
- package/dist/src/types/user.d.ts +49 -0
- package/dist/src/types/user.js +2 -0
- package/package.json +42 -40
|
@@ -1 +1,155 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
|
4
|
+
const graphql_tag_1 = require("graphql-tag");
|
|
5
|
+
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
|
6
|
+
query GetListOpportunity($partyId: String!, $performerId: String!, $getOpportunityRequest: GetOpportunityRequest!) {
|
|
7
|
+
getListOpportunity(
|
|
8
|
+
partyId: $partyId
|
|
9
|
+
performerId: $performerId
|
|
10
|
+
getOpportunityRequest: $getOpportunityRequest
|
|
11
|
+
) {
|
|
12
|
+
total
|
|
13
|
+
data {
|
|
14
|
+
goal
|
|
15
|
+
campaignId
|
|
16
|
+
valueReal
|
|
17
|
+
valueExpect
|
|
18
|
+
successRate
|
|
19
|
+
referName
|
|
20
|
+
referPhone
|
|
21
|
+
referEmail
|
|
22
|
+
id
|
|
23
|
+
createdBy
|
|
24
|
+
ownerId
|
|
25
|
+
workEffortTypeId
|
|
26
|
+
partyId
|
|
27
|
+
name
|
|
28
|
+
description
|
|
29
|
+
parentId
|
|
30
|
+
status
|
|
31
|
+
stmId
|
|
32
|
+
createdStamp
|
|
33
|
+
updatedStamp
|
|
34
|
+
endDateExpect
|
|
35
|
+
priorityName
|
|
36
|
+
targetId
|
|
37
|
+
targetType
|
|
38
|
+
targetUrl
|
|
39
|
+
extSource
|
|
40
|
+
connectorId
|
|
41
|
+
processResult
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
exports.GET_LIST_TODO = (0, graphql_tag_1.gql) `
|
|
47
|
+
query GetListTodo($partyId: String!, $workEffortId: [String]!) {
|
|
48
|
+
getListTodo(partyId: $partyId, workEffortId: $workEffortId) {
|
|
49
|
+
workEffortId
|
|
50
|
+
toDoList {
|
|
51
|
+
listAttachment {
|
|
52
|
+
id
|
|
53
|
+
createdStamp
|
|
54
|
+
createdBy
|
|
55
|
+
updatedBy
|
|
56
|
+
updatedStamp
|
|
57
|
+
partyId
|
|
58
|
+
path
|
|
59
|
+
srcId
|
|
60
|
+
srcName
|
|
61
|
+
srcPath
|
|
62
|
+
srcConfigPathId
|
|
63
|
+
name
|
|
64
|
+
fileType
|
|
65
|
+
type
|
|
66
|
+
status
|
|
67
|
+
referId
|
|
68
|
+
}
|
|
69
|
+
isDone
|
|
70
|
+
id
|
|
71
|
+
workEffortTypeId
|
|
72
|
+
workEffortType {
|
|
73
|
+
id
|
|
74
|
+
name
|
|
75
|
+
group
|
|
76
|
+
createdStamp
|
|
77
|
+
updatedStamp
|
|
78
|
+
updatedBy
|
|
79
|
+
createdBy
|
|
80
|
+
partyId
|
|
81
|
+
actionLinkId
|
|
82
|
+
partyGroupIds
|
|
83
|
+
description
|
|
84
|
+
workFlow {
|
|
85
|
+
stages {
|
|
86
|
+
id
|
|
87
|
+
name
|
|
88
|
+
mode
|
|
89
|
+
workEffortTypeId
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
partyId
|
|
94
|
+
name
|
|
95
|
+
description
|
|
96
|
+
parentId
|
|
97
|
+
parentType
|
|
98
|
+
status
|
|
99
|
+
createdStamp
|
|
100
|
+
updatedStamp
|
|
101
|
+
source
|
|
102
|
+
mode
|
|
103
|
+
connectorId
|
|
104
|
+
actionLink {
|
|
105
|
+
name
|
|
106
|
+
uri
|
|
107
|
+
type
|
|
108
|
+
partyId
|
|
109
|
+
fromCollection
|
|
110
|
+
toCollection
|
|
111
|
+
group
|
|
112
|
+
params
|
|
113
|
+
id
|
|
114
|
+
createdStamp
|
|
115
|
+
updatedStamp
|
|
116
|
+
updatedBy
|
|
117
|
+
createdBy
|
|
118
|
+
}
|
|
119
|
+
partyGroupIds
|
|
120
|
+
tagIds
|
|
121
|
+
processResult
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
126
|
+
exports.GET_LIST_WORK_EFFORT_TYPE = (0, graphql_tag_1.gql) `
|
|
127
|
+
query GetListWorkEffortType($partyId: String!, $id: String!){
|
|
128
|
+
getListWorkEffortType(
|
|
129
|
+
partyId: $partyId
|
|
130
|
+
getWorkEffortTypeRequest: {
|
|
131
|
+
id: $id
|
|
132
|
+
isPagination: true }
|
|
133
|
+
) {
|
|
134
|
+
id
|
|
135
|
+
name
|
|
136
|
+
group
|
|
137
|
+
createdStamp
|
|
138
|
+
updatedStamp
|
|
139
|
+
updatedBy
|
|
140
|
+
createdBy
|
|
141
|
+
partyId
|
|
142
|
+
actionLinkId
|
|
143
|
+
partyGroupIds
|
|
144
|
+
description
|
|
145
|
+
workFlow {
|
|
146
|
+
stages{
|
|
147
|
+
id
|
|
148
|
+
name
|
|
149
|
+
mode
|
|
150
|
+
workEffortTypeId
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
`;
|
|
@@ -7,3 +7,4 @@ export declare const GET_CATEGORY_BY_ID_QUERY: import("graphql").DocumentNode;
|
|
|
7
7
|
export declare const GET_BRANDS_QUERY = "\nquery GetBrands($partnerId: String!, $storeChannel: String!, $enable: Boolean) {\n\tgetBrands(partnerId: $partnerId, storeChannel: $storeChannel, enable: $enable) {\n\t\tid\n\t\tname\n\t\timage\n\t\timageIcon\n\t}\n}\n";
|
|
8
8
|
export declare const GET_BRANDS_BY_CATEGORY_QUERY = "\nquery GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {\n\tgetBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {\n\t\tid\n\t\tname\n\t\timage\n\t\timageIcon\n\t}\n}\n";
|
|
9
9
|
export declare const GET_BRAND_DETAIL_QUERY = "\n query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {\n getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {\n id\n name\n image\n imageIcon\n }\n }\n";
|
|
10
|
+
export declare const GET_PRODUCT_OPTION: import("graphql").DocumentNode;
|