@longvansoftware/service-js-client 1.0.9 → 1.1.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.
@@ -6,20 +6,13 @@ exports.CHANGE_SERVICE_NAME = (0, graphql_tag_1.gql) `
6
6
  mutation ChangeServiceName(
7
7
  $serviceId: String!
8
8
  $updateBy: String!
9
- $name: String!
9
+ $updateData: String!
10
10
  ) {
11
- changeServiceName(serviceId: $serviceId, updateBy: $updateBy, name: $name) {
12
- partnerId
13
- status
14
- ownerId
15
- startDate
16
- endDate
17
- actionRequest {
18
- id
19
- name
20
- uri
21
- }
22
- }
11
+ changeServiceName(
12
+ serviceId: $serviceId
13
+ updateBy: $updateBy
14
+ updateData: $updateData
15
+ )
23
16
  }
24
17
  `;
25
18
  exports.CREATE_USER_MAIL_HOSTING = (0, graphql_tag_1.gql) `
@@ -261,13 +261,21 @@ exports.GET_SIMPLE_PRODUCTS_QUERY = (0, graphql_tag_1.gql) `
261
261
  title
262
262
  sku
263
263
  shortDescription
264
- vat
264
+ description
265
265
  subType
266
+ vat
266
267
  qualify
268
+ parentId
267
269
  handle
268
270
  price
269
271
  compareAtPrice
272
+ priceType
273
+ priceTypeName
270
274
  featuredImage
275
+ unitDTO {
276
+ id
277
+ name
278
+ }
271
279
  images
272
280
  }
273
281
  }
@@ -463,6 +471,7 @@ exports.GET_PRODUCTS = (0, graphql_tag_1.gql) `
463
471
  $variant: Boolean
464
472
  $deleteChild: Boolean
465
473
  $display: String
474
+ $subType: String
466
475
  $currentPage: Int
467
476
  $maxResult: Int
468
477
  $isSync: Boolean
@@ -501,6 +510,7 @@ exports.GET_PRODUCTS = (0, graphql_tag_1.gql) `
501
510
  variant: $variant
502
511
  deleteChild: $deleteChild
503
512
  display: $display
513
+ subType: $subType
504
514
  currentPage: $currentPage
505
515
  maxResult: $maxResult
506
516
  isSync: $isSync
@@ -11,7 +11,7 @@ export declare class CloudService extends Service {
11
11
  setToken(token: string): void;
12
12
  serviceDetail(serviceId: string): Promise<any>;
13
13
  getMailResource(serviceId: string): Promise<any>;
14
- changeServiceName(serviceId: string, updateBy: string, name: string): Promise<any>;
14
+ changeServiceName(serviceId: string, updateBy: string, updateData: string): Promise<any>;
15
15
  getUserMailHosting(serviceId: string): Promise<any>;
16
16
  createUserMailHosting(payload: CreateUserMailHosting): Promise<any>;
17
17
  updateUserPassword(payload: UpdateUserPassword): Promise<any>;
@@ -58,13 +58,13 @@ class CloudService extends serviceSDK_1.Service {
58
58
  }
59
59
  });
60
60
  }
61
- changeServiceName(serviceId, updateBy, name) {
61
+ changeServiceName(serviceId, updateBy, updateData) {
62
62
  return __awaiter(this, void 0, void 0, function* () {
63
63
  const mutation = mutations_1.CHANGE_SERVICE_NAME;
64
64
  const variables = {
65
65
  serviceId,
66
66
  updateBy,
67
- name,
67
+ updateData,
68
68
  };
69
69
  try {
70
70
  const response = yield this.graphqlMutationV2(mutation, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [