@longvansoftware/service-js-client 2.3.3 → 2.3.5

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.
@@ -8,5 +8,6 @@ export declare const GET_PHONE_BY_PARTYID: DocumentNode;
8
8
  export declare const GET_EMAIL_BY_PARTYID: DocumentNode;
9
9
  export declare const GET_ACCESS_TOKEN_BY_OTP: DocumentNode;
10
10
  export declare const GET_PARTY_DETAIL_BY_PHONE: (fields?: string[]) => DocumentNode;
11
+ export declare const GET_PARTY_DETAIL_BY_CONTACT_INFO: (fields?: string[]) => DocumentNode;
11
12
  export declare const GET_ORGANIZATIONS_BY_PARTYID: (fields?: string[]) => DocumentNode;
12
13
  export declare const CHECK_ENABLED_2FA: (fields?: string[]) => DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHECK_ENABLED_2FA = exports.GET_ORGANIZATIONS_BY_PARTYID = exports.GET_PARTY_DETAIL_BY_PHONE = exports.GET_ACCESS_TOKEN_BY_OTP = exports.GET_EMAIL_BY_PARTYID = exports.GET_PHONE_BY_PARTYID = exports.GET_USER_LOGIN_BY_PARTY_ID = exports.CHECK_USERNAME_EXISTED = exports.GET_USER_LOGIN_BY_USER_LOGIN_ID = exports.GET_USER_LOGIN_BY_TOKEN = exports.GET_USER_DETAIL = void 0;
3
+ exports.CHECK_ENABLED_2FA = exports.GET_ORGANIZATIONS_BY_PARTYID = exports.GET_PARTY_DETAIL_BY_CONTACT_INFO = exports.GET_PARTY_DETAIL_BY_PHONE = exports.GET_ACCESS_TOKEN_BY_OTP = exports.GET_EMAIL_BY_PARTYID = exports.GET_PHONE_BY_PARTYID = exports.GET_USER_LOGIN_BY_PARTY_ID = 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
5
  exports.GET_USER_DETAIL = (0, graphql_tag_1.gql) `
6
6
  query GetUserDetail($orgId: String!, $accessToken: String!) {
@@ -98,6 +98,18 @@ const GET_PARTY_DETAIL_BY_PHONE = (fields = []) => {
98
98
  `;
99
99
  };
100
100
  exports.GET_PARTY_DETAIL_BY_PHONE = GET_PARTY_DETAIL_BY_PHONE;
101
+ const GET_PARTY_DETAIL_BY_CONTACT_INFO = (fields = []) => {
102
+ const fieldStr = fields.join("\n ");
103
+ const hasFields = fields.length > 0;
104
+ return (0, graphql_tag_1.gql) `
105
+ query GetPartyDetailByContactInfo($contactInfo: String!, $orgId: String!) {
106
+ getPartyDetailByContactInfo(contactInfo: $contactInfo, orgId: $orgId) {
107
+ ${hasFields ? `${fieldStr}` : ""}
108
+ }
109
+ }
110
+ `;
111
+ };
112
+ exports.GET_PARTY_DETAIL_BY_CONTACT_INFO = GET_PARTY_DETAIL_BY_CONTACT_INFO;
101
113
  const GET_ORGANIZATIONS_BY_PARTYID = (fields = []) => {
102
114
  const fieldStr = fields.join("\n ");
103
115
  const hasFields = fields.length > 0;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATE_COMPUTING_FOR_EC = exports.UPDATE_RAM = exports.UPDATE_CPU = exports.DELETE_COMPUTING = exports.RESTORE_COMPUTING_WAITING_REVOKE = exports.COMPUTING_WAITING_REVOKE = exports.UPDATE_NAME_COMPUTING = exports.CREATE_COMPUTING_FOR_DC = exports.UPDATE_DESCRIPTION_COMPUTING = exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.RESTARTVM = (0, graphql_tag_1.gql) `
6
- mutation Restart($computingId: String!, $actor: String!, $serviceId: String!) {
7
- restart(computingId: $computingId, actor: $actor, serviceId: $serviceId)
6
+ mutation Restart($computingId: String!, $actor: String!) {
7
+ restart(computingId: $computingId, actor: $actor)
8
8
  }
9
9
  `;
10
10
  exports.UPDATE_DESCRIPTION_PORTNAT = (0, graphql_tag_1.gql) `
@@ -52,26 +52,24 @@ exports.REMOVE_PORT_NAT = (0, graphql_tag_1.gql) `
52
52
  }
53
53
  `;
54
54
  exports.POWER_ON = (0, graphql_tag_1.gql) `
55
- mutation PowerOn($computingId: String!, $actor: String!, $serviceId: String!) {
56
- powerOn(computingId: $computingId, actor: $actor, serviceId: $serviceId)
55
+ mutation PowerOn($computingId: String!, $actor: String!) {
56
+ powerOn(computingId: $computingId, actor: $actor)
57
57
  }
58
58
  `;
59
59
  exports.POWER_OFF = (0, graphql_tag_1.gql) `
60
- mutation PowerOff($computingId: String!, $actor: String!, $serviceId: String!) {
61
- powerOff(computingId: $computingId, actor: $actor, serviceId: $serviceId)
60
+ mutation PowerOff($computingId: String!, $actor: String!) {
61
+ powerOff(computingId: $computingId, actor: $actor)
62
62
  }
63
63
  `;
64
64
  exports.CREATE_SNAP_SHOT = (0, graphql_tag_1.gql) `
65
65
  mutation CreateSnapshot(
66
66
  $computingId: String!
67
67
  $snapshotName: String!
68
- $serviceId: String!
69
68
  $createBy: String
70
69
  ) {
71
70
  createSnapshot(
72
71
  computingId: $computingId
73
72
  snapshotName: $snapshotName
74
- serviceId: $serviceId
75
73
  createBy: $createBy
76
74
  ) {
77
75
  id
@@ -88,13 +86,11 @@ exports.ROLLBACK_SNAPSHOT = (0, graphql_tag_1.gql) `
88
86
  mutation RollbackSnapshot(
89
87
  $computingId: String!
90
88
  $snapshotId: String!
91
- $serviceId: String!
92
89
  $createBy: String
93
90
  ) {
94
91
  rollbackSnapshot(
95
92
  computingId: $computingId
96
93
  snapshotId: $snapshotId
97
- serviceId: $serviceId
98
94
  createBy: $createBy
99
95
  )
100
96
  }
@@ -103,13 +99,11 @@ exports.DELETE_SNAPSHOT = (0, graphql_tag_1.gql) `
103
99
  mutation DeleteSnapshot(
104
100
  $computingId: String!
105
101
  $snapshotId: String!
106
- $serviceId: String!
107
102
  $updateBy: String
108
103
  ) {
109
104
  deleteSnapshot(
110
105
  computingId: $computingId
111
106
  snapshotId: $snapshotId
112
- serviceId: $serviceId
113
107
  updateBy: $updateBy
114
108
  )
115
109
  }
@@ -150,8 +144,8 @@ exports.REMOVE_COMPUTING_IN_CLUSTER = (0, graphql_tag_1.gql) `
150
144
  }
151
145
  `;
152
146
  exports.STOP_USE_COMPUTING = (0, graphql_tag_1.gql) `
153
- mutation StopUseComputing($computingId: String!, $userId: String!, $serviceId: String!) {
154
- stopUseComputing(computingId: $computingId, userId: $userId, serviceId: $serviceId) {
147
+ mutation StopUseComputing($computingId: String!, $userId: String!) {
148
+ stopUseComputing(computingId: $computingId, userId: $userId) {
155
149
  id
156
150
  name
157
151
  username
@@ -219,13 +213,11 @@ exports.UPDATE_DESCRIPTION_COMPUTING = (0, graphql_tag_1.gql) `
219
213
  $computingId: String!
220
214
  $description: String!
221
215
  $updateBy: String!
222
- $serviceId: String!
223
216
  ) {
224
217
  updateDescriptionComputing(
225
218
  computingId: $computingId
226
219
  description: $description
227
220
  updateBy: $updateBy
228
- serviceId: $serviceId
229
221
  )
230
222
  }
231
223
  `;
@@ -267,13 +259,11 @@ exports.UPDATE_NAME_COMPUTING = (0, graphql_tag_1.gql) `
267
259
  mutation UpdateNameComputing(
268
260
  $computingId: String!
269
261
  $name: String!
270
- $serviceId: String!
271
262
  $updateBy: String
272
263
  ) {
273
264
  updateNameComputing(
274
265
  computingId: $computingId
275
266
  name: $name
276
- serviceId: $serviceId
277
267
  updateBy: $updateBy
278
268
  )
279
269
  }
@@ -282,8 +272,8 @@ const COMPUTING_WAITING_REVOKE = (fields = []) => {
282
272
  const fieldStr = fields.join("\n ");
283
273
  const hasFields = fields.length > 0;
284
274
  return (0, graphql_tag_1.gql) `
285
- mutation ComputingWaitingRevoke($computingId: String! $userId: String!, $serviceId: String!) {
286
- computingWaitingRevoke(computingId: $computingId, userId: $userId, serviceId: $serviceId)
275
+ mutation ComputingWaitingRevoke($computingId: String! $userId: String!) {
276
+ computingWaitingRevoke(computingId: $computingId, userId: $userId)
287
277
  ${hasFields ? `{ ${fieldStr} }` : ""}
288
278
  }
289
279
  `;
@@ -293,8 +283,8 @@ const RESTORE_COMPUTING_WAITING_REVOKE = (fields = []) => {
293
283
  const fieldStr = fields.join("\n ");
294
284
  const hasFields = fields.length > 0;
295
285
  return (0, graphql_tag_1.gql) `
296
- mutation RestoreComputingWaitingRevoke($computingId: String! $userId: String!, $serviceId: String!) {
297
- restoreComputingWaitingRevoke(computingId: $computingId, userId: $userId, serviceId: $serviceId)
286
+ mutation RestoreComputingWaitingRevoke($computingId: String! $userId: String!) {
287
+ restoreComputingWaitingRevoke(computingId: $computingId, userId: $userId)
298
288
  ${hasFields ? `{ ${fieldStr} }` : ""}
299
289
  }
300
290
  `;
@@ -304,8 +294,8 @@ const DELETE_COMPUTING = (fields = []) => {
304
294
  const fieldStr = fields.join("\n ");
305
295
  const hasFields = fields.length > 0;
306
296
  return (0, graphql_tag_1.gql) `
307
- mutation DeleteComputing($computingId: String! $userId: String!, $serviceId: String!) {
308
- deleteComputing(computingId: $computingId, userId: $userId, serviceId: $serviceId) ${hasFields ? `{ ${fieldStr} }` : ""}
297
+ mutation DeleteComputing($computingId: String! $userId: String!) {
298
+ deleteComputing(computingId: $computingId, userId: $userId) ${hasFields ? `{ ${fieldStr} }` : ""}
309
299
  }
310
300
  `;
311
301
  };
@@ -316,14 +306,12 @@ exports.UPDATE_CPU = (0, graphql_tag_1.gql) `
316
306
  $socket: Int!
317
307
  $corePerSocket: Int!
318
308
  $updateBy: String!
319
- $serviceId: String!
320
309
  ) {
321
310
  updateCPU(
322
311
  computingId: $computingId
323
312
  socket: $socket
324
313
  corePerSocket: $corePerSocket
325
314
  updateBy: $updateBy
326
- serviceId: $serviceId
327
315
  )
328
316
  }
329
317
  `;
@@ -333,14 +321,12 @@ exports.UPDATE_RAM = (0, graphql_tag_1.gql) `
333
321
  $size: Int!
334
322
  $unit: String!
335
323
  $updateBy: String!
336
- $serviceId: String!
337
324
  ) {
338
325
  updateRAM(
339
326
  computingId: $computingId
340
327
  size: $size
341
328
  unit: $unit
342
329
  updateBy: $updateBy
343
- serviceId: $serviceId
344
330
  )
345
331
  }
346
332
  `;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_COMPUTINGS_DYNAMIC = exports.GET_STOREGE_MAPPING_FOR_DC = exports.GET_COMPUTING_WAIT_REVOKE = exports.GET_CONSOLE = exports.GET_RESOUCE_POOL_BY_SERVICE = exports.GET_AVAILABLE_STORAGES_FOR_DC = exports.GET_AVAILABLE_SUBNET_IPS_BY_RESOURCEPOLL_ID = exports.GET_TEMPLATE = exports.GET_PORT_NATS_BY_SERVICE_ID = exports.GET_EDGES = exports.GET_COMPUTING_BY_SERVICE = exports.GET_COMPUTING_BY_CLUSTER = exports.GET_CLUSTER = exports.GET_CLUSTERS = exports.GET_LAB_INSTANCE = exports.GET_COMPUTINGS = exports.BACKUP_POINT = exports.DISK_USAGE_DATE_RANGE = exports.NETWORK_USAGE_DATE_RANGE = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.DISK_USAGE_START_TIME = exports.NETWORK_USAGE_START_TIME = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
6
- query ComputingDetail($computingId: String!, $serviceId: String!) {
7
- computingDetail(computingId: $computingId, serviceId: $serviceId) {
6
+ query ComputingDetail($computingId: String!) {
7
+ computingDetail(computingId: $computingId) {
8
8
  id
9
9
  name
10
10
  username
@@ -51,8 +51,8 @@ exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
51
51
  }
52
52
  `;
53
53
  exports.PORTNATS = (0, graphql_tag_1.gql) `
54
- query PortNats($computingId: String!, $serviceId: String!) {
55
- portNats(computingId: $computingId, serviceId: $serviceId) {
54
+ query PortNats($computingId: String!) {
55
+ portNats(computingId: $computingId) {
56
56
  id
57
57
  action
58
58
  protocol
@@ -68,8 +68,8 @@ exports.PORTNATS = (0, graphql_tag_1.gql) `
68
68
  }
69
69
  `;
70
70
  exports.SNAP_SHOTS = (0, graphql_tag_1.gql) `
71
- query Snapshots($computingId: String!, $serviceId: String!) {
72
- snapshots(computingId: $computingId, serviceId: $serviceId) {
71
+ query Snapshots($computingId: String!) {
72
+ snapshots(computingId: $computingId) {
73
73
  id
74
74
  computingId
75
75
  snapshotId
@@ -29,4 +29,3 @@ export declare const GET_PRICE_MENUS: DocumentNode;
29
29
  export declare const GET_SIMPLE_PRODUCTS_DYNAMIC: (fields?: string[]) => DocumentNode;
30
30
  export declare const GET_PRODUCT_RELATED_TO_ARTICLE: (fields?: string[]) => DocumentNode;
31
31
  export declare const GET_PRODUCTS_FEATURE_TYPE_DYNAMIC: (fields?: string[]) => DocumentNode;
32
- export declare const GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC: (fields?: string[]) => DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC = exports.GET_PRODUCTS_FEATURE_TYPE_DYNAMIC = exports.GET_PRODUCT_RELATED_TO_ARTICLE = exports.GET_SIMPLE_PRODUCTS_DYNAMIC = exports.GET_PRICE_MENUS = exports.GET_CATEGORIES = exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
3
+ exports.GET_PRODUCTS_FEATURE_TYPE_DYNAMIC = exports.GET_PRODUCT_RELATED_TO_ARTICLE = exports.GET_SIMPLE_PRODUCTS_DYNAMIC = exports.GET_PRICE_MENUS = exports.GET_CATEGORIES = exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_SIMPLE_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
5
  // export const GET_PRODUCT_BY_ID_QUERY = gql`
6
6
  // query GetProductById(
@@ -1235,21 +1235,3 @@ const GET_PRODUCTS_FEATURE_TYPE_DYNAMIC = (fields = []) => {
1235
1235
  `;
1236
1236
  };
1237
1237
  exports.GET_PRODUCTS_FEATURE_TYPE_DYNAMIC = GET_PRODUCTS_FEATURE_TYPE_DYNAMIC;
1238
- const GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC = (fields = []) => {
1239
- const fieldStr = fields.join("\n ");
1240
- const hasFields = fields.length > 0;
1241
- return (0, graphql_tag_1.gql) `
1242
- query getProductSimpleByHandle(
1243
- $partnerId: String!
1244
- $storeChannel: String!
1245
- $handle: String
1246
- ) {
1247
- getProductSimpleByHandle(
1248
- partnerId: $partnerId
1249
- storeChannel: $storeChannel
1250
- handle: $handle
1251
- ) ${hasFields ? `{ ${fieldStr} }` : ""}
1252
- }
1253
- `;
1254
- };
1255
- exports.GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC = GET_PRODUCT_SIMPLE_BY_HANDLE_DYNAMIC;