@longvansoftware/service-js-client 1.15.8 → 1.15.9

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.
Files changed (86) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/accounting_service/mutations.js +96 -96
  3. package/dist/src/graphql/accounting_service/queries.js +57 -57
  4. package/dist/src/graphql/auth/mutations.js +235 -235
  5. package/dist/src/graphql/auth/queries.js +68 -68
  6. package/dist/src/graphql/campaign/mutations.d.ts +1 -0
  7. package/dist/src/graphql/campaign/mutations.js +34 -0
  8. package/dist/src/graphql/campaign/queries.d.ts +9 -0
  9. package/dist/src/graphql/campaign/queries.js +412 -0
  10. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  11. package/dist/src/graphql/cashbook/queries.js +99 -0
  12. package/dist/src/graphql/cloud/mutations.js +282 -282
  13. package/dist/src/graphql/cloud/queries.js +341 -341
  14. package/dist/src/graphql/computing/mutations.js +303 -303
  15. package/dist/src/graphql/computing/queries.js +548 -548
  16. package/dist/src/graphql/crm/mutations.d.ts +1 -0
  17. package/dist/src/graphql/crm/mutations.js +392 -375
  18. package/dist/src/graphql/crm/queries.d.ts +1 -0
  19. package/dist/src/graphql/crm/queries.js +359 -332
  20. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  21. package/dist/src/graphql/crm_camping/queries.js +198 -198
  22. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  23. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  24. package/dist/src/graphql/payment/mutations.js +45 -45
  25. package/dist/src/graphql/payment/queries.js +60 -60
  26. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  27. package/dist/src/graphql/paymentLV/queries.js +75 -75
  28. package/dist/src/graphql/paymentV2/mutations.d.ts +3 -0
  29. package/dist/src/graphql/paymentV2/mutations.js +54 -0
  30. package/dist/src/graphql/paymentV2/queries.d.ts +6 -0
  31. package/dist/src/graphql/paymentV2/queries.js +186 -0
  32. package/dist/src/graphql/product/queries.js +891 -891
  33. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  34. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  35. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  36. package/dist/src/graphql/resource_permission/queries.js +13 -13
  37. package/dist/src/graphql/service/mutations.js +228 -228
  38. package/dist/src/graphql/service/queries.js +128 -128
  39. package/dist/src/graphql/store/mutations.d.ts +1 -0
  40. package/dist/src/graphql/store/mutations.js +29 -0
  41. package/dist/src/graphql/store/queries.d.ts +1 -0
  42. package/dist/src/graphql/store/queries.js +29 -0
  43. package/dist/src/graphql/user/mutations.js +214 -214
  44. package/dist/src/graphql/user/queries.js +312 -312
  45. package/dist/src/lib/accounting/index.d.ts +5 -0
  46. package/dist/src/lib/accounting/index.js +32 -0
  47. package/dist/src/lib/campaign/index.d.ts +20 -0
  48. package/dist/src/lib/campaign/index.js +213 -0
  49. package/dist/src/lib/cashbook/index.d.ts +6 -0
  50. package/dist/src/lib/cashbook/index.js +56 -0
  51. package/dist/src/lib/comhub/index.d.ts +6 -0
  52. package/dist/src/lib/comhub/index.js +50 -0
  53. package/dist/src/lib/crm/index.d.ts +2 -0
  54. package/dist/src/lib/crm/index.js +40 -0
  55. package/dist/src/lib/deepLinkVietQr/index.d.ts +6 -0
  56. package/dist/src/lib/deepLinkVietQr/index.js +45 -0
  57. package/dist/src/lib/getImage/index.d.ts +4 -0
  58. package/dist/src/lib/getImage/index.js +10 -0
  59. package/dist/src/lib/image/index.d.ts +7 -0
  60. package/dist/src/lib/image/index.js +49 -0
  61. package/dist/src/lib/omnigateway/index.d.ts +7 -0
  62. package/dist/src/lib/omnigateway/index.js +58 -0
  63. package/dist/src/lib/paymentV2/index.d.ts +13 -0
  64. package/dist/src/lib/paymentV2/index.js +163 -0
  65. package/dist/src/lib/portal/index.d.ts +21 -0
  66. package/dist/src/lib/portal/index.js +225 -0
  67. package/dist/src/lib/serviceSDK.js +12 -12
  68. package/dist/src/lib/store/index.d.ts +30 -0
  69. package/dist/src/lib/store/index.js +74 -0
  70. package/dist/src/lib/token/index.d.ts +5 -0
  71. package/dist/src/lib/token/index.js +32 -0
  72. package/dist/src/lib/upload/index.d.ts +5 -0
  73. package/dist/src/lib/upload/index.js +35 -0
  74. package/dist/src/lib/warehouseV2/index.d.ts +13 -0
  75. package/dist/src/lib/warehouseV2/index.js +54 -0
  76. package/dist/src/lib/zca/index.d.ts +12 -0
  77. package/dist/src/lib/zca/index.js +41 -0
  78. package/dist/src/types/campaign.d.ts +14 -0
  79. package/dist/src/types/campaign.js +2 -0
  80. package/dist/src/types/invoice.d.ts +13 -0
  81. package/dist/src/types/invoice.js +2 -0
  82. package/dist/src/types/store.d.ts +158 -0
  83. package/dist/src/types/store.js +3 -0
  84. package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
  85. package/dist/src/utils/validatePhoneNumber.js +20 -0
  86. package/package.json +44 -43
@@ -2,66 +2,66 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_ACTION_ATTRIBUTE = exports.GET_SERVICE_TICKETS = exports.GET_SERVICE_ACTION = exports.GET_SERVICE_BY_OWNER_ID = exports.GET_SERVICE_BY_TYPE = exports.GET_SERVICE_BY_ID = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.GET_SERVICE_BY_ID = (0, graphql_tag_1.gql) `
6
- query GetServiceById($partnerId: String!, $serviceId: String!) {
7
- getServiceById(partnerId: $partnerId, serviceId: $serviceId) {
8
- createdStamp
9
- updatedStamp
10
- updatedBy
11
- createdBy
12
- partnerId
13
- serviceName
14
- serviceId
15
- type
16
- typeName
17
- orderId
18
- orderLineItemId
19
- status
20
- ownerId
21
- ownerName
22
- ownerEmail
23
- ownerPhone
24
- saleName
25
- salePartyId
26
- startDate
27
- endDate
28
- location
29
- description
30
- serviceType
31
- actionResult
32
- }
33
- }
5
+ exports.GET_SERVICE_BY_ID = (0, graphql_tag_1.gql) `
6
+ query GetServiceById($partnerId: String!, $serviceId: String!) {
7
+ getServiceById(partnerId: $partnerId, serviceId: $serviceId) {
8
+ createdStamp
9
+ updatedStamp
10
+ updatedBy
11
+ createdBy
12
+ partnerId
13
+ serviceName
14
+ serviceId
15
+ type
16
+ typeName
17
+ orderId
18
+ orderLineItemId
19
+ status
20
+ ownerId
21
+ ownerName
22
+ ownerEmail
23
+ ownerPhone
24
+ saleName
25
+ salePartyId
26
+ startDate
27
+ endDate
28
+ location
29
+ description
30
+ serviceType
31
+ actionResult
32
+ }
33
+ }
34
34
  `;
35
35
  // GET_SERVICE_BY_TYPE
36
- exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
37
- query GetServiceByType($partnerId: String!, $type: String!) {
38
- getServiceByType(partnerId: $partnerId, type: $type) {
39
- createdStamp
40
- updatedStamp
41
- updatedBy
42
- createdBy
43
- partnerId
44
- serviceName
45
- serviceId
46
- type
47
- typeName
48
- orderId
49
- status
50
- ownerId
51
- ownerName
52
- ownerEmail
53
- ownerPhone
54
- saleName
55
- salePartyId
56
- startDate
57
- endDate
58
- version
59
- location
60
- description
61
- serviceType
62
- actionResult
63
- }
64
- }
36
+ exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
37
+ query GetServiceByType($partnerId: String!, $type: String!) {
38
+ getServiceByType(partnerId: $partnerId, type: $type) {
39
+ createdStamp
40
+ updatedStamp
41
+ updatedBy
42
+ createdBy
43
+ partnerId
44
+ serviceName
45
+ serviceId
46
+ type
47
+ typeName
48
+ orderId
49
+ status
50
+ ownerId
51
+ ownerName
52
+ ownerEmail
53
+ ownerPhone
54
+ saleName
55
+ salePartyId
56
+ startDate
57
+ endDate
58
+ version
59
+ location
60
+ description
61
+ serviceType
62
+ actionResult
63
+ }
64
+ }
65
65
  `;
66
66
  // query GetServiceByOwnerId {
67
67
  // getServiceByOwnerId(partnerId: "LONGVAN", ownerId: "20.52731") {
@@ -98,77 +98,77 @@ exports.GET_SERVICE_BY_TYPE = (0, graphql_tag_1.gql) `
98
98
  // attrs
99
99
  // }
100
100
  // }
101
- exports.GET_SERVICE_BY_OWNER_ID = (0, graphql_tag_1.gql) `
102
- query GetServiceByOwnerId($partnerId: String!, $ownerId: String!) {
103
- getServiceByOwnerId(partnerId: $partnerId, ownerId: $ownerId) {
104
- createdStamp
105
- updatedStamp
106
- updatedBy
107
- createdBy
108
- partnerId
109
- serviceName
110
- serviceId
111
- type
112
- typeName
113
- orderId
114
- orderLineItemId
115
- status
116
- ownerId
117
- ownerName
118
- ownerEmail
119
- ownerPhone
120
- saleName
121
- salePartyId
122
- startDate
123
- endDate
124
- location
125
- description
126
- serviceType
127
- actionResult
128
- }
129
- }
101
+ exports.GET_SERVICE_BY_OWNER_ID = (0, graphql_tag_1.gql) `
102
+ query GetServiceByOwnerId($partnerId: String!, $ownerId: String!) {
103
+ getServiceByOwnerId(partnerId: $partnerId, ownerId: $ownerId) {
104
+ createdStamp
105
+ updatedStamp
106
+ updatedBy
107
+ createdBy
108
+ partnerId
109
+ serviceName
110
+ serviceId
111
+ type
112
+ typeName
113
+ orderId
114
+ orderLineItemId
115
+ status
116
+ ownerId
117
+ ownerName
118
+ ownerEmail
119
+ ownerPhone
120
+ saleName
121
+ salePartyId
122
+ startDate
123
+ endDate
124
+ location
125
+ description
126
+ serviceType
127
+ actionResult
128
+ }
129
+ }
130
130
  `;
131
- exports.GET_SERVICE_ACTION = (0, graphql_tag_1.gql) `
132
- query GetServiceActions(
133
- $serviceId: String!
134
- $actionType: String
135
- $updatedBy: String
136
- ) {
137
- getServiceActions(
138
- serviceId: $serviceId
139
- actionType: $actionType
140
- updatedBy: $updatedBy
141
- ) {
142
- id
143
- serviceId
144
- actionType
145
- description
146
- status
147
- processStatus
148
- createdBy
149
- createdStamp
150
- updatedBy
151
- updatedStamp
152
- }
153
- }
131
+ exports.GET_SERVICE_ACTION = (0, graphql_tag_1.gql) `
132
+ query GetServiceActions(
133
+ $serviceId: String!
134
+ $actionType: String
135
+ $updatedBy: String
136
+ ) {
137
+ getServiceActions(
138
+ serviceId: $serviceId
139
+ actionType: $actionType
140
+ updatedBy: $updatedBy
141
+ ) {
142
+ id
143
+ serviceId
144
+ actionType
145
+ description
146
+ status
147
+ processStatus
148
+ createdBy
149
+ createdStamp
150
+ updatedBy
151
+ updatedStamp
152
+ }
153
+ }
154
154
  `;
155
- exports.GET_SERVICE_TICKETS = (0, graphql_tag_1.gql) `
156
- query GetServiceTickets($serviceId: String!) {
157
- getServiceTickets(serviceId: $serviceId) {
158
- id
159
- serviceId
160
- description
161
- status
162
- processStatus
163
- createdBy
164
- createdStamp
165
- updatedBy
166
- updatedStamp
167
- }
168
- }
155
+ exports.GET_SERVICE_TICKETS = (0, graphql_tag_1.gql) `
156
+ query GetServiceTickets($serviceId: String!) {
157
+ getServiceTickets(serviceId: $serviceId) {
158
+ id
159
+ serviceId
160
+ description
161
+ status
162
+ processStatus
163
+ createdBy
164
+ createdStamp
165
+ updatedBy
166
+ updatedStamp
167
+ }
168
+ }
169
169
  `;
170
- exports.GET_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
171
- query GetActionAttribute($actionId: String!, $attributeName: String!) {
172
- getActionAttribute(actionId: $actionId, attributeName: $attributeName)
173
- }
170
+ exports.GET_ACTION_ATTRIBUTE = (0, graphql_tag_1.gql) `
171
+ query GetActionAttribute($actionId: String!, $attributeName: String!) {
172
+ getActionAttribute(actionId: $actionId, attributeName: $attributeName)
173
+ }
174
174
  `;
@@ -0,0 +1 @@
1
+ export declare const CREATE_STORE_MUTATION: import("graphql").DocumentNode;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CREATE_STORE_MUTATION = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.CREATE_STORE_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation CreateStore($partnerId: String, $storeName: String) {
7
+ createStore(partnerId: $partnerId, storeName: $storeName) {
8
+ id
9
+ createdStamp
10
+ name
11
+ type
12
+ enable
13
+ partyId
14
+ warehouses
15
+ warehouseIdDefault
16
+ enableOrderAbleFuture
17
+ enableOrderNegativeQuantity
18
+ storeEcommerceName
19
+ shippingCompanies
20
+ shippingCompanyIdPrimary
21
+ customerIdPrimary
22
+ paymentMethodIdPrimary
23
+ enableCustomProductPrice
24
+ enablePaymentPartial
25
+ paymentPartialPercent
26
+ productStoreLink
27
+ }
28
+ }
29
+ `;
@@ -0,0 +1 @@
1
+ export declare const GET_STORE_CHANNEL_BY_EMP_ID_QUERY: import("graphql").DocumentNode;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_STORE_CHANNEL_BY_EMP_ID_QUERY = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.GET_STORE_CHANNEL_BY_EMP_ID_QUERY = (0, graphql_tag_1.gql) `
6
+ query GetStoreChannelByEmpId($saleId: String) {
7
+ getStoreChannelByEmpId(saleId: $saleId) {
8
+ id
9
+ createdStamp
10
+ name
11
+ type
12
+ enable
13
+ partyId
14
+ warehouses
15
+ warehouseIdDefault
16
+ enableOrderAbleFuture
17
+ enableOrderNegativeQuantity
18
+ storeEcommerceName
19
+ shippingCompanies
20
+ shippingCompanyIdPrimary
21
+ customerIdPrimary
22
+ paymentMethodIdPrimary
23
+ enableCustomProductPrice
24
+ enablePaymentPartial
25
+ paymentPartialPercent
26
+ productStoreLink
27
+ }
28
+ }
29
+ `;