@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.
Files changed (95) 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/cloud/mutations.js +282 -282
  7. package/dist/src/graphql/cloud/queries.js +341 -341
  8. package/dist/src/graphql/computing/mutations.js +303 -303
  9. package/dist/src/graphql/computing/queries.js +548 -548
  10. package/dist/src/graphql/crm/mutations.d.ts +2 -0
  11. package/dist/src/graphql/crm/mutations.js +427 -391
  12. package/dist/src/graphql/crm/queries.d.ts +1 -0
  13. package/dist/src/graphql/crm/queries.js +392 -358
  14. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  15. package/dist/src/graphql/crm_camping/queries.js +228 -199
  16. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  17. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  18. package/dist/src/graphql/payment/mutations.js +45 -45
  19. package/dist/src/graphql/payment/queries.js +60 -60
  20. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  21. package/dist/src/graphql/paymentLV/queries.js +75 -75
  22. package/dist/src/graphql/product/queries.d.ts +1 -0
  23. package/dist/src/graphql/product/queries.js +910 -892
  24. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  25. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  26. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  27. package/dist/src/graphql/resource_permission/queries.js +13 -13
  28. package/dist/src/graphql/service/mutations.js +228 -228
  29. package/dist/src/graphql/service/queries.js +128 -128
  30. package/dist/src/graphql/user/mutations.js +214 -214
  31. package/dist/src/graphql/user/queries.js +312 -312
  32. package/dist/src/lib/crm/index.d.ts +3 -0
  33. package/dist/src/lib/crm/index.js +51 -0
  34. package/dist/src/lib/crm_camping/index.d.ts +1 -1
  35. package/dist/src/lib/crm_camping/index.js +10 -6
  36. package/dist/src/lib/product/index.d.ts +1 -0
  37. package/dist/src/lib/product/index.js +18 -0
  38. package/dist/src/lib/service.d.ts +14 -0
  39. package/dist/src/lib/service.js +101 -0
  40. package/dist/src/lib/serviceSDK.js +12 -12
  41. package/dist/src/utils/build-field-string.d.ts +1 -0
  42. package/dist/src/utils/build-field-string.js +16 -0
  43. package/package.json +43 -44
  44. package/dist/src/graphql/campaign/mutations.d.ts +0 -1
  45. package/dist/src/graphql/campaign/mutations.js +0 -34
  46. package/dist/src/graphql/campaign/queries.d.ts +0 -9
  47. package/dist/src/graphql/campaign/queries.js +0 -412
  48. package/dist/src/graphql/cashbook/queries.d.ts +0 -2
  49. package/dist/src/graphql/cashbook/queries.js +0 -99
  50. package/dist/src/graphql/paymentV2/mutations.d.ts +0 -3
  51. package/dist/src/graphql/paymentV2/mutations.js +0 -54
  52. package/dist/src/graphql/paymentV2/queries.d.ts +0 -6
  53. package/dist/src/graphql/paymentV2/queries.js +0 -186
  54. package/dist/src/graphql/store/mutations.d.ts +0 -1
  55. package/dist/src/graphql/store/mutations.js +0 -29
  56. package/dist/src/graphql/store/queries.d.ts +0 -1
  57. package/dist/src/graphql/store/queries.js +0 -29
  58. package/dist/src/lib/accounting/index.d.ts +0 -5
  59. package/dist/src/lib/accounting/index.js +0 -32
  60. package/dist/src/lib/campaign/index.d.ts +0 -20
  61. package/dist/src/lib/campaign/index.js +0 -213
  62. package/dist/src/lib/cashbook/index.d.ts +0 -6
  63. package/dist/src/lib/cashbook/index.js +0 -56
  64. package/dist/src/lib/comhub/index.d.ts +0 -6
  65. package/dist/src/lib/comhub/index.js +0 -50
  66. package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -6
  67. package/dist/src/lib/deepLinkVietQr/index.js +0 -45
  68. package/dist/src/lib/getImage/index.d.ts +0 -4
  69. package/dist/src/lib/getImage/index.js +0 -10
  70. package/dist/src/lib/image/index.d.ts +0 -7
  71. package/dist/src/lib/image/index.js +0 -49
  72. package/dist/src/lib/omnigateway/index.d.ts +0 -7
  73. package/dist/src/lib/omnigateway/index.js +0 -58
  74. package/dist/src/lib/paymentV2/index.d.ts +0 -13
  75. package/dist/src/lib/paymentV2/index.js +0 -163
  76. package/dist/src/lib/portal/index.d.ts +0 -21
  77. package/dist/src/lib/portal/index.js +0 -225
  78. package/dist/src/lib/store/index.d.ts +0 -30
  79. package/dist/src/lib/store/index.js +0 -74
  80. package/dist/src/lib/token/index.d.ts +0 -5
  81. package/dist/src/lib/token/index.js +0 -32
  82. package/dist/src/lib/upload/index.d.ts +0 -5
  83. package/dist/src/lib/upload/index.js +0 -35
  84. package/dist/src/lib/warehouseV2/index.d.ts +0 -13
  85. package/dist/src/lib/warehouseV2/index.js +0 -54
  86. package/dist/src/lib/zca/index.d.ts +0 -12
  87. package/dist/src/lib/zca/index.js +0 -41
  88. package/dist/src/types/campaign.d.ts +0 -14
  89. package/dist/src/types/campaign.js +0 -2
  90. package/dist/src/types/invoice.d.ts +0 -13
  91. package/dist/src/types/invoice.js +0 -2
  92. package/dist/src/types/store.d.ts +0 -158
  93. package/dist/src/types/store.js +0 -3
  94. package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
  95. package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -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
  `;