@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16
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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
package/lib/services/cost.js
CHANGED
|
@@ -1,177 +1,47 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = T.Query;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Boolean;
|
|
17
|
+
const __7 = S.Struct;
|
|
18
|
+
const __8 = S.suspend;
|
|
19
|
+
const __9 = T.RawResponseRoot;
|
|
20
|
+
const __10 = S.Unknown;
|
|
21
|
+
const __11 = S.Array;
|
|
22
|
+
const __12 = S.Number;
|
|
23
|
+
const __13 = S.TaggedError;
|
|
24
|
+
const __14 = T.applyErrorMatchers;
|
|
25
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
26
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __12, __3, __13, __14]]);
|
|
27
|
+
});
|
|
28
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
29
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __12, __3, __13, __14]]);
|
|
30
|
+
});
|
|
31
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
32
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __12, __3, __13, __14]]);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export const getCostsForProject = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12,$13,$14],protocol:$15,retry:$16};$8(>3)@"GetCostsForProjectRequest";$8(>4)@"GetCostsForProjectResponse";$7({customerAccountId:$3.pipe($2()),projectId:$3.pipe($2()),from:$3.pipe($4()),to:$3.pipe($4()),depth:$5($3.pipe($4())),granularity:$5($3.pipe($4())),includeZeroCosts:$5($6.pipe($4()))}).pipe($1({method:"GET",uri:"/v3/costs/{customerAccountId}/projects/{projectId}",code:200,baseUrl:"https://cost.api.stackit.cloud"}));$10.pipe($9())', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __9, __10, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCostsForProject, i));
|
|
36
|
+
|
|
37
|
+
export const listCostsForCustomer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2:1,errors:[$4,$5,$6,$7],protocol:$8,retry:$9};$3(>2)@"ListCostsForCustomerRequest";~2:2.pipe($1({method:"GET",uri:"/v3/costs/{customerAccountId}",code:200,baseUrl:"https://cost.api.stackit.cloud"}))', [__0, __1, __d0, __8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCostsForCustomer, i));
|
|
38
|
+
|
|
39
|
+
export const listCostsForReseller = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2:1,errors:[$4,$5,$6,$7],protocol:$8,retry:$9};$3(>2)@"ListCostsForResellerRequest";~2:2.pipe($1({method:"GET",uri:"/v3/costs/{customerAccountId}/customers",code:200,baseUrl:"https://cost.api.stackit.cloud"}))', [__0, __1, __d0, __8, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCostsForReseller, i));
|
|
40
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
41
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
// Shared schema data (see `op` in core/api).
|
|
45
|
+
function __d0() {
|
|
46
|
+
return ['$2($1);$4(>3)@"ListCostsForCustomerResponse";$10({customerAccountId:$6.pipe($5()),from:$6.pipe($7()),to:$6.pipe($7()),depth:$8($6.pipe($7())),granularity:$8($6.pipe($7())),includeZeroCosts:$8($9.pipe($7()))});#0.pipe($3())', [__0, __10, __11, __9, __8, __2, __3, __4, __5, __6, __7]];
|
|
14
47
|
}
|
|
15
|
-
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
16
|
-
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
17
|
-
code: S.Number,
|
|
18
|
-
message: S.String,
|
|
19
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
20
|
-
}
|
|
21
|
-
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
22
|
-
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
23
|
-
code: S.Number,
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
26
|
-
}
|
|
27
|
-
export const GetCostsForProjectRequestDepth = S.String;
|
|
28
|
-
export const GetCostsForProjectRequestGranularity = S.String;
|
|
29
|
-
export const GetCostsForProjectRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
-
customerAccountId: S.String.pipe(T.Label()),
|
|
31
|
-
projectId: S.String.pipe(T.Label()),
|
|
32
|
-
from: S.String.pipe(T.Query()),
|
|
33
|
-
to: S.String.pipe(T.Query()),
|
|
34
|
-
depth: S.optional(GetCostsForProjectRequestDepth.pipe(T.Query())),
|
|
35
|
-
granularity: S.optional(GetCostsForProjectRequestGranularity.pipe(T.Query())),
|
|
36
|
-
includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
|
|
37
|
-
}).pipe(T.Http({
|
|
38
|
-
method: "GET",
|
|
39
|
-
uri: "/v3/costs/{customerAccountId}/projects/{projectId}",
|
|
40
|
-
code: 200,
|
|
41
|
-
baseUrl: "https://cost.api.stackit.cloud",
|
|
42
|
-
}))).annotate({
|
|
43
|
-
identifier: "GetCostsForProjectRequest",
|
|
44
|
-
});
|
|
45
|
-
export const SummarizedProjectCost = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
46
|
-
customerAccountId: S.String,
|
|
47
|
-
projectId: S.String,
|
|
48
|
-
projectName: S.String,
|
|
49
|
-
totalCharge: S.Number,
|
|
50
|
-
totalDiscount: S.Number,
|
|
51
|
-
})).annotate({ identifier: "SummarizedProjectCost" });
|
|
52
|
-
export const ReportDataTimePeriod = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
-
end: S.optional(S.String),
|
|
54
|
-
start: S.optional(S.String),
|
|
55
|
-
})).annotate({ identifier: "ReportDataTimePeriod" });
|
|
56
|
-
export const ReportData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
57
|
-
charge: S.Number,
|
|
58
|
-
discount: S.Number,
|
|
59
|
-
quantity: S.Number,
|
|
60
|
-
quantityDecimal: S.String,
|
|
61
|
-
timePeriod: ReportDataTimePeriod,
|
|
62
|
-
})).annotate({ identifier: "ReportData" });
|
|
63
|
-
export const ProjectCostWithReportsReportDataList = /*@__PURE__*/ S.Array(ReportData);
|
|
64
|
-
export const ProjectCostWithReports = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
-
customerAccountId: S.String,
|
|
66
|
-
projectId: S.String,
|
|
67
|
-
projectName: S.String,
|
|
68
|
-
reportData: S.optional(ProjectCostWithReportsReportDataList),
|
|
69
|
-
totalCharge: S.Number,
|
|
70
|
-
totalDiscount: S.Number,
|
|
71
|
-
})).annotate({ identifier: "ProjectCostWithReports" });
|
|
72
|
-
export const SummarizedServiceCost = SummarizedProjectCost;
|
|
73
|
-
export const ProjectCostWithSummarizedServicesServicesList = /*@__PURE__*/ S.Array(SummarizedProjectCost);
|
|
74
|
-
export const ProjectCostWithSummarizedServices = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
75
|
-
customerAccountId: S.String,
|
|
76
|
-
projectId: S.String,
|
|
77
|
-
projectName: S.String,
|
|
78
|
-
services: S.optional(ProjectCostWithSummarizedServicesServicesList),
|
|
79
|
-
totalCharge: S.Number,
|
|
80
|
-
totalDiscount: S.Number,
|
|
81
|
-
})).annotate({
|
|
82
|
-
identifier: "ProjectCostWithSummarizedServices",
|
|
83
|
-
});
|
|
84
|
-
export const DetailedServiceCostReportDataList = /*@__PURE__*/ S.Array(ReportData);
|
|
85
|
-
export const DetailedServiceCost = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
86
|
-
reportData: S.optional(DetailedServiceCostReportDataList),
|
|
87
|
-
serviceCategoryName: S.String,
|
|
88
|
-
serviceName: S.String,
|
|
89
|
-
sku: S.String,
|
|
90
|
-
totalCharge: S.Number,
|
|
91
|
-
totalDiscount: S.Number,
|
|
92
|
-
totalQuantity: S.Number,
|
|
93
|
-
totalQuantityDecimal: S.String,
|
|
94
|
-
unitLabel: S.String,
|
|
95
|
-
})).annotate({ identifier: "DetailedServiceCost" });
|
|
96
|
-
export const ProjectCostWithDetailedServicesServicesList = /*@__PURE__*/ S.Array(DetailedServiceCost);
|
|
97
|
-
export const ProjectCostWithDetailedServices = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
-
customerAccountId: S.String,
|
|
99
|
-
projectId: S.String,
|
|
100
|
-
projectName: S.String,
|
|
101
|
-
services: S.optional(ProjectCostWithDetailedServicesServicesList),
|
|
102
|
-
totalCharge: S.Number,
|
|
103
|
-
totalDiscount: S.Number,
|
|
104
|
-
})).annotate({
|
|
105
|
-
identifier: "ProjectCostWithDetailedServices",
|
|
106
|
-
});
|
|
107
|
-
export const ProjectCost = /*@__PURE__*/ S.Unknown;
|
|
108
|
-
export const GetCostsForProjectResponse = /*@__PURE__*/ S.suspend(() => ProjectCost.pipe(T.RawResponseRoot())).annotate({
|
|
109
|
-
identifier: "GetCostsForProjectResponse",
|
|
110
|
-
});
|
|
111
|
-
export const ListCostsForCustomerRequestDepth = S.String;
|
|
112
|
-
export const ListCostsForCustomerRequestGranularity = S.String;
|
|
113
|
-
export const ListCostsForCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
114
|
-
customerAccountId: S.String.pipe(T.Label()),
|
|
115
|
-
from: S.String.pipe(T.Query()),
|
|
116
|
-
to: S.String.pipe(T.Query()),
|
|
117
|
-
depth: S.optional(ListCostsForCustomerRequestDepth.pipe(T.Query())),
|
|
118
|
-
granularity: S.optional(ListCostsForCustomerRequestGranularity.pipe(T.Query())),
|
|
119
|
-
includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
|
|
120
|
-
}).pipe(T.Http({
|
|
121
|
-
method: "GET",
|
|
122
|
-
uri: "/v3/costs/{customerAccountId}",
|
|
123
|
-
code: 200,
|
|
124
|
-
baseUrl: "https://cost.api.stackit.cloud",
|
|
125
|
-
}))).annotate({
|
|
126
|
-
identifier: "ListCostsForCustomerRequest",
|
|
127
|
-
});
|
|
128
|
-
export const ListCostsForCustomerResponseBodyList = /*@__PURE__*/ S.Array(ProjectCost);
|
|
129
|
-
export const ListCostsForCustomerResponse = /*@__PURE__*/ S.suspend(() => ListCostsForCustomerResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
130
|
-
identifier: "ListCostsForCustomerResponse",
|
|
131
|
-
});
|
|
132
|
-
export const ListCostsForResellerRequestDepth = S.String;
|
|
133
|
-
export const ListCostsForResellerRequestGranularity = S.String;
|
|
134
|
-
export const ListCostsForResellerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
135
|
-
customerAccountId: S.String.pipe(T.Label()),
|
|
136
|
-
from: S.String.pipe(T.Query()),
|
|
137
|
-
to: S.String.pipe(T.Query()),
|
|
138
|
-
depth: S.optional(ListCostsForResellerRequestDepth.pipe(T.Query())),
|
|
139
|
-
granularity: S.optional(ListCostsForResellerRequestGranularity.pipe(T.Query())),
|
|
140
|
-
includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
|
|
141
|
-
}).pipe(T.Http({
|
|
142
|
-
method: "GET",
|
|
143
|
-
uri: "/v3/costs/{customerAccountId}/customers",
|
|
144
|
-
code: 200,
|
|
145
|
-
baseUrl: "https://cost.api.stackit.cloud",
|
|
146
|
-
}))).annotate({
|
|
147
|
-
identifier: "ListCostsForResellerRequest",
|
|
148
|
-
});
|
|
149
|
-
export const ListCostsForResellerResponseBodyList = /*@__PURE__*/ S.Array(ProjectCost);
|
|
150
|
-
export const ListCostsForResellerResponse = /*@__PURE__*/ S.suspend(() => ListCostsForResellerResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
151
|
-
identifier: "ListCostsForResellerResponse",
|
|
152
|
-
});
|
|
153
|
-
/** V3 Costs for a certain project Get costs for a certain project in a customer account */
|
|
154
|
-
export const getCostsForProject = /*@__PURE__*/ API.make(() => ({
|
|
155
|
-
input: GetCostsForProjectRequest,
|
|
156
|
-
output: GetCostsForProjectResponse,
|
|
157
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
158
|
-
protocol: StackitProtocol,
|
|
159
|
-
retry: Retry.Retry,
|
|
160
|
-
}));
|
|
161
|
-
/** V3 Costs for all projects Get costs for all projects in a customer account */
|
|
162
|
-
export const listCostsForCustomer = /*@__PURE__*/ API.make(() => ({
|
|
163
|
-
input: ListCostsForCustomerRequest,
|
|
164
|
-
output: ListCostsForCustomerResponse,
|
|
165
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
166
|
-
protocol: StackitProtocol,
|
|
167
|
-
retry: Retry.Retry,
|
|
168
|
-
}));
|
|
169
|
-
/** V3 Costs for all projects of all related sub-customers Get costs for all projects of all related sub-customer accounts */
|
|
170
|
-
export const listCostsForReseller = /*@__PURE__*/ API.make(() => ({
|
|
171
|
-
input: ListCostsForResellerRequest,
|
|
172
|
-
output: ListCostsForResellerResponse,
|
|
173
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
174
|
-
protocol: StackitProtocol,
|
|
175
|
-
retry: Retry.Retry,
|
|
176
|
-
}));
|
|
177
|
-
//# sourceMappingURL=cost.js.map
|