kintone-migrator 0.17.0 → 0.18.0
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.
- package/dist/index.mjs +45 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -633,14 +633,11 @@ var LocalFileActionStorage = class {
|
|
|
633
633
|
async get() {
|
|
634
634
|
try {
|
|
635
635
|
return {
|
|
636
|
-
|
|
637
|
-
|
|
636
|
+
exists: true,
|
|
637
|
+
content: await readFile(this.filePath, "utf-8")
|
|
638
638
|
};
|
|
639
639
|
} catch (error) {
|
|
640
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
641
|
-
content: "",
|
|
642
|
-
exists: false
|
|
643
|
-
};
|
|
640
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
644
641
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read action file: ${this.filePath}`, error);
|
|
645
642
|
}
|
|
646
643
|
}
|
|
@@ -1291,14 +1288,11 @@ var LocalFileCustomizationStorage = class {
|
|
|
1291
1288
|
async get() {
|
|
1292
1289
|
try {
|
|
1293
1290
|
return {
|
|
1294
|
-
|
|
1295
|
-
|
|
1291
|
+
exists: true,
|
|
1292
|
+
content: await readFile(this.filePath, "utf-8")
|
|
1296
1293
|
};
|
|
1297
1294
|
} catch (error) {
|
|
1298
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
1299
|
-
content: "",
|
|
1300
|
-
exists: false
|
|
1301
|
-
};
|
|
1295
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
1302
1296
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read customization config file: ${this.filePath}`, error);
|
|
1303
1297
|
}
|
|
1304
1298
|
}
|
|
@@ -1334,14 +1328,11 @@ var LocalFileSchemaStorage = class {
|
|
|
1334
1328
|
async get() {
|
|
1335
1329
|
try {
|
|
1336
1330
|
return {
|
|
1337
|
-
|
|
1338
|
-
|
|
1331
|
+
exists: true,
|
|
1332
|
+
content: await readFile(this.filePath, "utf-8")
|
|
1339
1333
|
};
|
|
1340
1334
|
} catch (error) {
|
|
1341
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
1342
|
-
content: "",
|
|
1343
|
-
exists: false
|
|
1344
|
-
};
|
|
1335
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
1345
1336
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read schema file: ${this.filePath}`, error);
|
|
1346
1337
|
}
|
|
1347
1338
|
}
|
|
@@ -1364,14 +1355,11 @@ var LocalFileSeedStorage = class {
|
|
|
1364
1355
|
async get() {
|
|
1365
1356
|
try {
|
|
1366
1357
|
return {
|
|
1367
|
-
|
|
1368
|
-
|
|
1358
|
+
exists: true,
|
|
1359
|
+
content: await readFile(this.filePath, "utf-8")
|
|
1369
1360
|
};
|
|
1370
1361
|
} catch (error) {
|
|
1371
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
1372
|
-
content: "",
|
|
1373
|
-
exists: false
|
|
1374
|
-
};
|
|
1362
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
1375
1363
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read seed file: ${this.filePath}`, error);
|
|
1376
1364
|
}
|
|
1377
1365
|
}
|
|
@@ -2443,14 +2431,11 @@ var LocalFileAdminNotesStorage = class {
|
|
|
2443
2431
|
async get() {
|
|
2444
2432
|
try {
|
|
2445
2433
|
return {
|
|
2446
|
-
|
|
2447
|
-
|
|
2434
|
+
exists: true,
|
|
2435
|
+
content: await readFile(this.filePath, "utf-8")
|
|
2448
2436
|
};
|
|
2449
2437
|
} catch (error) {
|
|
2450
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
2451
|
-
content: "",
|
|
2452
|
-
exists: false
|
|
2453
|
-
};
|
|
2438
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
2454
2439
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read admin notes file: ${this.filePath}`, error);
|
|
2455
2440
|
}
|
|
2456
2441
|
}
|
|
@@ -2827,14 +2812,11 @@ var LocalFileAppPermissionStorage = class {
|
|
|
2827
2812
|
async get() {
|
|
2828
2813
|
try {
|
|
2829
2814
|
return {
|
|
2830
|
-
|
|
2831
|
-
|
|
2815
|
+
exists: true,
|
|
2816
|
+
content: await readFile(this.filePath, "utf-8")
|
|
2832
2817
|
};
|
|
2833
2818
|
} catch (error) {
|
|
2834
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
2835
|
-
content: "",
|
|
2836
|
-
exists: false
|
|
2837
|
-
};
|
|
2819
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
2838
2820
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read app permission file: ${this.filePath}`, error);
|
|
2839
2821
|
}
|
|
2840
2822
|
}
|
|
@@ -3646,14 +3628,11 @@ var LocalFileFieldPermissionStorage = class {
|
|
|
3646
3628
|
async get() {
|
|
3647
3629
|
try {
|
|
3648
3630
|
return {
|
|
3649
|
-
|
|
3650
|
-
|
|
3631
|
+
exists: true,
|
|
3632
|
+
content: await readFile(this.filePath, "utf-8")
|
|
3651
3633
|
};
|
|
3652
3634
|
} catch (error) {
|
|
3653
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
3654
|
-
content: "",
|
|
3655
|
-
exists: false
|
|
3656
|
-
};
|
|
3635
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
3657
3636
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read field permission file: ${this.filePath}`, error);
|
|
3658
3637
|
}
|
|
3659
3638
|
}
|
|
@@ -4098,14 +4077,11 @@ var LocalFileGeneralSettingsStorage = class {
|
|
|
4098
4077
|
async get() {
|
|
4099
4078
|
try {
|
|
4100
4079
|
return {
|
|
4101
|
-
|
|
4102
|
-
|
|
4080
|
+
exists: true,
|
|
4081
|
+
content: await readFile(this.filePath, "utf-8")
|
|
4103
4082
|
};
|
|
4104
4083
|
} catch (error) {
|
|
4105
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
4106
|
-
content: "",
|
|
4107
|
-
exists: false
|
|
4108
|
-
};
|
|
4084
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
4109
4085
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read general settings file: ${this.filePath}`, error);
|
|
4110
4086
|
}
|
|
4111
4087
|
}
|
|
@@ -4370,14 +4346,11 @@ var LocalFileNotificationStorage = class {
|
|
|
4370
4346
|
async get() {
|
|
4371
4347
|
try {
|
|
4372
4348
|
return {
|
|
4373
|
-
|
|
4374
|
-
|
|
4349
|
+
exists: true,
|
|
4350
|
+
content: await readFile(this.filePath, "utf-8")
|
|
4375
4351
|
};
|
|
4376
4352
|
} catch (error) {
|
|
4377
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
4378
|
-
content: "",
|
|
4379
|
-
exists: false
|
|
4380
|
-
};
|
|
4353
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
4381
4354
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read notification file: ${this.filePath}`, error);
|
|
4382
4355
|
}
|
|
4383
4356
|
}
|
|
@@ -4457,14 +4430,11 @@ var LocalFilePluginStorage = class {
|
|
|
4457
4430
|
async get() {
|
|
4458
4431
|
try {
|
|
4459
4432
|
return {
|
|
4460
|
-
|
|
4461
|
-
|
|
4433
|
+
exists: true,
|
|
4434
|
+
content: await readFile(this.filePath, "utf-8")
|
|
4462
4435
|
};
|
|
4463
4436
|
} catch (error) {
|
|
4464
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
4465
|
-
content: "",
|
|
4466
|
-
exists: false
|
|
4467
|
-
};
|
|
4437
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
4468
4438
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read plugin file: ${this.filePath}`, error);
|
|
4469
4439
|
}
|
|
4470
4440
|
}
|
|
@@ -4638,14 +4608,11 @@ var LocalFileProcessManagementStorage = class {
|
|
|
4638
4608
|
async get() {
|
|
4639
4609
|
try {
|
|
4640
4610
|
return {
|
|
4641
|
-
|
|
4642
|
-
|
|
4611
|
+
exists: true,
|
|
4612
|
+
content: await readFile(this.filePath, "utf-8")
|
|
4643
4613
|
};
|
|
4644
4614
|
} catch (error) {
|
|
4645
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
4646
|
-
content: "",
|
|
4647
|
-
exists: false
|
|
4648
|
-
};
|
|
4615
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
4649
4616
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read process management file: ${this.filePath}`, error);
|
|
4650
4617
|
}
|
|
4651
4618
|
}
|
|
@@ -4765,14 +4732,11 @@ var LocalFileRecordPermissionStorage = class {
|
|
|
4765
4732
|
async get() {
|
|
4766
4733
|
try {
|
|
4767
4734
|
return {
|
|
4768
|
-
|
|
4769
|
-
|
|
4735
|
+
exists: true,
|
|
4736
|
+
content: await readFile(this.filePath, "utf-8")
|
|
4770
4737
|
};
|
|
4771
4738
|
} catch (error) {
|
|
4772
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
4773
|
-
content: "",
|
|
4774
|
-
exists: false
|
|
4775
|
-
};
|
|
4739
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
4776
4740
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read record permission file: ${this.filePath}`, error);
|
|
4777
4741
|
}
|
|
4778
4742
|
}
|
|
@@ -5025,14 +4989,11 @@ var LocalFileReportStorage = class {
|
|
|
5025
4989
|
async get() {
|
|
5026
4990
|
try {
|
|
5027
4991
|
return {
|
|
5028
|
-
|
|
5029
|
-
|
|
4992
|
+
exists: true,
|
|
4993
|
+
content: await readFile(this.filePath, "utf-8")
|
|
5030
4994
|
};
|
|
5031
4995
|
} catch (error) {
|
|
5032
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
5033
|
-
content: "",
|
|
5034
|
-
exists: false
|
|
5035
|
-
};
|
|
4996
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
5036
4997
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read report file: ${this.filePath}`, error);
|
|
5037
4998
|
}
|
|
5038
4999
|
}
|
|
@@ -5163,14 +5124,11 @@ var LocalFileViewStorage = class {
|
|
|
5163
5124
|
async get() {
|
|
5164
5125
|
try {
|
|
5165
5126
|
return {
|
|
5166
|
-
|
|
5167
|
-
|
|
5127
|
+
exists: true,
|
|
5128
|
+
content: await readFile(this.filePath, "utf-8")
|
|
5168
5129
|
};
|
|
5169
5130
|
} catch (error) {
|
|
5170
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
5171
|
-
content: "",
|
|
5172
|
-
exists: false
|
|
5173
|
-
};
|
|
5131
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
5174
5132
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read view file: ${this.filePath}`, error);
|
|
5175
5133
|
}
|
|
5176
5134
|
}
|
|
@@ -5326,14 +5284,11 @@ var LocalFileProjectConfigStorage = class {
|
|
|
5326
5284
|
async get() {
|
|
5327
5285
|
try {
|
|
5328
5286
|
return {
|
|
5329
|
-
|
|
5330
|
-
|
|
5287
|
+
exists: true,
|
|
5288
|
+
content: await readFile(this.filePath, "utf-8")
|
|
5331
5289
|
};
|
|
5332
5290
|
} catch (error) {
|
|
5333
|
-
if (isNodeError(error) && error.code === "ENOENT") return {
|
|
5334
|
-
content: "",
|
|
5335
|
-
exists: false
|
|
5336
|
-
};
|
|
5291
|
+
if (isNodeError(error) && error.code === "ENOENT") return { exists: false };
|
|
5337
5292
|
throw new SystemError(SystemErrorCode.StorageError, `Failed to read project config file: ${this.filePath}`, error);
|
|
5338
5293
|
}
|
|
5339
5294
|
}
|