@longvansoftware/service-js-client 2.3.7 → 2.3.8

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,7 +536,7 @@ class StorageS3Service extends serviceSDK_1.Service {
512
536
  }
513
537
  });
514
538
  }
515
- updateCorsBucket(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 = {
@@ -524,6 +548,7 @@ class StorageS3Service extends serviceSDK_1.Service {
524
548
  exposeHeaders,
525
549
  maxAgeSeconds,
526
550
  updateBy,
551
+ serviceId
527
552
  };
528
553
  try {
529
554
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -535,13 +560,14 @@ class StorageS3Service extends serviceSDK_1.Service {
535
560
  }
536
561
  });
537
562
  }
538
- removeCorsBucket(bucketId, corsId, updateBy, fields) {
563
+ removeCorsBucket(bucketId, corsId, updateBy, serviceId, fields) {
539
564
  return __awaiter(this, void 0, void 0, function* () {
540
565
  const mutation = (0, mutations_1.REMOVE_CORS_BUCKET)(fields);
541
566
  const variables = {
542
567
  bucketId,
543
568
  corsId,
544
569
  updateBy,
570
+ serviceId
545
571
  };
546
572
  try {
547
573
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -553,13 +579,14 @@ class StorageS3Service extends serviceSDK_1.Service {
553
579
  }
554
580
  });
555
581
  }
556
- getListFileOtherVersion(s3UserId, bucketId, key, fields) {
582
+ getListFileOtherVersion(s3UserId, bucketId, key, serviceId, fields) {
557
583
  return __awaiter(this, void 0, void 0, function* () {
558
584
  const query = (0, queries_1.GET_LIST_FILE_OTHER_VERSION)(fields);
559
585
  const variables = {
560
586
  s3UserId,
561
587
  bucketId,
562
588
  key,
589
+ serviceId
563
590
  };
564
591
  try {
565
592
  const response = yield this.graphqlQueryV2(query, variables);
@@ -571,14 +598,15 @@ class StorageS3Service extends serviceSDK_1.Service {
571
598
  }
572
599
  });
573
600
  }
574
- restoreFileOtherVersion(s3UserId, bucketId, key, versionId, fields) {
601
+ restoreFileOtherVersion(s3UserId, bucketId, key, versionId, serviceId, fields) {
575
602
  return __awaiter(this, void 0, void 0, function* () {
576
603
  const mutation = (0, mutations_1.RESTORE_FILE_OTHER_VERSION)(fields);
577
604
  const variables = {
578
605
  s3UserId,
579
606
  bucketId,
580
607
  key,
581
- versionId
608
+ versionId,
609
+ serviceId
582
610
  };
583
611
  try {
584
612
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -590,14 +618,15 @@ class StorageS3Service extends serviceSDK_1.Service {
590
618
  }
591
619
  });
592
620
  }
593
- removeFileOtherVersion(s3UserId, bucketId, key, versionId, fields) {
621
+ removeFileOtherVersion(s3UserId, bucketId, key, versionId, serviceId, fields) {
594
622
  return __awaiter(this, void 0, void 0, function* () {
595
623
  const mutation = (0, mutations_1.REMOVE_FILE_OTHER_VERSION)(fields);
596
624
  const variables = {
597
625
  s3UserId,
598
626
  bucketId,
599
627
  key,
600
- versionId
628
+ versionId,
629
+ serviceId
601
630
  };
602
631
  try {
603
632
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -609,12 +638,13 @@ class StorageS3Service extends serviceSDK_1.Service {
609
638
  }
610
639
  });
611
640
  }
612
- resetKey(s3UserId, updateBy, fields) {
641
+ resetKey(s3UserId, updateBy, serviceId, fields) {
613
642
  return __awaiter(this, void 0, void 0, function* () {
614
643
  const mutation = (0, mutations_1.RESET_KEY)(fields);
615
644
  const variables = {
616
645
  s3UserId,
617
- updateBy
646
+ updateBy,
647
+ serviceId
618
648
  };
619
649
  try {
620
650
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -626,12 +656,13 @@ class StorageS3Service extends serviceSDK_1.Service {
626
656
  }
627
657
  });
628
658
  }
629
- actionSyncUserFromS3(s3UserId, updateBy, fields) {
659
+ actionSyncUserFromS3(s3UserId, updateBy, serviceId, fields) {
630
660
  return __awaiter(this, void 0, void 0, function* () {
631
661
  const mutation = (0, mutations_1.ACTION_SYNC_USER_FROM_S3)(fields);
632
662
  const variables = {
633
663
  s3UserId,
634
- updateBy
664
+ updateBy,
665
+ serviceId
635
666
  };
636
667
  try {
637
668
  const response = yield this.graphqlMutationV2(mutation, variables);
@@ -643,13 +674,14 @@ class StorageS3Service extends serviceSDK_1.Service {
643
674
  }
644
675
  });
645
676
  }
646
- chartInYear(s3UserId, year, month, fields) {
677
+ chartInYear(s3UserId, year, month, serviceId, fields) {
647
678
  return __awaiter(this, void 0, void 0, function* () {
648
679
  const query = (0, queries_1.CHART_IN_YEAR)(fields);
649
680
  const variables = {
650
681
  s3UserId,
651
682
  year,
652
- month
683
+ month,
684
+ serviceId
653
685
  };
654
686
  try {
655
687
  const response = yield this.graphqlQueryV2(query, variables);
@@ -661,11 +693,12 @@ class StorageS3Service extends serviceSDK_1.Service {
661
693
  }
662
694
  });
663
695
  }
664
- getIPConsul(userId) {
696
+ getIPConsul(userId, serviceId) {
665
697
  return __awaiter(this, void 0, void 0, function* () {
666
698
  const query = queries_1.GET_IP_CONSUL;
667
699
  const variables = {
668
- userId
700
+ userId,
701
+ serviceId
669
702
  };
670
703
  try {
671
704
  const response = yield this.graphqlQueryV2(query, variables);
@@ -677,7 +710,7 @@ class StorageS3Service extends serviceSDK_1.Service {
677
710
  }
678
711
  });
679
712
  }
680
- filterListObject(s3UserId, bucketId, maxKeys, key, prefixSearch, continuationToken, fields) {
713
+ filterListObject(s3UserId, bucketId, maxKeys, key, prefixSearch, continuationToken, serviceId, fields) {
681
714
  return __awaiter(this, void 0, void 0, function* () {
682
715
  const query = (0, queries_1.FILTER_LIST_OBJECT)(fields);
683
716
  const variables = {
@@ -686,7 +719,8 @@ class StorageS3Service extends serviceSDK_1.Service {
686
719
  maxKeys,
687
720
  key,
688
721
  prefixSearch,
689
- continuationToken
722
+ continuationToken,
723
+ serviceId
690
724
  };
691
725
  try {
692
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
  }
@@ -0,0 +1 @@
1
+ export declare function buildFieldString(fields: (string | Record<string, any>)[], indent?: number): string;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildFieldString = void 0;
4
+ function buildFieldString(fields, indent = 6) {
5
+ const space = " ".repeat(indent);
6
+ return fields
7
+ .map((field) => {
8
+ if (typeof field === "string")
9
+ return `${space}${field}`;
10
+ const [key, value] = Object.entries(field)[0];
11
+ const nested = buildFieldString(value, indent + 2);
12
+ return `${space}${key} {\n${nested}\n${space}}`;
13
+ })
14
+ .join("\n");
15
+ }
16
+ exports.buildFieldString = buildFieldString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "2.3.7",
3
+ "version": "2.3.8",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [