@hcmai/sdk 0.32.0 → 0.33.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.
- package/README.md +4 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +685 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -75,6 +75,7 @@ var CliErrorCode = /* @__PURE__ */ ((CliErrorCode2) => {
|
|
|
75
75
|
CliErrorCode2["INVALID_ARGUMENT"] = "INVALID_ARGUMENT";
|
|
76
76
|
CliErrorCode2["INVALID_JSON"] = "INVALID_JSON";
|
|
77
77
|
CliErrorCode2["MISSING_FLAG"] = "MISSING_FLAG";
|
|
78
|
+
CliErrorCode2["OFFLINE_UNAVAILABLE"] = "OFFLINE_UNAVAILABLE";
|
|
78
79
|
CliErrorCode2["AUTH_FAILED"] = "AUTH_FAILED";
|
|
79
80
|
CliErrorCode2["AUTH_EXPIRED"] = "AUTH_EXPIRED";
|
|
80
81
|
CliErrorCode2["AUTH_REFRESH_FAILED"] = "AUTH_REFRESH_FAILED";
|
|
@@ -94,6 +95,7 @@ var CliErrorCode = /* @__PURE__ */ ((CliErrorCode2) => {
|
|
|
94
95
|
CliErrorCode2["PROTOCOL_UNSUPPORTED"] = "PROTOCOL_UNSUPPORTED";
|
|
95
96
|
CliErrorCode2["PROFILE_NOT_FOUND"] = "PROFILE_NOT_FOUND";
|
|
96
97
|
CliErrorCode2["CONFIG_PARSE_ERROR"] = "CONFIG_PARSE_ERROR";
|
|
98
|
+
CliErrorCode2["OFFLINE_KIT_ERROR"] = "OFFLINE_KIT_ERROR";
|
|
97
99
|
CliErrorCode2["KEYCHAIN_UNAVAILABLE"] = "KEYCHAIN_UNAVAILABLE";
|
|
98
100
|
CliErrorCode2["ENV_NOT_FOUND"] = "ENV_NOT_FOUND";
|
|
99
101
|
CliErrorCode2["ENV_ALREADY_EXISTS"] = "ENV_ALREADY_EXISTS";
|
|
@@ -127,6 +129,7 @@ var CODE_TO_EXIT = {
|
|
|
127
129
|
["INVALID_ARGUMENT" /* INVALID_ARGUMENT */]: 1 /* USAGE_ERROR */,
|
|
128
130
|
["INVALID_JSON" /* INVALID_JSON */]: 1 /* USAGE_ERROR */,
|
|
129
131
|
["MISSING_FLAG" /* MISSING_FLAG */]: 1 /* USAGE_ERROR */,
|
|
132
|
+
["OFFLINE_UNAVAILABLE" /* OFFLINE_UNAVAILABLE */]: 1 /* USAGE_ERROR */,
|
|
130
133
|
["AUTH_FAILED" /* AUTH_FAILED */]: 2 /* AUTH_ERROR */,
|
|
131
134
|
["AUTH_EXPIRED" /* AUTH_EXPIRED */]: 2 /* AUTH_ERROR */,
|
|
132
135
|
["AUTH_REFRESH_FAILED" /* AUTH_REFRESH_FAILED */]: 2 /* AUTH_ERROR */,
|
|
@@ -148,6 +151,7 @@ var CODE_TO_EXIT = {
|
|
|
148
151
|
["PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */]: 4 /* NETWORK_ERROR */,
|
|
149
152
|
["PROFILE_NOT_FOUND" /* PROFILE_NOT_FOUND */]: 5 /* CONFIG_ERROR */,
|
|
150
153
|
["CONFIG_PARSE_ERROR" /* CONFIG_PARSE_ERROR */]: 5 /* CONFIG_ERROR */,
|
|
154
|
+
["OFFLINE_KIT_ERROR" /* OFFLINE_KIT_ERROR */]: 5 /* CONFIG_ERROR */,
|
|
151
155
|
["KEYCHAIN_UNAVAILABLE" /* KEYCHAIN_UNAVAILABLE */]: 5 /* CONFIG_ERROR */,
|
|
152
156
|
["ENV_NOT_FOUND" /* ENV_NOT_FOUND */]: 5 /* CONFIG_ERROR */,
|
|
153
157
|
["ENV_ALREADY_EXISTS" /* ENV_ALREADY_EXISTS */]: 5 /* CONFIG_ERROR */,
|
|
@@ -637,6 +641,16 @@ function createHttpClient(opts) {
|
|
|
637
641
|
...acceptLanguage ? { "Accept-Language": acceptLanguage } : {}
|
|
638
642
|
}
|
|
639
643
|
});
|
|
644
|
+
client.interceptors.request.use((config) => {
|
|
645
|
+
const header = "X-HCM-Frontend-Meta-Capabilities";
|
|
646
|
+
if (config.method?.toLowerCase() !== "get" || config.headers.has(header)) return config;
|
|
647
|
+
const url = new URL(config.url ?? "", config.baseURL);
|
|
648
|
+
const type = config.params instanceof URLSearchParams ? config.params.get("type") ?? url.searchParams.get("type") : config.params?.type ?? url.searchParams.get("type");
|
|
649
|
+
if (/(?:^|\/)api\/models\/[^/]+\/meta\/?$/.test(url.pathname) && type === "list") {
|
|
650
|
+
config.headers.set(header, "org-chart-v1,org-chart-v2");
|
|
651
|
+
}
|
|
652
|
+
return config;
|
|
653
|
+
});
|
|
640
654
|
attachTrace(client);
|
|
641
655
|
attachAuth(client, opts.getAccessToken);
|
|
642
656
|
attachRetry(client, opts.onRefresh);
|
|
@@ -8383,11 +8397,420 @@ function columnSlotsToFlex(text3, rewrite = true) {
|
|
|
8383
8397
|
import { isMap as isMap3, isScalar as isScalar3, isSeq as isSeq3, parseDocument as parseDocument3 } from "yaml";
|
|
8384
8398
|
|
|
8385
8399
|
// src/meta/generated/meta-schemas.ts
|
|
8386
|
-
var META_SCHEMA_SOURCE_COMMIT = "
|
|
8400
|
+
var META_SCHEMA_SOURCE_COMMIT = "82a5db755a7295f2adaaa8d79f755eda22d0b278";
|
|
8387
8401
|
var META_SCHEMAS = {
|
|
8388
8402
|
list: {
|
|
8389
8403
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8390
8404
|
"$defs": {
|
|
8405
|
+
"OrgChartOptions": {
|
|
8406
|
+
"type": "object",
|
|
8407
|
+
"description": "1.97.0\u57FA\u7840\u5B57\u6BB5\u517C\u5BB9\uFF1B1.98.0\u5DF2\u53D1\u5E03\u5B57\u6BB5\u7ED1\u5B9A\u3001\u4EBA\u5458\u6458\u8981\u4E0E\u77E9\u9635\u5173\u7CFB\uFF0C\u987Borg-chart-v2\u3002\u6765\u6E90\u5B58\u5728\u6027\u3001FULL\u6388\u6743\u548C\u76EE\u5F55revision\u7531\u8FD0\u884C\u671F\u518D\u6B21\u9A8C\u8BC1\u3002",
|
|
8408
|
+
"required": [
|
|
8409
|
+
"contractVersion",
|
|
8410
|
+
"defaultView",
|
|
8411
|
+
"views"
|
|
8412
|
+
],
|
|
8413
|
+
"properties": {
|
|
8414
|
+
"contractVersion": {
|
|
8415
|
+
"type": "integer",
|
|
8416
|
+
"const": 1
|
|
8417
|
+
},
|
|
8418
|
+
"defaultView": {
|
|
8419
|
+
"type": "string",
|
|
8420
|
+
"enum": [
|
|
8421
|
+
"ORGANIZATION",
|
|
8422
|
+
"POSITION",
|
|
8423
|
+
"ASSIGNMENT"
|
|
8424
|
+
]
|
|
8425
|
+
},
|
|
8426
|
+
"views": {
|
|
8427
|
+
"type": "object",
|
|
8428
|
+
"minProperties": 1,
|
|
8429
|
+
"properties": {
|
|
8430
|
+
"ORGANIZATION": {
|
|
8431
|
+
"type": "object",
|
|
8432
|
+
"required": [
|
|
8433
|
+
"defaultFields",
|
|
8434
|
+
"availableFields"
|
|
8435
|
+
],
|
|
8436
|
+
"properties": {
|
|
8437
|
+
"defaultFields": {
|
|
8438
|
+
"type": "array",
|
|
8439
|
+
"minItems": 1,
|
|
8440
|
+
"uniqueItems": true,
|
|
8441
|
+
"items": {
|
|
8442
|
+
"anyOf": [
|
|
8443
|
+
{
|
|
8444
|
+
"type": "string",
|
|
8445
|
+
"enum": [
|
|
8446
|
+
"org.name",
|
|
8447
|
+
"org.code",
|
|
8448
|
+
"org.manager",
|
|
8449
|
+
"org.assignmentCount",
|
|
8450
|
+
"org.budgetCount"
|
|
8451
|
+
]
|
|
8452
|
+
},
|
|
8453
|
+
{
|
|
8454
|
+
"type": "string",
|
|
8455
|
+
"pattern": "^field:(OrgUnit):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$"
|
|
8456
|
+
}
|
|
8457
|
+
]
|
|
8458
|
+
}
|
|
8459
|
+
},
|
|
8460
|
+
"availableFields": {
|
|
8461
|
+
"type": "array",
|
|
8462
|
+
"minItems": 1,
|
|
8463
|
+
"uniqueItems": true,
|
|
8464
|
+
"items": {
|
|
8465
|
+
"anyOf": [
|
|
8466
|
+
{
|
|
8467
|
+
"type": "string",
|
|
8468
|
+
"enum": [
|
|
8469
|
+
"org.name",
|
|
8470
|
+
"org.code",
|
|
8471
|
+
"org.manager",
|
|
8472
|
+
"org.assignmentCount",
|
|
8473
|
+
"org.budgetCount"
|
|
8474
|
+
]
|
|
8475
|
+
},
|
|
8476
|
+
{
|
|
8477
|
+
"type": "string",
|
|
8478
|
+
"pattern": "^field:(OrgUnit):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$"
|
|
8479
|
+
}
|
|
8480
|
+
]
|
|
8481
|
+
}
|
|
8482
|
+
}
|
|
8483
|
+
},
|
|
8484
|
+
"additionalProperties": false
|
|
8485
|
+
},
|
|
8486
|
+
"POSITION": {
|
|
8487
|
+
"type": "object",
|
|
8488
|
+
"required": [
|
|
8489
|
+
"defaultFields",
|
|
8490
|
+
"availableFields"
|
|
8491
|
+
],
|
|
8492
|
+
"properties": {
|
|
8493
|
+
"defaultFields": {
|
|
8494
|
+
"type": "array",
|
|
8495
|
+
"minItems": 1,
|
|
8496
|
+
"uniqueItems": true,
|
|
8497
|
+
"items": {
|
|
8498
|
+
"anyOf": [
|
|
8499
|
+
{
|
|
8500
|
+
"type": "string",
|
|
8501
|
+
"enum": [
|
|
8502
|
+
"position.name",
|
|
8503
|
+
"position.code",
|
|
8504
|
+
"position.grade"
|
|
8505
|
+
]
|
|
8506
|
+
},
|
|
8507
|
+
{
|
|
8508
|
+
"type": "string",
|
|
8509
|
+
"pattern": "^field:(Position):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$"
|
|
8510
|
+
}
|
|
8511
|
+
]
|
|
8512
|
+
}
|
|
8513
|
+
},
|
|
8514
|
+
"availableFields": {
|
|
8515
|
+
"type": "array",
|
|
8516
|
+
"minItems": 1,
|
|
8517
|
+
"uniqueItems": true,
|
|
8518
|
+
"items": {
|
|
8519
|
+
"anyOf": [
|
|
8520
|
+
{
|
|
8521
|
+
"type": "string",
|
|
8522
|
+
"enum": [
|
|
8523
|
+
"position.name",
|
|
8524
|
+
"position.code",
|
|
8525
|
+
"position.grade"
|
|
8526
|
+
]
|
|
8527
|
+
},
|
|
8528
|
+
{
|
|
8529
|
+
"type": "string",
|
|
8530
|
+
"pattern": "^field:(Position):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$"
|
|
8531
|
+
}
|
|
8532
|
+
]
|
|
8533
|
+
}
|
|
8534
|
+
}
|
|
8535
|
+
},
|
|
8536
|
+
"additionalProperties": false
|
|
8537
|
+
},
|
|
8538
|
+
"ASSIGNMENT": {
|
|
8539
|
+
"type": "object",
|
|
8540
|
+
"required": [
|
|
8541
|
+
"defaultFields",
|
|
8542
|
+
"availableFields"
|
|
8543
|
+
],
|
|
8544
|
+
"properties": {
|
|
8545
|
+
"defaultFields": {
|
|
8546
|
+
"type": "array",
|
|
8547
|
+
"minItems": 1,
|
|
8548
|
+
"uniqueItems": true,
|
|
8549
|
+
"items": {
|
|
8550
|
+
"anyOf": [
|
|
8551
|
+
{
|
|
8552
|
+
"type": "string",
|
|
8553
|
+
"enum": [
|
|
8554
|
+
"person.name",
|
|
8555
|
+
"assignment.type",
|
|
8556
|
+
"assignment.grade",
|
|
8557
|
+
"person.birthDate",
|
|
8558
|
+
"person.tenureYears"
|
|
8559
|
+
]
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
"type": "string",
|
|
8563
|
+
"pattern": "^field:(Assignment|Employee):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$"
|
|
8564
|
+
},
|
|
8565
|
+
{
|
|
8566
|
+
"enum": [
|
|
8567
|
+
"person.leaveStatus",
|
|
8568
|
+
"person.lastKnownPromotion"
|
|
8569
|
+
]
|
|
8570
|
+
},
|
|
8571
|
+
{
|
|
8572
|
+
"type": "string",
|
|
8573
|
+
"pattern": "^person\\.leaveBalance:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
8574
|
+
}
|
|
8575
|
+
]
|
|
8576
|
+
}
|
|
8577
|
+
},
|
|
8578
|
+
"availableFields": {
|
|
8579
|
+
"type": "array",
|
|
8580
|
+
"minItems": 1,
|
|
8581
|
+
"uniqueItems": true,
|
|
8582
|
+
"items": {
|
|
8583
|
+
"anyOf": [
|
|
8584
|
+
{
|
|
8585
|
+
"type": "string",
|
|
8586
|
+
"enum": [
|
|
8587
|
+
"person.name",
|
|
8588
|
+
"assignment.type",
|
|
8589
|
+
"assignment.grade",
|
|
8590
|
+
"person.birthDate",
|
|
8591
|
+
"person.tenureYears"
|
|
8592
|
+
]
|
|
8593
|
+
},
|
|
8594
|
+
{
|
|
8595
|
+
"type": "string",
|
|
8596
|
+
"pattern": "^field:(Assignment|Employee):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$"
|
|
8597
|
+
},
|
|
8598
|
+
{
|
|
8599
|
+
"enum": [
|
|
8600
|
+
"person.leaveStatus",
|
|
8601
|
+
"person.lastKnownPromotion"
|
|
8602
|
+
]
|
|
8603
|
+
},
|
|
8604
|
+
{
|
|
8605
|
+
"type": "string",
|
|
8606
|
+
"pattern": "^person\\.leaveBalance:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
8607
|
+
}
|
|
8608
|
+
]
|
|
8609
|
+
}
|
|
8610
|
+
},
|
|
8611
|
+
"assignmentTypes": {
|
|
8612
|
+
"type": "array",
|
|
8613
|
+
"minItems": 1,
|
|
8614
|
+
"uniqueItems": true,
|
|
8615
|
+
"items": {
|
|
8616
|
+
"type": "string",
|
|
8617
|
+
"enum": [
|
|
8618
|
+
"PRIMARY",
|
|
8619
|
+
"CONCURRENT",
|
|
8620
|
+
"SECONDMENT",
|
|
8621
|
+
"APPOINTMENT"
|
|
8622
|
+
]
|
|
8623
|
+
}
|
|
8624
|
+
},
|
|
8625
|
+
"defaultAssignmentTypes": {
|
|
8626
|
+
"type": "array",
|
|
8627
|
+
"minItems": 1,
|
|
8628
|
+
"uniqueItems": true,
|
|
8629
|
+
"items": {
|
|
8630
|
+
"type": "string",
|
|
8631
|
+
"enum": [
|
|
8632
|
+
"PRIMARY",
|
|
8633
|
+
"CONCURRENT",
|
|
8634
|
+
"SECONDMENT",
|
|
8635
|
+
"APPOINTMENT"
|
|
8636
|
+
]
|
|
8637
|
+
}
|
|
8638
|
+
},
|
|
8639
|
+
"relationTypes": {
|
|
8640
|
+
"type": "array",
|
|
8641
|
+
"minItems": 1,
|
|
8642
|
+
"uniqueItems": true,
|
|
8643
|
+
"items": {
|
|
8644
|
+
"type": "string",
|
|
8645
|
+
"enum": [
|
|
8646
|
+
"DIRECT_MANAGER",
|
|
8647
|
+
"MATRIX"
|
|
8648
|
+
]
|
|
8649
|
+
}
|
|
8650
|
+
},
|
|
8651
|
+
"matrixTypeCodes": {
|
|
8652
|
+
"type": "array",
|
|
8653
|
+
"minItems": 1,
|
|
8654
|
+
"uniqueItems": true,
|
|
8655
|
+
"items": {
|
|
8656
|
+
"type": "string",
|
|
8657
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
|
|
8658
|
+
}
|
|
8659
|
+
}
|
|
8660
|
+
},
|
|
8661
|
+
"additionalProperties": false
|
|
8662
|
+
}
|
|
8663
|
+
},
|
|
8664
|
+
"additionalProperties": false
|
|
8665
|
+
},
|
|
8666
|
+
"displayFormats": {
|
|
8667
|
+
"type": "object",
|
|
8668
|
+
"properties": {
|
|
8669
|
+
"org.name": {
|
|
8670
|
+
"type": "string",
|
|
8671
|
+
"enum": [
|
|
8672
|
+
"TEXT"
|
|
8673
|
+
]
|
|
8674
|
+
},
|
|
8675
|
+
"org.code": {
|
|
8676
|
+
"type": "string",
|
|
8677
|
+
"enum": [
|
|
8678
|
+
"TEXT"
|
|
8679
|
+
]
|
|
8680
|
+
},
|
|
8681
|
+
"org.manager": {
|
|
8682
|
+
"type": "string",
|
|
8683
|
+
"enum": [
|
|
8684
|
+
"TEXT"
|
|
8685
|
+
]
|
|
8686
|
+
},
|
|
8687
|
+
"org.assignmentCount": {
|
|
8688
|
+
"type": "string",
|
|
8689
|
+
"enum": [
|
|
8690
|
+
"INTEGER"
|
|
8691
|
+
]
|
|
8692
|
+
},
|
|
8693
|
+
"org.budgetCount": {
|
|
8694
|
+
"type": "string",
|
|
8695
|
+
"enum": [
|
|
8696
|
+
"INTEGER"
|
|
8697
|
+
]
|
|
8698
|
+
},
|
|
8699
|
+
"position.name": {
|
|
8700
|
+
"type": "string",
|
|
8701
|
+
"enum": [
|
|
8702
|
+
"TEXT"
|
|
8703
|
+
]
|
|
8704
|
+
},
|
|
8705
|
+
"position.code": {
|
|
8706
|
+
"type": "string",
|
|
8707
|
+
"enum": [
|
|
8708
|
+
"TEXT"
|
|
8709
|
+
]
|
|
8710
|
+
},
|
|
8711
|
+
"position.grade": {
|
|
8712
|
+
"type": "string",
|
|
8713
|
+
"enum": [
|
|
8714
|
+
"TEXT"
|
|
8715
|
+
]
|
|
8716
|
+
},
|
|
8717
|
+
"person.name": {
|
|
8718
|
+
"type": "string",
|
|
8719
|
+
"enum": [
|
|
8720
|
+
"TEXT"
|
|
8721
|
+
]
|
|
8722
|
+
},
|
|
8723
|
+
"assignment.type": {
|
|
8724
|
+
"type": "string",
|
|
8725
|
+
"enum": [
|
|
8726
|
+
"TEXT"
|
|
8727
|
+
]
|
|
8728
|
+
},
|
|
8729
|
+
"assignment.grade": {
|
|
8730
|
+
"type": "string",
|
|
8731
|
+
"enum": [
|
|
8732
|
+
"TEXT"
|
|
8733
|
+
]
|
|
8734
|
+
},
|
|
8735
|
+
"person.birthDate": {
|
|
8736
|
+
"type": "string",
|
|
8737
|
+
"enum": [
|
|
8738
|
+
"ISO_DATE",
|
|
8739
|
+
"MM-DD"
|
|
8740
|
+
]
|
|
8741
|
+
},
|
|
8742
|
+
"person.tenureYears": {
|
|
8743
|
+
"type": "string",
|
|
8744
|
+
"enum": [
|
|
8745
|
+
"INTEGER_YEARS"
|
|
8746
|
+
]
|
|
8747
|
+
},
|
|
8748
|
+
"person.leaveStatus": {
|
|
8749
|
+
"enum": [
|
|
8750
|
+
"TEXT"
|
|
8751
|
+
]
|
|
8752
|
+
},
|
|
8753
|
+
"person.lastKnownPromotion": {
|
|
8754
|
+
"enum": [
|
|
8755
|
+
"ISO_DATE"
|
|
8756
|
+
]
|
|
8757
|
+
}
|
|
8758
|
+
},
|
|
8759
|
+
"additionalProperties": false,
|
|
8760
|
+
"patternProperties": {
|
|
8761
|
+
"^field:(OrgUnit|Position|Assignment|Employee):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$": {
|
|
8762
|
+
"enum": [
|
|
8763
|
+
"TEXT",
|
|
8764
|
+
"INTEGER",
|
|
8765
|
+
"DECIMAL",
|
|
8766
|
+
"BOOLEAN",
|
|
8767
|
+
"ISO_DATE",
|
|
8768
|
+
"MM-DD"
|
|
8769
|
+
]
|
|
8770
|
+
},
|
|
8771
|
+
"^person\\.leaveBalance:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$": {
|
|
8772
|
+
"enum": [
|
|
8773
|
+
"TEXT"
|
|
8774
|
+
]
|
|
8775
|
+
}
|
|
8776
|
+
}
|
|
8777
|
+
},
|
|
8778
|
+
"fieldBindings": {
|
|
8779
|
+
"type": "object",
|
|
8780
|
+
"minProperties": 1,
|
|
8781
|
+
"patternProperties": {
|
|
8782
|
+
"^field:(OrgUnit|Position|Assignment|Employee):[A-Za-z_][A-Za-z0-9_]*:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|product)$": {
|
|
8783
|
+
"type": "object",
|
|
8784
|
+
"required": [
|
|
8785
|
+
"model",
|
|
8786
|
+
"field"
|
|
8787
|
+
],
|
|
8788
|
+
"properties": {
|
|
8789
|
+
"model": {
|
|
8790
|
+
"enum": [
|
|
8791
|
+
"OrgUnit",
|
|
8792
|
+
"Position",
|
|
8793
|
+
"Assignment",
|
|
8794
|
+
"Employee"
|
|
8795
|
+
]
|
|
8796
|
+
},
|
|
8797
|
+
"field": {
|
|
8798
|
+
"type": "string",
|
|
8799
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
8800
|
+
},
|
|
8801
|
+
"definitionId": {
|
|
8802
|
+
"type": "string",
|
|
8803
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
8804
|
+
}
|
|
8805
|
+
},
|
|
8806
|
+
"additionalProperties": false
|
|
8807
|
+
}
|
|
8808
|
+
},
|
|
8809
|
+
"additionalProperties": false
|
|
8810
|
+
}
|
|
8811
|
+
},
|
|
8812
|
+
"additionalProperties": false
|
|
8813
|
+
},
|
|
8391
8814
|
"AfterHandler": {
|
|
8392
8815
|
"type": "object",
|
|
8393
8816
|
"properties": {
|
|
@@ -8664,7 +9087,29 @@ var META_SCHEMAS = {
|
|
|
8664
9087
|
"options": {
|
|
8665
9088
|
"$ref": "#/$defs/Map(String,Object)"
|
|
8666
9089
|
}
|
|
8667
|
-
}
|
|
9090
|
+
},
|
|
9091
|
+
"allOf": [
|
|
9092
|
+
{
|
|
9093
|
+
"if": {
|
|
9094
|
+
"required": [
|
|
9095
|
+
"key",
|
|
9096
|
+
"options"
|
|
9097
|
+
],
|
|
9098
|
+
"properties": {
|
|
9099
|
+
"key": {
|
|
9100
|
+
"const": "openOrgChart"
|
|
9101
|
+
}
|
|
9102
|
+
}
|
|
9103
|
+
},
|
|
9104
|
+
"then": {
|
|
9105
|
+
"properties": {
|
|
9106
|
+
"options": {
|
|
9107
|
+
"$ref": "#/$defs/OrgChartOptions"
|
|
9108
|
+
}
|
|
9109
|
+
}
|
|
9110
|
+
}
|
|
9111
|
+
}
|
|
9112
|
+
]
|
|
8668
9113
|
},
|
|
8669
9114
|
"description": {
|
|
8670
9115
|
"type": "string"
|
|
@@ -9005,6 +9450,16 @@ var META_SCHEMAS = {
|
|
|
9005
9450
|
}
|
|
9006
9451
|
}
|
|
9007
9452
|
},
|
|
9453
|
+
"surfaces": {
|
|
9454
|
+
"type": "array",
|
|
9455
|
+
"items": {
|
|
9456
|
+
"type": "string",
|
|
9457
|
+
"enum": ["DESKTOP", "MOBILE"]
|
|
9458
|
+
},
|
|
9459
|
+
"minItems": 1,
|
|
9460
|
+
"uniqueItems": true,
|
|
9461
|
+
"description": "\u52A8\u4F5C\u5C55\u793A\u7AEF\u8303\u56F4\uFF1B\u672A\u58F0\u660E\u65F6\u517C\u5BB9\u4E3A DESKTOP \u4E0E MOBILE\u3002\u4EC5\u63A7\u5236 UI \u5C55\u793A\uFF0C\u4E0D\u66FF\u4EE3\u670D\u52A1\u7AEF\u6388\u6743\u6216\u6267\u884C\u6821\u9A8C\u3002"
|
|
9462
|
+
},
|
|
9008
9463
|
"type": {
|
|
9009
9464
|
"type": "string"
|
|
9010
9465
|
},
|
|
@@ -9163,6 +9618,13 @@ var META_SCHEMAS = {
|
|
|
9163
9618
|
"minLength": 1
|
|
9164
9619
|
}
|
|
9165
9620
|
}
|
|
9621
|
+
}, {
|
|
9622
|
+
"type": "object",
|
|
9623
|
+
"required": ["key", "type"],
|
|
9624
|
+
"not": {
|
|
9625
|
+
"required": ["action"]
|
|
9626
|
+
},
|
|
9627
|
+
"description": "\u5185\u8054 Action\uFF08\u4E0E actions[] \u540C\u5F62\uFF0C\u524D\u7AEF MetaActionAdapter.convertCompositeSteps \u6309 'type' \u5224\u522B\uFF09\uFF1B\u4E0E {action, saveAs} \u6B65\u9AA4\u63CF\u8FF0\u4E92\u65A5"
|
|
9166
9628
|
}]
|
|
9167
9629
|
}
|
|
9168
9630
|
}
|
|
@@ -9490,7 +9952,29 @@ var META_SCHEMAS = {
|
|
|
9490
9952
|
"options": {
|
|
9491
9953
|
"$ref": "#/$defs/Map(String,Object)"
|
|
9492
9954
|
}
|
|
9493
|
-
}
|
|
9955
|
+
},
|
|
9956
|
+
"allOf": [
|
|
9957
|
+
{
|
|
9958
|
+
"if": {
|
|
9959
|
+
"required": [
|
|
9960
|
+
"key",
|
|
9961
|
+
"options"
|
|
9962
|
+
],
|
|
9963
|
+
"properties": {
|
|
9964
|
+
"key": {
|
|
9965
|
+
"const": "openOrgChart"
|
|
9966
|
+
}
|
|
9967
|
+
}
|
|
9968
|
+
},
|
|
9969
|
+
"then": {
|
|
9970
|
+
"properties": {
|
|
9971
|
+
"options": {
|
|
9972
|
+
"$ref": "#/$defs/OrgChartOptions"
|
|
9973
|
+
}
|
|
9974
|
+
}
|
|
9975
|
+
}
|
|
9976
|
+
}
|
|
9977
|
+
]
|
|
9494
9978
|
},
|
|
9495
9979
|
"description": {
|
|
9496
9980
|
"type": "string"
|
|
@@ -10342,11 +10826,11 @@ var META_SCHEMAS = {
|
|
|
10342
10826
|
},
|
|
10343
10827
|
"render": {
|
|
10344
10828
|
"$ref": "#/$defs/Map(String,Object)",
|
|
10345
|
-
"description": "\u6E32\u67D3\u914D\u7F6E\uFF1BmergeRows\u652F\u6301\u72EC\u7ACB\u7EC4\u952E\uFF0C1.81\u589E\u52A0valueMode:first/singleText/emptyText\u4E0EsecondaryField\u7EAF\u6587\u672C\u526F\u6587\u6848\uFF0C1.89\u589E\
|
|
10829
|
+
"description": "\u6E32\u67D3\u914D\u7F6E\uFF1BmergeRows\u652F\u6301\u72EC\u7ACB\u7EC4\u952E\uFF0C1.81\u589E\u52A0valueMode:first/singleText/emptyText\u4E0EsecondaryField\u7EAF\u6587\u672C\u526F\u6587\u6848\uFF0C1.89\u589E\u52A0continuationField\u5E03\u5C14\u7EED\u884C\u6807\u8BB0\uFF0C1.96\u5141\u8BB8\u4E0EgroupField\u7EC4\u5408\uFF1A\u975E\u7A7A\u7EC4\u952E\u6309\u7EC4\u3001\u7A7A\u7EC4\u952E\u6309\u7EED\u884C\uFF0C\u6587\u6848\u4EC5\u7528\u4E8E\u7EC4\u6BB5\uFF1B\u4EC5\u5F53\u524D\u9875\u76F8\u90BB\u65E0\u5B57\u6BB5\u88C1\u51B3\uFF0C\u4E0D\u4EE3\u8868\u5B8C\u6574\u7EC4",
|
|
10346
10830
|
"type": "object",
|
|
10347
10831
|
"properties": {
|
|
10348
10832
|
"mergeRows": {
|
|
10349
|
-
"description": "\u5F53\u524D\u9875\u8FDE\u7EED\u5408\u5E76\
|
|
10833
|
+
"description": "\u5F53\u524D\u9875\u8FDE\u7EED\u5408\u5E76\uFF1B1.96\u8D77\u53EF\u7EC4\u5408groupField\u548CcontinuationField\uFF0C\u975E\u7A7A\u7EC4\u952E\u6309\u7EC4\u3001\u7A7A\u7EC4\u952E\u6309\u7EED\u884C\uFF0C\u7EC4\u6BB5\u6587\u6848\u4E0D\u4F5C\u7528\u4E8E\u7EED\u884C\u6BB5\uFF1B\u5B57\u6BB5\u88C1\u51B3\u62C6\u6BB5\uFF0C\u4E0D\u8DE8\u6A21\u5F0F\u3001\u7EC4\u6216\u5206\u9875",
|
|
10350
10834
|
"oneOf": [{
|
|
10351
10835
|
"type": "boolean"
|
|
10352
10836
|
}, {
|
|
@@ -10395,6 +10879,12 @@ var META_SCHEMAS = {
|
|
|
10395
10879
|
"emptyText": {
|
|
10396
10880
|
"type": "string",
|
|
10397
10881
|
"maxLength": 256
|
|
10882
|
+
},
|
|
10883
|
+
"continuationField": {
|
|
10884
|
+
"type": "string",
|
|
10885
|
+
"minLength": 1,
|
|
10886
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
|
|
10887
|
+
"description": "\u5DF2\u58F0\u660E\u6295\u5F71\u7684\u5E03\u5C14\u8DEF\u5F84\uFF1B\u4E25\u683Cfalse\u4E3A\u6BB5\u9996\u5019\u9009\u3001true\u5EF6\u7EED\u524D\u683C\uFF1B\u7F3A\u5931/\u975E\u5E03\u5C14/\u5B57\u6BB5\u88C1\u51B3\u62C6\u6BB5\uFF1B\u4E0D\u8FFD\u6EAF\u524D\u9875"
|
|
10398
10888
|
}
|
|
10399
10889
|
}
|
|
10400
10890
|
}, {
|
|
@@ -10823,9 +11313,6 @@ var META_SCHEMAS = {
|
|
|
10823
11313
|
"columns": {
|
|
10824
11314
|
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10825
11315
|
},
|
|
10826
|
-
"defaultFilter": {
|
|
10827
|
-
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10828
|
-
},
|
|
10829
11316
|
"emptyState": {
|
|
10830
11317
|
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10831
11318
|
},
|
|
@@ -10899,7 +11386,9 @@ var META_SCHEMAS = {
|
|
|
10899
11386
|
"x-hcm-authoring": {
|
|
10900
11387
|
"topLevel": "closed",
|
|
10901
11388
|
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
10902
|
-
"retiredTopLevelKeys": {
|
|
11389
|
+
"retiredTopLevelKeys": {
|
|
11390
|
+
"defaultFilter": "\u6539\u5199\u4E3A filter.defaultFilter\uFF08\u89C4\u8303 AST\uFF1A{field, op, value} \u6216 {and: [...]}\uFF09\uFF1B\u9876\u5C42 defaultFilter \u8FD0\u884C\u65F6\u4E0D\u751F\u6548"
|
|
11391
|
+
}
|
|
10903
11392
|
}
|
|
10904
11393
|
},
|
|
10905
11394
|
info: {
|
|
@@ -12810,6 +13299,29 @@ var META_SCHEMAS = {
|
|
|
12810
13299
|
"type": "string",
|
|
12811
13300
|
"enum": ["YES", "NO", "UNKNOWN"]
|
|
12812
13301
|
},
|
|
13302
|
+
"CreationTemplate": {
|
|
13303
|
+
"type": "object",
|
|
13304
|
+
"properties": {
|
|
13305
|
+
"modelPrefix": {
|
|
13306
|
+
"type": "string",
|
|
13307
|
+
"pattern": "^CM[EB]_[A-Za-z][A-Za-z0-9_]*$"
|
|
13308
|
+
},
|
|
13309
|
+
"permission": {
|
|
13310
|
+
"$ref": "#/$defs/Map(String,Object)",
|
|
13311
|
+
"type": "object"
|
|
13312
|
+
},
|
|
13313
|
+
"version": {
|
|
13314
|
+
"type": "string",
|
|
13315
|
+
"minLength": 1
|
|
13316
|
+
},
|
|
13317
|
+
"workflowTemplateId": {
|
|
13318
|
+
"type": "string",
|
|
13319
|
+
"format": "uuid"
|
|
13320
|
+
}
|
|
13321
|
+
},
|
|
13322
|
+
"required": ["version", "modelPrefix", "permission"],
|
|
13323
|
+
"additionalProperties": false
|
|
13324
|
+
},
|
|
12813
13325
|
"DerivedValueType": {
|
|
12814
13326
|
"type": "string",
|
|
12815
13327
|
"enum": ["STRING", "INTEGER", "LONG", "DECIMAL", "BOOLEAN", "DATE", "DATETIME", "JSON"]
|
|
@@ -12980,7 +13492,7 @@ var META_SCHEMAS = {
|
|
|
12980
13492
|
"type": "array",
|
|
12981
13493
|
"items": {
|
|
12982
13494
|
"type": "string",
|
|
12983
|
-
"enum": ["INTERACTIVE", "AI", "FLOW", "AI_CONFIRMED"]
|
|
13495
|
+
"enum": ["INTERACTIVE", "AI", "FLOW", "AI_CONFIRMED", "ORCHESTRATION"]
|
|
12984
13496
|
}
|
|
12985
13497
|
},
|
|
12986
13498
|
"confirm": {
|
|
@@ -13049,6 +13561,14 @@ var META_SCHEMAS = {
|
|
|
13049
13561
|
}
|
|
13050
13562
|
}
|
|
13051
13563
|
},
|
|
13564
|
+
"configurationScope": {
|
|
13565
|
+
"type": "string",
|
|
13566
|
+
"minLength": 1
|
|
13567
|
+
},
|
|
13568
|
+
"configurationTemplateHash": {
|
|
13569
|
+
"type": "string",
|
|
13570
|
+
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
13571
|
+
},
|
|
13052
13572
|
"dataPackage": {
|
|
13053
13573
|
"type": "object",
|
|
13054
13574
|
"properties": {
|
|
@@ -13930,6 +14450,108 @@ var META_SCHEMAS = {
|
|
|
13930
14450
|
"type": "string",
|
|
13931
14451
|
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
13932
14452
|
},
|
|
14453
|
+
"materialization": {
|
|
14454
|
+
"$ref": "#/$defs/Map(String,Object)",
|
|
14455
|
+
"type": "object",
|
|
14456
|
+
"description": "CMP persistModel \u4ECE\u6570\u636E\u5E93\u5206\u6790\u5B9A\u4E49\u751F\u6210\u7684\u56FA\u5B9A\u8BA1\u7B97\u5408\u540C\uFF1B\u4EC5\u751F\u6210\u53D1\u5E03\u94FE\u53EF\u5199\uFF0C\u666E\u901A\u6A21\u578B\u5143\u6570\u636E\u4E0D\u5F97\u72EC\u7ACB\u4FEE\u6539\u3002\u7F3A\u5C11\u5408\u540C\u3001\u8EAB\u4EFD\u3001\u6307\u7EB9\u6216\u8FD0\u884C\u8BC1\u636E\u65F6\u660E\u786E\u62D2\u7EDD\uFF0C\u4E0D\u63A8\u5B9A\u6210\u529F\u6216\u96F6\u884C\u3002",
|
|
14457
|
+
"required": ["definitionId", "fingerprint", "dataSource", "grain", "period", "timezone", "fieldMappings", "enabled"],
|
|
14458
|
+
"additionalProperties": false,
|
|
14459
|
+
"properties": {
|
|
14460
|
+
"definitionId": {
|
|
14461
|
+
"type": "string",
|
|
14462
|
+
"format": "uuid",
|
|
14463
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
|
|
14464
|
+
"description": "\u6570\u636E\u5E93 AnalysisModelDefinition \u7684\u771F\u5B9E UUID\uFF1B\u4E0D\u63A5\u53D7\u7F3A\u5931\u8EAB\u4EFD\u7684\u4E34\u65F6\u66FF\u8EAB\u3002"
|
|
14465
|
+
},
|
|
14466
|
+
"fingerprint": {
|
|
14467
|
+
"type": "string",
|
|
14468
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
14469
|
+
"description": "\u89C4\u8303\u5316\u5B8C\u6574\u5B9A\u4E49\u7684 SHA-256\uFF1B\u8BA1\u7B97\u3001\u5B57\u6BB5\u7ED3\u6784\u3001\u5B58\u50A8\u4E0E\u5B89\u5168\u8BED\u4E49\u53D8\u5316\u5FC5\u987B\u6539\u53D8\u6307\u7EB9\u3002"
|
|
14470
|
+
},
|
|
14471
|
+
"dataSource": {
|
|
14472
|
+
"type": "object",
|
|
14473
|
+
"required": ["dslVersion", "type", "query"],
|
|
14474
|
+
"minProperties": 3,
|
|
14475
|
+
"description": "\u5B8C\u6574\u4FDD\u7559\u6807\u51C6 SharedDataSourceConfig v2 \u4FE1\u5C01\u4E0E query\u3002\u5B8C\u6574\u5F62\u72B6\u53E6\u7531\u7EDF\u4E00 DataSourceWriteGate \u6821\u9A8C\uFF0C\u4E0D\u5F15\u5165\u7B2C\u4E8C\u79CD\u67E5\u8BE2\u8BED\u8A00\uFF1B\u9996\u7248\u53EA\u6267\u884C\u5177\u5907\u5B8C\u6574\u8BFB\u53D6\u8BC1\u660E\u7684 list\uFF0C\u652F\u6301\u8303\u56F4\u5728\u8FD0\u884C\u65F6\u6821\u9A8C\u3002",
|
|
14476
|
+
"properties": {
|
|
14477
|
+
"dslVersion": {
|
|
14478
|
+
"const": 2
|
|
14479
|
+
},
|
|
14480
|
+
"type": {
|
|
14481
|
+
"const": "list"
|
|
14482
|
+
},
|
|
14483
|
+
"query": {
|
|
14484
|
+
"type": "object",
|
|
14485
|
+
"required": ["model"],
|
|
14486
|
+
"properties": {
|
|
14487
|
+
"model": {
|
|
14488
|
+
"type": "string",
|
|
14489
|
+
"minLength": 1
|
|
14490
|
+
}
|
|
14491
|
+
}
|
|
14492
|
+
}
|
|
14493
|
+
}
|
|
14494
|
+
},
|
|
14495
|
+
"grain": {
|
|
14496
|
+
"type": "array",
|
|
14497
|
+
"minItems": 1,
|
|
14498
|
+
"uniqueItems": true,
|
|
14499
|
+
"items": {
|
|
14500
|
+
"type": "string",
|
|
14501
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,79}$"
|
|
14502
|
+
},
|
|
14503
|
+
"description": "\u975E\u7A7A\u8F93\u51FA\u7C92\u5EA6\u952E\uFF1B\u987B\u7531\u5DF2\u542F\u7528\u8F93\u51FA\u5B57\u6BB5\u7EC4\u6210\uFF0C\u8FD0\u884C\u65F6\u503C\u975E\u7A7A\u4E14\u7EC4\u5408\u552F\u4E00\u3002"
|
|
14504
|
+
},
|
|
14505
|
+
"period": {
|
|
14506
|
+
"type": "string",
|
|
14507
|
+
"const": "MONTH",
|
|
14508
|
+
"description": "\u9996\u7248\u4EC5\u652F\u6301\u81EA\u7136\u6708\uFF0C\u8FD0\u884C\u671F\u95F4\u4F7F\u7528 YYYY-MM\uFF1B\u671F\u95F4\u6807\u7B7E\u4E0D\u628A\u666E\u901A\u6765\u6E90\u81EA\u52A8\u53D8\u6210\u5386\u53F2\u5FEB\u7167\u3002"
|
|
14509
|
+
},
|
|
14510
|
+
"timezone": {
|
|
14511
|
+
"type": "string",
|
|
14512
|
+
"minLength": 1,
|
|
14513
|
+
"pattern": "\\S",
|
|
14514
|
+
"description": "\u5408\u6CD5 ZoneId\uFF1B\u5B9E\u9645\u5408\u6CD5\u6027\u7531\u7F16\u8BD1\u5668\u9A8C\u8BC1\uFF0C\u4E0D\u4EE5\u9ED8\u8BA4\u65F6\u533A\u66FF\u4EE3\u7F3A\u5931\u58F0\u660E\u3002"
|
|
14515
|
+
},
|
|
14516
|
+
"fieldMappings": {
|
|
14517
|
+
"type": "object",
|
|
14518
|
+
"minProperties": 1,
|
|
14519
|
+
"propertyNames": {
|
|
14520
|
+
"type": "string",
|
|
14521
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,79}$"
|
|
14522
|
+
},
|
|
14523
|
+
"additionalProperties": {
|
|
14524
|
+
"oneOf": [{
|
|
14525
|
+
"type": "object",
|
|
14526
|
+
"required": ["field"],
|
|
14527
|
+
"additionalProperties": false,
|
|
14528
|
+
"properties": {
|
|
14529
|
+
"field": {
|
|
14530
|
+
"type": "string",
|
|
14531
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)*$"
|
|
14532
|
+
}
|
|
14533
|
+
}
|
|
14534
|
+
}, {
|
|
14535
|
+
"type": "object",
|
|
14536
|
+
"required": ["formula"],
|
|
14537
|
+
"additionalProperties": false,
|
|
14538
|
+
"properties": {
|
|
14539
|
+
"formula": {
|
|
14540
|
+
"type": "string",
|
|
14541
|
+
"minLength": 1,
|
|
14542
|
+
"pattern": "\\S"
|
|
14543
|
+
}
|
|
14544
|
+
}
|
|
14545
|
+
}]
|
|
14546
|
+
},
|
|
14547
|
+
"description": "\u8F93\u51FA\u5B57\u6BB5\u952E\u6620\u5C04\u5230\u6765\u6E90\u8DEF\u5F84\u6216\u73B0\u6709\u516C\u5F0F\uFF0C\u4E8C\u8005\u6070\u597D\u9009\u4E00\uFF1B\u8F93\u51FA\u7C7B\u578B\u3001\u8EAB\u4EFD\u548C\u5B58\u50A8\u7ED3\u6784\u4ECD\u5199\u5728\u73B0\u6709 fields \u4E2D\u3002"
|
|
14548
|
+
},
|
|
14549
|
+
"enabled": {
|
|
14550
|
+
"type": "boolean",
|
|
14551
|
+
"description": "\u5DF2\u53D1\u5E03\u5B9A\u4E49\u7684\u542F\u7528\u72B6\u6001\uFF1B\u8349\u7A3F\u4FEE\u6539\u9700\u91CD\u65B0 persistModel \u624D\u6539\u53D8\u540E\u7EED\u8FD0\u884C\u3002"
|
|
14552
|
+
}
|
|
14553
|
+
}
|
|
14554
|
+
},
|
|
13933
14555
|
"name": {
|
|
13934
14556
|
"type": "string",
|
|
13935
14557
|
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
@@ -13987,6 +14609,48 @@ var META_SCHEMAS = {
|
|
|
13987
14609
|
"type": "string"
|
|
13988
14610
|
}
|
|
13989
14611
|
},
|
|
14612
|
+
"configurationScope": {
|
|
14613
|
+
"type": "object",
|
|
14614
|
+
"properties": {
|
|
14615
|
+
"domain": {
|
|
14616
|
+
"type": "string",
|
|
14617
|
+
"minLength": 1
|
|
14618
|
+
},
|
|
14619
|
+
"fieldTypes": {
|
|
14620
|
+
"type": "array",
|
|
14621
|
+
"items": {
|
|
14622
|
+
"type": "string",
|
|
14623
|
+
"enum": ["string", "integer", "number", "float", "date", "datetime", "boolean"]
|
|
14624
|
+
},
|
|
14625
|
+
"minItems": 1,
|
|
14626
|
+
"uniqueItems": true
|
|
14627
|
+
},
|
|
14628
|
+
"form": {
|
|
14629
|
+
"$ref": "#/$defs/CreationTemplate"
|
|
14630
|
+
},
|
|
14631
|
+
"models": {
|
|
14632
|
+
"type": "array",
|
|
14633
|
+
"items": {
|
|
14634
|
+
"type": "string",
|
|
14635
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$"
|
|
14636
|
+
},
|
|
14637
|
+
"uniqueItems": true
|
|
14638
|
+
},
|
|
14639
|
+
"newFieldAccess": {
|
|
14640
|
+
"type": "string",
|
|
14641
|
+
"enum": ["INHERIT_EXISTING"]
|
|
14642
|
+
},
|
|
14643
|
+
"subset": {
|
|
14644
|
+
"$ref": "#/$defs/CreationTemplate"
|
|
14645
|
+
},
|
|
14646
|
+
"workspaceKey": {
|
|
14647
|
+
"type": "string",
|
|
14648
|
+
"pattern": "^[A-Za-z0-9._-]+$"
|
|
14649
|
+
}
|
|
14650
|
+
},
|
|
14651
|
+
"required": ["workspaceKey", "domain", "models", "fieldTypes", "newFieldAccess"],
|
|
14652
|
+
"additionalProperties": false
|
|
14653
|
+
},
|
|
13990
14654
|
"fieldAccess": {
|
|
13991
14655
|
"type": "array",
|
|
13992
14656
|
"items": {
|
|
@@ -14881,6 +15545,16 @@ var META_SCHEMAS = {
|
|
|
14881
15545
|
}
|
|
14882
15546
|
}
|
|
14883
15547
|
},
|
|
15548
|
+
"surfaces": {
|
|
15549
|
+
"type": "array",
|
|
15550
|
+
"items": {
|
|
15551
|
+
"type": "string",
|
|
15552
|
+
"enum": ["DESKTOP", "MOBILE"]
|
|
15553
|
+
},
|
|
15554
|
+
"minItems": 1,
|
|
15555
|
+
"uniqueItems": true,
|
|
15556
|
+
"description": "\u52A8\u4F5C\u5C55\u793A\u7AEF\u8303\u56F4\uFF1B\u672A\u58F0\u660E\u65F6\u517C\u5BB9\u4E3A DESKTOP \u4E0E MOBILE\u3002\u4EC5\u63A7\u5236 UI \u5C55\u793A\uFF0C\u4E0D\u66FF\u4EE3\u670D\u52A1\u7AEF\u6388\u6743\u6216\u6267\u884C\u6821\u9A8C\u3002"
|
|
15557
|
+
},
|
|
14884
15558
|
"type": {
|
|
14885
15559
|
"type": "string"
|
|
14886
15560
|
},
|
|
@@ -31296,7 +31970,7 @@ async function createJiraClient(opts = {}) {
|
|
|
31296
31970
|
// src/jira/refs.ts
|
|
31297
31971
|
var escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
31298
31972
|
var HOST = `(?:${GITLAB_REF_HOSTS.map(escapeRe).join("|")})`;
|
|
31299
|
-
var GITLAB_REF_RE = new RegExp(`${HOST}\\/hcm\\/(hcm_nx_(?:core|cloud))(?:#|\\/-\\/(?:issues|work_items)\\/)(\\d+)`, "g");
|
|
31973
|
+
var GITLAB_REF_RE = new RegExp(`${HOST}\\/hcm\\/(hcm_nx_(?:core|cloud|cli))(?:#|\\/-\\/(?:issues|work_items)\\/)(\\d+)`, "g");
|
|
31300
31974
|
var CNB_REF_RE = new RegExp(`(?<!${HOST}\\/)hcm\\/(hcm_nx_(?:core|cli|cloud))(?:#|\\/-\\/issues\\/)(\\d+)`, "g");
|
|
31301
31975
|
var refId = (r) => forgeOf(r) === "gitlab" ? `${GITLAB_HOST}/${r.repo}#${r.number}` : `${r.repo}#${r.number}`;
|
|
31302
31976
|
var refUrl = (r) => forgeOf(r) === "gitlab" ? gitlabIssueUrl(r.repo, r.number) : repoIssueUrl(r.repo, r.number);
|