@longvansoftware/service-js-client 2.3.5 → 2.3.6

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.
@@ -49,11 +49,12 @@ class StorageS3Service extends serviceSDK_1.Service {
49
49
  }
50
50
  });
51
51
  }
52
- getListBucketByS3UserId(s3UserId, fields) {
52
+ getListBucketByS3UserId(s3UserId, serviceId, fields) {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
54
  const query = (0, queries_1.GET_LIST_BUCKET_BY_S3_USER_ID)(fields);
55
55
  const variables = {
56
56
  s3UserId,
57
+ serviceId
57
58
  };
58
59
  try {
59
60
  const response = yield this.graphqlQueryV2(query, variables);
@@ -65,13 +66,14 @@ class StorageS3Service extends serviceSDK_1.Service {
65
66
  }
66
67
  });
67
68
  }
68
- getListObject(s3UserId, bucketId, key, fields) {
69
+ getListObject(s3UserId, bucketId, key, serviceId, fields) {
69
70
  return __awaiter(this, void 0, void 0, function* () {
70
71
  const query = (0, queries_1.GET_LIST_OBJECT)(fields);
71
72
  const variables = {
72
73
  s3UserId,
73
74
  bucketId,
74
75
  key,
76
+ serviceId
75
77
  };
76
78
  try {
77
79
  const response = yield this.graphqlQueryV2(query, variables);
@@ -83,7 +85,7 @@ class StorageS3Service extends serviceSDK_1.Service {
83
85
  }
84
86
  });
85
87
  }
86
- uploadFolder(userId, bucketId, fileInfo, basePrefix, fields) {
88
+ uploadFolder(userId, bucketId, fileInfo, basePrefix, serviceId, fields) {
87
89
  return __awaiter(this, void 0, void 0, function* () {
88
90
  const mutation = (0, mutations_1.UPLOAD_FOLDER)(fields);
89
91
  const variables = {
@@ -91,6 +93,7 @@ class StorageS3Service extends serviceSDK_1.Service {
91
93
  bucketId,
92
94
  fileInfo,
93
95
  basePrefix,
96
+ serviceId
94
97
  };
95
98
  console.log('variables', variables);
96
99
  try {
@@ -121,7 +124,7 @@ class StorageS3Service extends serviceSDK_1.Service {
121
124
  }
122
125
  });
123
126
  }
124
- updateAclPermissionFile(s3UserId, bucketId, key, isPublic, fields) {
127
+ updateAclPermissionFile(s3UserId, bucketId, key, isPublic, serviceId, fields) {
125
128
  return __awaiter(this, void 0, void 0, function* () {
126
129
  const mutation = (0, mutations_1.UPDATE_ACL_PERMISSION_FILE)(fields);
127
130
  const variables = {
@@ -129,6 +132,7 @@ class StorageS3Service extends serviceSDK_1.Service {
129
132
  bucketId,
130
133
  key,
131
134
  isPublic,
135
+ serviceId
132
136
  };
133
137
  try {
134
138
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -140,7 +144,7 @@ class StorageS3Service extends serviceSDK_1.Service {
140
144
  }
141
145
  });
142
146
  }
143
- renameFile(s3UserId, bucketId, key, fileNewName, fields) {
147
+ renameFile(s3UserId, bucketId, key, fileNewName, serviceId, fields) {
144
148
  return __awaiter(this, void 0, void 0, function* () {
145
149
  const mutation = (0, mutations_1.RENAME_FILE)(fields);
146
150
  const variables = {
@@ -148,6 +152,7 @@ class StorageS3Service extends serviceSDK_1.Service {
148
152
  bucketId,
149
153
  key,
150
154
  fileNewName,
155
+ serviceId
151
156
  };
152
157
  try {
153
158
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -159,7 +164,7 @@ class StorageS3Service extends serviceSDK_1.Service {
159
164
  }
160
165
  });
161
166
  }
162
- shareLinkFileByTime(s3UserId, bucketId, key, quantityHour) {
167
+ shareLinkFileByTime(s3UserId, bucketId, key, quantityHour, serviceId) {
163
168
  return __awaiter(this, void 0, void 0, function* () {
164
169
  const mutation = mutations_1.SHARE_LINK_FILE_BY_TIME;
165
170
  const variables = {
@@ -167,6 +172,7 @@ class StorageS3Service extends serviceSDK_1.Service {
167
172
  bucketId,
168
173
  key,
169
174
  quantityHour,
175
+ serviceId
170
176
  };
171
177
  try {
172
178
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -178,7 +184,7 @@ class StorageS3Service extends serviceSDK_1.Service {
178
184
  }
179
185
  });
180
186
  }
181
- copyFile(s3UserId, bucketId, srcFileKey, dstFileKey, fields) {
187
+ copyFile(s3UserId, bucketId, srcFileKey, dstFileKey, serviceId, fields) {
182
188
  return __awaiter(this, void 0, void 0, function* () {
183
189
  const mutation = (0, mutations_1.COPY_FILE)(fields);
184
190
  const variables = {
@@ -186,6 +192,7 @@ class StorageS3Service extends serviceSDK_1.Service {
186
192
  bucketId,
187
193
  srcFileKey,
188
194
  dstFileKey,
195
+ serviceId
189
196
  };
190
197
  try {
191
198
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -197,7 +204,7 @@ class StorageS3Service extends serviceSDK_1.Service {
197
204
  }
198
205
  });
199
206
  }
200
- moveFile(s3UserId, bucketId, srcFileKey, dstFileKey, fields) {
207
+ moveFile(s3UserId, bucketId, srcFileKey, dstFileKey, serviceId, fields) {
201
208
  return __awaiter(this, void 0, void 0, function* () {
202
209
  const mutation = (0, mutations_1.MOVE_FILE)(fields);
203
210
  const variables = {
@@ -205,6 +212,7 @@ class StorageS3Service extends serviceSDK_1.Service {
205
212
  bucketId,
206
213
  srcFileKey,
207
214
  dstFileKey,
215
+ serviceId
208
216
  };
209
217
  try {
210
218
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -216,13 +224,14 @@ class StorageS3Service extends serviceSDK_1.Service {
216
224
  }
217
225
  });
218
226
  }
219
- removeFile(s3UserId, bucketId, keys, fields) {
227
+ removeFile(s3UserId, bucketId, keys, serviceId, fields) {
220
228
  return __awaiter(this, void 0, void 0, function* () {
221
229
  const mutation = (0, mutations_1.REMOVE_FILE)(fields);
222
230
  const variables = {
223
231
  s3UserId,
224
232
  bucketId,
225
233
  keys,
234
+ serviceId
226
235
  };
227
236
  try {
228
237
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -234,7 +243,7 @@ class StorageS3Service extends serviceSDK_1.Service {
234
243
  }
235
244
  });
236
245
  }
237
- createFolder(s3UserId, bucketId, folderName, key, fields) {
246
+ createFolder(s3UserId, bucketId, folderName, key, serviceId, fields) {
238
247
  return __awaiter(this, void 0, void 0, function* () {
239
248
  const mutation = (0, mutations_1.CREATE_FOLDER)(fields);
240
249
  const variables = {
@@ -242,6 +251,7 @@ class StorageS3Service extends serviceSDK_1.Service {
242
251
  bucketId,
243
252
  folderName,
244
253
  key,
254
+ serviceId
245
255
  };
246
256
  try {
247
257
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -253,13 +263,14 @@ class StorageS3Service extends serviceSDK_1.Service {
253
263
  }
254
264
  });
255
265
  }
256
- removeFolder(s3UserId, bucketId, key, fields) {
266
+ removeFolder(s3UserId, bucketId, key, serviceId, fields) {
257
267
  return __awaiter(this, void 0, void 0, function* () {
258
268
  const mutation = (0, mutations_1.REMOVE_FOLDER)(fields);
259
269
  const variables = {
260
270
  s3UserId,
261
271
  bucketId,
262
272
  key,
273
+ serviceId
263
274
  };
264
275
  try {
265
276
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -271,7 +282,7 @@ class StorageS3Service extends serviceSDK_1.Service {
271
282
  }
272
283
  });
273
284
  }
274
- createBucket(s3UserId, bucketName, internalId, randomInternalId, enableObjectLock, enableBucketVersioning, byUser, fields) {
285
+ createBucket(s3UserId, bucketName, internalId, randomInternalId, enableObjectLock, enableBucketVersioning, byUser, serviceId, fields) {
275
286
  return __awaiter(this, void 0, void 0, function* () {
276
287
  const mutation = (0, mutations_1.CREATE_BUCKET)(fields);
277
288
  const variables = {
@@ -282,6 +293,7 @@ class StorageS3Service extends serviceSDK_1.Service {
282
293
  enableObjectLock,
283
294
  enableBucketVersioning,
284
295
  byUser,
296
+ serviceId
285
297
  };
286
298
  try {
287
299
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -293,13 +305,14 @@ class StorageS3Service extends serviceSDK_1.Service {
293
305
  }
294
306
  });
295
307
  }
296
- renameBucket(bucketId, bucketName, updateBy, fields) {
308
+ renameBucket(bucketId, bucketName, updateBy, serviceId, fields) {
297
309
  return __awaiter(this, void 0, void 0, function* () {
298
310
  const mutation = (0, mutations_1.RENAME_BUCKET)(fields);
299
311
  const variables = {
300
312
  bucketId,
301
313
  bucketName,
302
- updateBy
314
+ updateBy,
315
+ serviceId
303
316
  };
304
317
  try {
305
318
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -311,12 +324,13 @@ class StorageS3Service extends serviceSDK_1.Service {
311
324
  }
312
325
  });
313
326
  }
314
- deleteBucket(bucketId, updateBy, fields) {
327
+ deleteBucket(bucketId, updateBy, serviceId, fields) {
315
328
  return __awaiter(this, void 0, void 0, function* () {
316
329
  const mutation = (0, mutations_1.DELETE_BUCKET)(fields);
317
330
  const variables = {
318
331
  bucketId,
319
332
  updateBy,
333
+ serviceId
320
334
  };
321
335
  try {
322
336
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -328,7 +342,7 @@ class StorageS3Service extends serviceSDK_1.Service {
328
342
  }
329
343
  });
330
344
  }
331
- updateAclPermissionBucket(s3UserId, bucketId, isPublic, updateBy, fields) {
345
+ updateAclPermissionBucket(s3UserId, bucketId, isPublic, updateBy, serviceId, fields) {
332
346
  return __awaiter(this, void 0, void 0, function* () {
333
347
  const mutation = (0, mutations_1.UPDATE_ACL_PERMISSION_BUCKET)(fields);
334
348
  const variables = {
@@ -336,6 +350,7 @@ class StorageS3Service extends serviceSDK_1.Service {
336
350
  bucketId,
337
351
  isPublic,
338
352
  updateBy,
353
+ serviceId
339
354
  };
340
355
  try {
341
356
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -347,7 +362,7 @@ class StorageS3Service extends serviceSDK_1.Service {
347
362
  }
348
363
  });
349
364
  }
350
- updateBucketVersioning(s3UserId, bucketId, isOn, updateBy, fields) {
365
+ updateBucketVersioning(s3UserId, bucketId, isOn, updateBy, serviceId, fields) {
351
366
  return __awaiter(this, void 0, void 0, function* () {
352
367
  const mutation = (0, mutations_1.UPDATE_BUCKET_VERSIONING)(fields);
353
368
  const variables = {
@@ -355,6 +370,7 @@ class StorageS3Service extends serviceSDK_1.Service {
355
370
  bucketId,
356
371
  isOn,
357
372
  updateBy,
373
+ serviceId
358
374
  };
359
375
  try {
360
376
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -366,12 +382,13 @@ class StorageS3Service extends serviceSDK_1.Service {
366
382
  }
367
383
  });
368
384
  }
369
- getListFileTrash(s3UserId, bucketId, fields) {
385
+ getListFileTrash(s3UserId, bucketId, serviceId, fields) {
370
386
  return __awaiter(this, void 0, void 0, function* () {
371
387
  const query = (0, queries_1.GET_LIST_FILE_TRASH)(fields);
372
388
  const variables = {
373
389
  s3UserId,
374
390
  bucketId,
391
+ serviceId
375
392
  };
376
393
  try {
377
394
  const response = yield this.graphqlQueryV2(query, variables);
@@ -383,14 +400,15 @@ class StorageS3Service extends serviceSDK_1.Service {
383
400
  }
384
401
  });
385
402
  }
386
- restoreFileTrash(s3UserId, bucketId, key, versionId, fields) {
403
+ restoreFileTrash(s3UserId, bucketId, key, versionId, serviceId, fields) {
387
404
  return __awaiter(this, void 0, void 0, function* () {
388
405
  const mutation = (0, mutations_1.RESTORE_FILE_TRASH)(fields);
389
406
  const variables = {
390
407
  s3UserId,
391
408
  bucketId,
392
409
  key,
393
- versionId
410
+ versionId,
411
+ serviceId
394
412
  };
395
413
  try {
396
414
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -402,13 +420,14 @@ class StorageS3Service extends serviceSDK_1.Service {
402
420
  }
403
421
  });
404
422
  }
405
- removeFileTrash(s3UserId, bucketId, files, fields) {
423
+ removeFileTrash(s3UserId, bucketId, files, serviceId, fields) {
406
424
  return __awaiter(this, void 0, void 0, function* () {
407
425
  const mutation = (0, mutations_1.REMOVE_FILE_TRASH)(fields);
408
426
  const variables = {
409
427
  s3UserId,
410
428
  bucketId,
411
- files
429
+ files,
430
+ serviceId
412
431
  };
413
432
  try {
414
433
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -420,11 +439,12 @@ class StorageS3Service extends serviceSDK_1.Service {
420
439
  }
421
440
  });
422
441
  }
423
- getListS3DomainByS3UserId(s3UserId, fields) {
442
+ getListS3DomainByS3UserId(s3UserId, serviceId, fields) {
424
443
  return __awaiter(this, void 0, void 0, function* () {
425
444
  const query = (0, queries_1.GET_LIST_S3_DOMAIN_BY_S3_USER_ID)(fields);
426
445
  const variables = {
427
446
  s3UserId,
447
+ serviceId
428
448
  };
429
449
  try {
430
450
  const response = yield this.graphqlQueryV2(query, variables);
@@ -436,13 +456,14 @@ class StorageS3Service extends serviceSDK_1.Service {
436
456
  }
437
457
  });
438
458
  }
439
- addS3Domain(s3UserId, domain, byUser, fields) {
459
+ addS3Domain(s3UserId, domain, byUser, serviceId, fields) {
440
460
  return __awaiter(this, void 0, void 0, function* () {
441
461
  const mutation = (0, mutations_1.ADD_S3_DOMAIN)(fields);
442
462
  const variables = {
443
463
  s3UserId,
444
464
  domain,
445
465
  byUser,
466
+ serviceId
446
467
  };
447
468
  try {
448
469
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -454,13 +475,14 @@ class StorageS3Service extends serviceSDK_1.Service {
454
475
  }
455
476
  });
456
477
  }
457
- removeS3Domain(s3UserId, domainId, byUser, fields) {
478
+ removeS3Domain(s3UserId, domainId, byUser, serviceId, fields) {
458
479
  return __awaiter(this, void 0, void 0, function* () {
459
480
  const mutation = (0, mutations_1.REMOVE_S3_DOMAIN)(fields);
460
481
  const variables = {
461
482
  s3UserId,
462
483
  domainId,
463
484
  byUser,
485
+ serviceId
464
486
  };
465
487
  try {
466
488
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -472,12 +494,13 @@ class StorageS3Service extends serviceSDK_1.Service {
472
494
  }
473
495
  });
474
496
  }
475
- getListCorsByS3UserId(s3UserId, bucketId, fields) {
497
+ getListCorsByS3UserId(s3UserId, bucketId, serviceId, fields) {
476
498
  return __awaiter(this, void 0, void 0, function* () {
477
499
  const query = (0, queries_1.GET_LIST_CORS_BY_S3_USER_ID)(fields);
478
500
  const variables = {
479
501
  s3UserId,
480
502
  bucketId,
503
+ serviceId
481
504
  };
482
505
  try {
483
506
  const response = yield this.graphqlQueryV2(query, variables);
@@ -489,7 +512,7 @@ class StorageS3Service extends serviceSDK_1.Service {
489
512
  }
490
513
  });
491
514
  }
492
- addCorsBucket(s3UserId, bucketId, allowedMethods, allowedOrigins, allowedHeaders, exposeHeaders, maxAgeSeconds, updateBy, fields) {
515
+ addCorsBucket(s3UserId, bucketId, allowedMethods, allowedOrigins, allowedHeaders, exposeHeaders, maxAgeSeconds, updateBy, serviceId, fields) {
493
516
  return __awaiter(this, void 0, void 0, function* () {
494
517
  const mutation = (0, mutations_1.ADD_CORS_BUCKET)(fields);
495
518
  const variables = {
@@ -501,6 +524,7 @@ class StorageS3Service extends serviceSDK_1.Service {
501
524
  exposeHeaders,
502
525
  maxAgeSeconds,
503
526
  updateBy,
527
+ serviceId
504
528
  };
505
529
  try {
506
530
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -512,11 +536,10 @@ class StorageS3Service extends serviceSDK_1.Service {
512
536
  }
513
537
  });
514
538
  }
515
- updateCorsBucket(s3UserId, bucketId, corsId, allowedMethods, allowedOrigins, allowedHeaders, exposeHeaders, maxAgeSeconds, updateBy, fields) {
539
+ updateCorsBucket(bucketId, corsId, allowedMethods, allowedOrigins, allowedHeaders, exposeHeaders, maxAgeSeconds, updateBy, serviceId, fields) {
516
540
  return __awaiter(this, void 0, void 0, function* () {
517
541
  const mutation = (0, mutations_1.UPDATE_CORS_BUCKET)(fields);
518
542
  const variables = {
519
- s3UserId,
520
543
  bucketId,
521
544
  corsId,
522
545
  allowedMethods,
@@ -525,6 +548,7 @@ class StorageS3Service extends serviceSDK_1.Service {
525
548
  exposeHeaders,
526
549
  maxAgeSeconds,
527
550
  updateBy,
551
+ serviceId
528
552
  };
529
553
  try {
530
554
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -536,13 +560,14 @@ class StorageS3Service extends serviceSDK_1.Service {
536
560
  }
537
561
  });
538
562
  }
539
- removeCorsBucket(bucketId, corsId, updateBy, fields) {
563
+ removeCorsBucket(bucketId, corsId, updateBy, serviceId, fields) {
540
564
  return __awaiter(this, void 0, void 0, function* () {
541
565
  const mutation = (0, mutations_1.REMOVE_CORS_BUCKET)(fields);
542
566
  const variables = {
543
567
  bucketId,
544
568
  corsId,
545
569
  updateBy,
570
+ serviceId
546
571
  };
547
572
  try {
548
573
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -554,13 +579,14 @@ class StorageS3Service extends serviceSDK_1.Service {
554
579
  }
555
580
  });
556
581
  }
557
- getListFileOtherVersion(s3UserId, bucketId, key, fields) {
582
+ getListFileOtherVersion(s3UserId, bucketId, key, serviceId, fields) {
558
583
  return __awaiter(this, void 0, void 0, function* () {
559
584
  const query = (0, queries_1.GET_LIST_FILE_OTHER_VERSION)(fields);
560
585
  const variables = {
561
586
  s3UserId,
562
587
  bucketId,
563
588
  key,
589
+ serviceId
564
590
  };
565
591
  try {
566
592
  const response = yield this.graphqlQueryV2(query, variables);
@@ -572,14 +598,15 @@ class StorageS3Service extends serviceSDK_1.Service {
572
598
  }
573
599
  });
574
600
  }
575
- restoreFileOtherVersion(s3UserId, bucketId, key, versionId, fields) {
601
+ restoreFileOtherVersion(s3UserId, bucketId, key, versionId, serviceId, fields) {
576
602
  return __awaiter(this, void 0, void 0, function* () {
577
603
  const mutation = (0, mutations_1.RESTORE_FILE_OTHER_VERSION)(fields);
578
604
  const variables = {
579
605
  s3UserId,
580
606
  bucketId,
581
607
  key,
582
- versionId
608
+ versionId,
609
+ serviceId
583
610
  };
584
611
  try {
585
612
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -591,14 +618,15 @@ class StorageS3Service extends serviceSDK_1.Service {
591
618
  }
592
619
  });
593
620
  }
594
- removeFileOtherVersion(s3UserId, bucketId, key, versionId, fields) {
621
+ removeFileOtherVersion(s3UserId, bucketId, key, versionId, serviceId, fields) {
595
622
  return __awaiter(this, void 0, void 0, function* () {
596
623
  const mutation = (0, mutations_1.REMOVE_FILE_OTHER_VERSION)(fields);
597
624
  const variables = {
598
625
  s3UserId,
599
626
  bucketId,
600
627
  key,
601
- versionId
628
+ versionId,
629
+ serviceId
602
630
  };
603
631
  try {
604
632
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -610,12 +638,13 @@ class StorageS3Service extends serviceSDK_1.Service {
610
638
  }
611
639
  });
612
640
  }
613
- resetKey(s3UserId, updateBy, fields) {
641
+ resetKey(s3UserId, updateBy, serviceId, fields) {
614
642
  return __awaiter(this, void 0, void 0, function* () {
615
643
  const mutation = (0, mutations_1.RESET_KEY)(fields);
616
644
  const variables = {
617
645
  s3UserId,
618
- updateBy
646
+ updateBy,
647
+ serviceId
619
648
  };
620
649
  try {
621
650
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -627,12 +656,13 @@ class StorageS3Service extends serviceSDK_1.Service {
627
656
  }
628
657
  });
629
658
  }
630
- actionSyncUserFromS3(s3UserId, updateBy, fields) {
659
+ actionSyncUserFromS3(s3UserId, updateBy, serviceId, fields) {
631
660
  return __awaiter(this, void 0, void 0, function* () {
632
661
  const mutation = (0, mutations_1.ACTION_SYNC_USER_FROM_S3)(fields);
633
662
  const variables = {
634
663
  s3UserId,
635
- updateBy
664
+ updateBy,
665
+ serviceId
636
666
  };
637
667
  try {
638
668
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -644,13 +674,14 @@ class StorageS3Service extends serviceSDK_1.Service {
644
674
  }
645
675
  });
646
676
  }
647
- chartInYear(s3UserId, year, month, fields) {
677
+ chartInYear(s3UserId, year, month, serviceId, fields) {
648
678
  return __awaiter(this, void 0, void 0, function* () {
649
679
  const query = (0, queries_1.CHART_IN_YEAR)(fields);
650
680
  const variables = {
651
681
  s3UserId,
652
682
  year,
653
- month
683
+ month,
684
+ serviceId
654
685
  };
655
686
  try {
656
687
  const response = yield this.graphqlQueryV2(query, variables);
@@ -662,11 +693,12 @@ class StorageS3Service extends serviceSDK_1.Service {
662
693
  }
663
694
  });
664
695
  }
665
- getIPConsul(userId) {
696
+ getIPConsul(userId, serviceId) {
666
697
  return __awaiter(this, void 0, void 0, function* () {
667
698
  const query = queries_1.GET_IP_CONSUL;
668
699
  const variables = {
669
- userId
700
+ userId,
701
+ serviceId
670
702
  };
671
703
  try {
672
704
  const response = yield this.graphqlQueryV2(query, variables);
@@ -678,7 +710,7 @@ class StorageS3Service extends serviceSDK_1.Service {
678
710
  }
679
711
  });
680
712
  }
681
- filterListObject(s3UserId, bucketId, maxKeys, key, prefixSearch, continuationToken, fields) {
713
+ filterListObject(s3UserId, bucketId, maxKeys, key, prefixSearch, continuationToken, serviceId, fields) {
682
714
  return __awaiter(this, void 0, void 0, function* () {
683
715
  const query = (0, queries_1.FILTER_LIST_OBJECT)(fields);
684
716
  const variables = {
@@ -687,7 +719,8 @@ class StorageS3Service extends serviceSDK_1.Service {
687
719
  maxKeys,
688
720
  key,
689
721
  prefixSearch,
690
- continuationToken
722
+ continuationToken,
723
+ serviceId
691
724
  };
692
725
  try {
693
726
  const response = yield this.graphqlQueryV2(query, variables);
@@ -9,8 +9,10 @@ export interface CreatePortNat {
9
9
  export interface CreateSnapShot {
10
10
  computingId: string;
11
11
  snapshotName: string;
12
+ serviceId: string;
12
13
  }
13
14
  export interface RollBackSnapShot {
14
15
  computingId: string;
15
16
  snapshotId: string;
17
+ serviceId: string;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [