Skip to content

Commit efbc9a3

Browse files
authored
Updates service models to 2023-04-07 (#12)
* Updates service models to 2023-04-07 * Updates `teco-core` to `0.5.0`
1 parent 2d7a2f6 commit efbc9a3

File tree

1,641 files changed

+84219
-7718
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,641 files changed

+84219
-7718
lines changed

Package.resolved

+10-10
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"repositoryURL": "https://github.com/apple/swift-atomics.git",
1616
"state": {
1717
"branch": null,
18-
"revision": "ff3d2212b6b093db7f177d0855adbc4ef9c5f036",
19-
"version": "1.0.3"
18+
"revision": "6c89474e62719ddcc1e9614989fff2f68208fe10",
19+
"version": "1.1.0"
2020
}
2121
},
2222
{
@@ -33,8 +33,8 @@
3333
"repositoryURL": "https://github.com/apple/swift-crypto.git",
3434
"state": {
3535
"branch": null,
36-
"revision": "80a6e3edc1fc3a4c6c7d4177c73fa3f74c72d3e1",
37-
"version": "2.3.0"
36+
"revision": "da0fe44138ab86e380f40a2acbd8a611b07d3f64",
37+
"version": "2.4.0"
3838
}
3939
},
4040
{
@@ -60,17 +60,17 @@
6060
"repositoryURL": "https://github.com/apple/swift-nio.git",
6161
"state": {
6262
"branch": null,
63-
"revision": "45167b8006448c79dda4b7bd604e07a034c15c49",
64-
"version": "2.48.0"
63+
"revision": "9b2848d76f5caad08b97e71a04345aa5bdb23a06",
64+
"version": "2.49.0"
6565
}
6666
},
6767
{
6868
"package": "swift-nio-extras",
6969
"repositoryURL": "https://github.com/apple/swift-nio-extras.git",
7070
"state": {
7171
"branch": null,
72-
"revision": "d75ed708d00353acf173ca23018b6bd46f949464",
73-
"version": "1.17.0"
72+
"revision": "cc1e5275079380c859417dbea8588531f1a90ec3",
73+
"version": "1.18.0"
7474
}
7575
},
7676
{
@@ -105,8 +105,8 @@
105105
"repositoryURL": "https://github.com/teco-project/teco-core.git",
106106
"state": {
107107
"branch": null,
108-
"revision": "a8448052ed664bf2d601ac77eb40857c09b6da3a",
109-
"version": "0.5.0-beta.1"
108+
"revision": "5e4fb1db7a9f1260563f6c6112393b203bd03df5",
109+
"version": "0.5.0"
110110
}
111111
}
112112
]

Package.swift

+17-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ let package = Package(
2424
.library(name: "TecoAdvisorV20200721", targets: ["TecoAdvisorV20200721"]),
2525
.library(name: "TecoAfV20200226", targets: ["TecoAfV20200226"]),
2626
.library(name: "TecoAfcV20200226", targets: ["TecoAfcV20200226"]),
27+
.library(name: "TecoAiartV20221229", targets: ["TecoAiartV20221229"]),
2728
.library(name: "TecoAmeV20190916", targets: ["TecoAmeV20190916"]),
2829
.library(name: "TecoAmsV20201229", targets: ["TecoAmsV20201229"]),
2930
.library(name: "TecoAmsV20200608", targets: ["TecoAmsV20200608"]),
@@ -44,6 +45,7 @@ let package = Package(
4445
.library(name: "TecoBillingV20180709", targets: ["TecoBillingV20180709"]),
4546
.library(name: "TecoBizliveV20190313", targets: ["TecoBizliveV20190313"]),
4647
.library(name: "TecoBmV20180423", targets: ["TecoBmV20180423"]),
48+
.library(name: "TecoBmaV20221115", targets: ["TecoBmaV20221115"]),
4749
.library(name: "TecoBmaV20210624", targets: ["TecoBmaV20210624"]),
4850
.library(name: "TecoBmeipV20180625", targets: ["TecoBmeipV20180625"]),
4951
.library(name: "TecoBmlbV20180625", targets: ["TecoBmlbV20180625"]),
@@ -141,6 +143,7 @@ let package = Package(
141143
.library(name: "TecoIirV20200417", targets: ["TecoIirV20200417"]),
142144
.library(name: "TecoImsV20201229", targets: ["TecoImsV20201229"]),
143145
.library(name: "TecoImsV20200713", targets: ["TecoImsV20200713"]),
146+
.library(name: "TecoIntlpartnersmgtV20220928", targets: ["TecoIntlpartnersmgtV20220928"]),
144147
.library(name: "TecoIotV20180123", targets: ["TecoIotV20180123"]),
145148
.library(name: "TecoIotcloudV20210408", targets: ["TecoIotcloudV20210408"]),
146149
.library(name: "TecoIotcloudV20180614", targets: ["TecoIotcloudV20180614"]),
@@ -153,6 +156,7 @@ let package = Package(
153156
.library(name: "TecoIrpV20220805", targets: ["TecoIrpV20220805"]),
154157
.library(name: "TecoIrpV20220324", targets: ["TecoIrpV20220324"]),
155158
.library(name: "TecoIvldV20210903", targets: ["TecoIvldV20210903"]),
159+
.library(name: "TecoKeewidbV20220308", targets: ["TecoKeewidbV20220308"]),
156160
.library(name: "TecoKmsV20190118", targets: ["TecoKmsV20190118"]),
157161
.library(name: "TecoLcicV20220817", targets: ["TecoLcicV20220817"]),
158162
.library(name: "TecoLighthouseV20200324", targets: ["TecoLighthouseV20200324"]),
@@ -178,6 +182,7 @@ let package = Package(
178182
.library(name: "TecoNppV20190823", targets: ["TecoNppV20190823"]),
179183
.library(name: "TecoOceanusV20190422", targets: ["TecoOceanusV20190422"]),
180184
.library(name: "TecoOcrV20181119", targets: ["TecoOcrV20181119"]),
185+
.library(name: "TecoOmicsV20221128", targets: ["TecoOmicsV20221128"]),
181186
.library(name: "TecoOrganizationV20210331", targets: ["TecoOrganizationV20210331"]),
182187
.library(name: "TecoOrganizationV20181225", targets: ["TecoOrganizationV20181225"]),
183188
.library(name: "TecoPartnersV20180321", targets: ["TecoPartnersV20180321"]),
@@ -194,6 +199,7 @@ let package = Package(
194199
.library(name: "TecoScfV20180416", targets: ["TecoScfV20180416"]),
195200
.library(name: "TecoSesV20201002", targets: ["TecoSesV20201002"]),
196201
.library(name: "TecoSmhV20210712", targets: ["TecoSmhV20210712"]),
202+
.library(name: "TecoSmopV20201203", targets: ["TecoSmopV20201203"]),
197203
.library(name: "TecoSmpnV20190822", targets: ["TecoSmpnV20190822"]),
198204
.library(name: "TecoSmsV20210111", targets: ["TecoSmsV20210111"]),
199205
.library(name: "TecoSmsV20190711", targets: ["TecoSmsV20190711"]),
@@ -230,6 +236,7 @@ let package = Package(
230236
.library(name: "TecoTemV20201221", targets: ["TecoTemV20201221"]),
231237
.library(name: "TecoTeoV20220901", targets: ["TecoTeoV20220901"]),
232238
.library(name: "TecoTeoV20220106", targets: ["TecoTeoV20220106"]),
239+
.library(name: "TecoThpcV20230321", targets: ["TecoThpcV20230321"]),
233240
.library(name: "TecoThpcV20220401", targets: ["TecoThpcV20220401"]),
234241
.library(name: "TecoThpcV20211109", targets: ["TecoThpcV20211109"]),
235242
.library(name: "TecoTiaV20180226", targets: ["TecoTiaV20180226"]),
@@ -248,6 +255,7 @@ let package = Package(
248255
.library(name: "TecoTmtV20180321", targets: ["TecoTmtV20180321"]),
249256
.library(name: "TecoTrdpV20220726", targets: ["TecoTrdpV20220726"]),
250257
.library(name: "TecoTrpV20210515", targets: ["TecoTrpV20210515"]),
258+
.library(name: "TecoTrroV20220325", targets: ["TecoTrroV20220325"]),
251259
.library(name: "TecoTrtcV20190722", targets: ["TecoTrtcV20190722"]),
252260
.library(name: "TecoTseV20201207", targets: ["TecoTseV20201207"]),
253261
.library(name: "TecoTsfV20180326", targets: ["TecoTsfV20180326"]),
@@ -273,7 +281,7 @@ let package = Package(
273281
.library(name: "TecoZjV20190121", targets: ["TecoZjV20190121"]),
274282
],
275283
dependencies: [
276-
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.0-beta.1"))
284+
.package(url: "https://github.com/teco-project/teco-core.git", .upToNextMinor(from: "0.5.0"))
277285
],
278286
targets: [
279287
.target(name: "TecoAaV20200224", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Aa/V20200224"),
@@ -282,6 +290,7 @@ let package = Package(
282290
.target(name: "TecoAdvisorV20200721", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Advisor/V20200721"),
283291
.target(name: "TecoAfV20200226", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Af/V20200226"),
284292
.target(name: "TecoAfcV20200226", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Afc/V20200226"),
293+
.target(name: "TecoAiartV20221229", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Aiart/V20221229"),
285294
.target(name: "TecoAmeV20190916", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ame/V20190916"),
286295
.target(name: "TecoAmsV20201229", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ams/V20201229"),
287296
.target(name: "TecoAmsV20200608", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ams/V20200608"),
@@ -302,6 +311,7 @@ let package = Package(
302311
.target(name: "TecoBillingV20180709", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Billing/V20180709"),
303312
.target(name: "TecoBizliveV20190313", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Bizlive/V20190313"),
304313
.target(name: "TecoBmV20180423", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Bm/V20180423"),
314+
.target(name: "TecoBmaV20221115", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Bma/V20221115"),
305315
.target(name: "TecoBmaV20210624", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Bma/V20210624"),
306316
.target(name: "TecoBmeipV20180625", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Bmeip/V20180625"),
307317
.target(name: "TecoBmlbV20180625", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Bmlb/V20180625"),
@@ -399,6 +409,7 @@ let package = Package(
399409
.target(name: "TecoIirV20200417", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Iir/V20200417"),
400410
.target(name: "TecoImsV20201229", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ims/V20201229"),
401411
.target(name: "TecoImsV20200713", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ims/V20200713"),
412+
.target(name: "TecoIntlpartnersmgtV20220928", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Intlpartnersmgt/V20220928"),
402413
.target(name: "TecoIotV20180123", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Iot/V20180123"),
403414
.target(name: "TecoIotcloudV20210408", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Iotcloud/V20210408"),
404415
.target(name: "TecoIotcloudV20180614", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Iotcloud/V20180614"),
@@ -411,6 +422,7 @@ let package = Package(
411422
.target(name: "TecoIrpV20220805", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Irp/V20220805"),
412423
.target(name: "TecoIrpV20220324", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Irp/V20220324"),
413424
.target(name: "TecoIvldV20210903", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ivld/V20210903"),
425+
.target(name: "TecoKeewidbV20220308", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Keewidb/V20220308"),
414426
.target(name: "TecoKmsV20190118", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Kms/V20190118"),
415427
.target(name: "TecoLcicV20220817", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Lcic/V20220817"),
416428
.target(name: "TecoLighthouseV20200324", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Lighthouse/V20200324"),
@@ -436,6 +448,7 @@ let package = Package(
436448
.target(name: "TecoNppV20190823", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Npp/V20190823"),
437449
.target(name: "TecoOceanusV20190422", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Oceanus/V20190422"),
438450
.target(name: "TecoOcrV20181119", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ocr/V20181119"),
451+
.target(name: "TecoOmicsV20221128", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Omics/V20221128"),
439452
.target(name: "TecoOrganizationV20210331", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Organization/V20210331"),
440453
.target(name: "TecoOrganizationV20181225", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Organization/V20181225"),
441454
.target(name: "TecoPartnersV20180321", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Partners/V20180321"),
@@ -452,6 +465,7 @@ let package = Package(
452465
.target(name: "TecoScfV20180416", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Scf/V20180416"),
453466
.target(name: "TecoSesV20201002", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Ses/V20201002"),
454467
.target(name: "TecoSmhV20210712", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Smh/V20210712"),
468+
.target(name: "TecoSmopV20201203", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Smop/V20201203"),
455469
.target(name: "TecoSmpnV20190822", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Smpn/V20190822"),
456470
.target(name: "TecoSmsV20210111", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Sms/V20210111"),
457471
.target(name: "TecoSmsV20190711", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Sms/V20190711"),
@@ -488,6 +502,7 @@ let package = Package(
488502
.target(name: "TecoTemV20201221", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Tem/V20201221"),
489503
.target(name: "TecoTeoV20220901", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Teo/V20220901"),
490504
.target(name: "TecoTeoV20220106", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Teo/V20220106"),
505+
.target(name: "TecoThpcV20230321", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Thpc/V20230321"),
491506
.target(name: "TecoThpcV20220401", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Thpc/V20220401"),
492507
.target(name: "TecoThpcV20211109", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Thpc/V20211109"),
493508
.target(name: "TecoTiaV20180226", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Tia/V20180226"),
@@ -506,6 +521,7 @@ let package = Package(
506521
.target(name: "TecoTmtV20180321", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Tmt/V20180321"),
507522
.target(name: "TecoTrdpV20220726", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Trdp/V20220726"),
508523
.target(name: "TecoTrpV20210515", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Trp/V20210515"),
524+
.target(name: "TecoTrroV20220325", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Trro/V20220325"),
509525
.target(name: "TecoTrtcV20190722", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Trtc/V20190722"),
510526
.target(name: "TecoTseV20201207", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Tse/V20201207"),
511527
.target(name: "TecoTsfV20180326", dependencies: [.product(name: "TecoCore", package: "teco-core")], path: "./Sources/Teco/Tsf/V20180326"),

Sources/Teco/Aai/V20180522/errors/AaiError.InvalidParameterValue.swift

+1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ extension TCAaiError {
148148
InvalidParameterValue(.primaryLanguage)
149149
}
150150

151+
/// SampleRate参数错误。
151152
public static var sampleRate: InvalidParameterValue {
152153
InvalidParameterValue(.sampleRate)
153154
}

Sources/Teco/Aai/V20180522/errors/AaiError.UnsupportedOperation.swift

+9
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extension TCAaiError {
1919
enum Code: String {
2020
case accountArrears = "UnsupportedOperation.AccountArrears"
2121
case noFreeAccount = "UnsupportedOperation.NoFreeAccount"
22+
case pkgExhausted = "UnsupportedOperation.PkgExhausted"
2223
case serverNotOpen = "UnsupportedOperation.ServerNotOpen"
2324
case serverStopped = "UnsupportedOperation.ServerStopped"
2425
case textTooLong = "UnsupportedOperation.TextTooLong"
@@ -56,11 +57,17 @@ extension TCAaiError {
5657
UnsupportedOperation(.noFreeAccount)
5758
}
5859

60+
/// 资源包余量已用尽。
61+
public static var pkgExhausted: UnsupportedOperation {
62+
UnsupportedOperation(.pkgExhausted)
63+
}
64+
5965
/// 服务未开通。
6066
public static var serverNotOpen: UnsupportedOperation {
6167
UnsupportedOperation(.serverNotOpen)
6268
}
6369

70+
/// 服务停服。
6471
public static var serverStopped: UnsupportedOperation {
6572
UnsupportedOperation(.serverStopped)
6673
}
@@ -77,6 +84,8 @@ extension TCAaiError {
7784
code = .unsupportedOperation_AccountArrears
7885
case .noFreeAccount:
7986
code = .unsupportedOperation_NoFreeAccount
87+
case .pkgExhausted:
88+
code = .unsupportedOperation_PkgExhausted
8089
case .serverNotOpen:
8190
code = .unsupportedOperation_ServerNotOpen
8291
case .serverStopped:

Sources/Teco/Aai/V20180522/errors/AaiError.swift

+8
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public struct TCAaiError: TCAaiErrorType {
7373
case limitExceeded_AccessLimit = "LimitExceeded.AccessLimit"
7474
case unsupportedOperation_AccountArrears = "UnsupportedOperation.AccountArrears"
7575
case unsupportedOperation_NoFreeAccount = "UnsupportedOperation.NoFreeAccount"
76+
case unsupportedOperation_PkgExhausted = "UnsupportedOperation.PkgExhausted"
7677
case unsupportedOperation_ServerNotOpen = "UnsupportedOperation.ServerNotOpen"
7778
case unsupportedOperation_ServerStopped = "UnsupportedOperation.ServerStopped"
7879
case unsupportedOperation_TextTooLong = "UnsupportedOperation.TextTooLong"
@@ -280,6 +281,7 @@ public struct TCAaiError: TCAaiErrorType {
280281
TCAaiError(.invalidParameterValue_PrimaryLanguage)
281282
}
282283

284+
/// SampleRate参数错误。
283285
public static var invalidParameterValue_SampleRate: TCAaiError {
284286
TCAaiError(.invalidParameterValue_SampleRate)
285287
}
@@ -353,11 +355,17 @@ public struct TCAaiError: TCAaiErrorType {
353355
TCAaiError(.unsupportedOperation_NoFreeAccount)
354356
}
355357

358+
/// 资源包余量已用尽。
359+
public static var unsupportedOperation_PkgExhausted: TCAaiError {
360+
TCAaiError(.unsupportedOperation_PkgExhausted)
361+
}
362+
356363
/// 服务未开通。
357364
public static var unsupportedOperation_ServerNotOpen: TCAaiError {
358365
TCAaiError(.unsupportedOperation_ServerNotOpen)
359366
}
360367

368+
/// 服务停服。
361369
public static var unsupportedOperation_ServerStopped: TCAaiError {
362370
TCAaiError(.unsupportedOperation_ServerStopped)
363371
}

Sources/Teco/Acp/V20220105/errors/AcpError.swift

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public protocol TCAcpErrorType: TCServiceErrorType {
2525
public struct TCAcpError: TCAcpErrorType {
2626
enum Code: String {
2727
case failedOperation = "FailedOperation"
28+
case invalidParameter = "InvalidParameter"
2829
case unsupportedOperation = "UnsupportedOperation"
2930
}
3031

@@ -55,6 +56,11 @@ public struct TCAcpError: TCAcpErrorType {
5556
TCAcpError(.failedOperation)
5657
}
5758

59+
/// 参数错误。
60+
public static var invalidParameter: TCAcpError {
61+
TCAcpError(.invalidParameter)
62+
}
63+
5864
/// 操作不支持。
5965
public static var unsupportedOperation: TCAcpError {
6066
TCAcpError(.unsupportedOperation)

0 commit comments

Comments
 (0)