@alphauspkgs/blue-sdk-ts 1.0.2 → 1.0.4
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 +58 -16
- package/admin/v1/client.js +2 -2
- package/admin/v1/client.ts +2 -2
- package/api/cover/budget_pb.js +1 -1
- package/api/cover/budget_pb.ts +8 -1
- package/api/cover/costforecast_pb.js +22 -2
- package/api/cover/costforecast_pb.ts +140 -1
- package/billing/v1/billing_pb.js +22 -2
- package/billing/v1/billing_pb.ts +243 -2
- package/billing/v1/client.js +2 -2
- package/billing/v1/client.ts +2 -2
- package/conn/conn.js +88 -9
- package/conn/conn.ts +105 -12
- package/cost/v1/client.js +2 -2
- package/cost/v1/client.ts +2 -2
- package/cost/v1/cost_pb.js +139 -134
- package/cost/v1/cost_pb.ts +280 -132
- package/cover/v1/client.js +2 -2
- package/cover/v1/client.ts +6 -6
- package/cover/v1/cover_pb.js +481 -383
- package/cover/v1/cover_pb.ts +1009 -376
- package/flow/v1/client.js +2 -2
- package/flow/v1/client.ts +2 -2
- package/iam/v1/client.js +2 -2
- package/iam/v1/client.ts +2 -2
- package/org/v1/client.js +2 -2
- package/org/v1/client.ts +2 -2
- package/package.json +3 -1
- package/preferences/v1/client.js +2 -2
- package/preferences/v1/client.ts +2 -2
- package/pricing/v1/client.js +2 -2
- package/pricing/v1/client.ts +2 -2
- package/prism/v1/client.js +2 -2
- package/prism/v1/client.ts +2 -2
- package/prism/v1/prism_pb.ts +4 -0
- package/vortex/v1/client.js +2 -2
- package/vortex/v1/client.ts +3 -3
package/README.md
CHANGED
|
@@ -1,32 +1,74 @@
|
|
|
1
1
|
# Blue Typescript SDK
|
|
2
|
-
This repository contains the Blue TypeScript SDK, which allows clients to interact with the Blue API from TypeScript applications.
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
* Currently, authentication is supported only via access tokens. Make sure you have a valid access token before using the SDK.
|
|
3
|
+
This repository contains the Blue TypeScript SDK, which allows clients to interact with the Blue API from TypeScript applications.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
6
|
+
|
|
8
7
|
You can install the SDK using npm:
|
|
8
|
+
|
|
9
9
|
```
|
|
10
10
|
npm install @alphauspkgs/blue-sdk-ts@latest
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
|
-
You must pass an access token to create a client instance.
|
|
15
|
-
Use the `WithAccessToken` option when instantiating a client.
|
|
16
14
|
|
|
17
|
-
###
|
|
15
|
+
### Authentication
|
|
16
|
+
|
|
17
|
+
The SDK supports three authentication methods.
|
|
18
|
+
|
|
19
|
+
#### WithDefaultCredentials()
|
|
20
|
+
|
|
21
|
+
Uses credentials from environment variables automatically.
|
|
22
|
+
See the [documentation](https://labs.alphaus.cloud/docs/blueapi/authentication/#using-environment-variables) for the list of supported keys.
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import { NewCoverClient } from "@alphauspkgs/blue-sdk-ts/cover/v1/client"
|
|
26
|
+
const client = NewCoverClient();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
💡 No need to specify the opt parameter — this is the default value.
|
|
30
|
+
|
|
31
|
+
#### WithAccessToken()
|
|
32
|
+
|
|
33
|
+
Authenticate using an access token.
|
|
34
|
+
```ts
|
|
35
|
+
import { NewCoverClient } from "@alphauspkgs/blue-sdk-ts/cover/v1/client"
|
|
36
|
+
import { WithAccessToken } from "@alphauspkgs/blue-sdk-ts/conn/conn";
|
|
37
|
+
|
|
38
|
+
const client = NewCoverClient(new WithAccessToken('your-access-token'))
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### WithNewBlueCredentials()
|
|
42
|
+
|
|
43
|
+
Manually create credentials supported by the Blue API.
|
|
18
44
|
```ts
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
45
|
+
import { BlueCredentials, WithNewBlueCredentials } from "@alphauspkgs/blue-sdk-ts/conn/conn"
|
|
46
|
+
import { NewCoverClient } from "@alphauspkgs/blue-sdk-ts/cover/v1/client"
|
|
47
|
+
const creds = new BlueCredentials({
|
|
48
|
+
clientId: 'your client id',
|
|
49
|
+
clientSecret: 'your client secret',
|
|
50
|
+
userName: 'your username', // optional
|
|
51
|
+
password: 'your password' // optional
|
|
52
|
+
})
|
|
53
|
+
const client = NewCoverClient(new WithNewBlueCredentials(creds))
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
See the [authentication guide](https://labs.alphaus.cloud/docs/blueapi/authentication/) for more details.
|
|
57
|
+
|
|
58
|
+
### Example using the cover service
|
|
21
59
|
|
|
22
|
-
|
|
60
|
+
```ts
|
|
61
|
+
import { NewCoverClient } from "@alphauspkgs/blue-sdk-ts/cover/v1/client";
|
|
62
|
+
import { WithAccessToken } from "@alphauspkgs/blue-sdk-ts/conn/conn";
|
|
63
|
+
|
|
64
|
+
const coverClient = NewCoverClient(new WithAccessToken("your-access-token"));
|
|
23
65
|
|
|
24
66
|
async function test() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
67
|
+
try {
|
|
68
|
+
const user = await coverClient.getUserDetails({}); // Get User Details
|
|
69
|
+
console.log(user);
|
|
70
|
+
} catch (e) {
|
|
71
|
+
console.error("Failed to fetch user details:", error);
|
|
72
|
+
}
|
|
31
73
|
}
|
|
32
|
-
```
|
|
74
|
+
```
|
package/admin/v1/client.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NewAdminClient = NewAdminClient;
|
|
4
4
|
const admin_pb_1 = require("./admin_pb");
|
|
5
5
|
const conn_1 = require("../../conn/conn");
|
|
6
|
-
function NewAdminClient(
|
|
7
|
-
const blueapi = new conn_1.BlueAPIService(admin_pb_1.Admin, "blue",
|
|
6
|
+
function NewAdminClient(opt) {
|
|
7
|
+
const blueapi = new conn_1.BlueAPIService(admin_pb_1.Admin, "blue", opt);
|
|
8
8
|
return blueapi.clientInstance;
|
|
9
9
|
}
|
package/admin/v1/client.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Admin } from "./admin_pb";
|
|
2
2
|
import { BlueAPIService, ConnectOption } from "../../conn/conn";
|
|
3
3
|
|
|
4
|
-
export function NewAdminClient(
|
|
5
|
-
const blueapi = new BlueAPIService(Admin, "blue",
|
|
4
|
+
export function NewAdminClient(opt?: ConnectOption) {
|
|
5
|
+
const blueapi = new BlueAPIService(Admin, "blue", opt);
|
|
6
6
|
return blueapi.clientInstance;
|
|
7
7
|
}
|
package/api/cover/budget_pb.js
CHANGED
|
@@ -9,7 +9,7 @@ const alert_pb_1 = require("./alert_pb");
|
|
|
9
9
|
/**
|
|
10
10
|
* Describes the file api/cover/budget.proto.
|
|
11
11
|
*/
|
|
12
|
-
exports.file_api_cover_budget = (0, codegenv2_1.fileDesc)("
|
|
12
|
+
exports.file_api_cover_budget = (0, codegenv2_1.fileDesc)("ChZhcGkvY292ZXIvYnVkZ2V0LnByb3RvEhFibHVlYXBpLmFwaS5jb3ZlciKaBAoKQnVkZ2V0RGF0YRIKCgJpZBgBIAEoCRIRCglzdGFydERhdGUYAiABKAkSDwoHZW5kRGF0ZRgDIAEoCRITCgt0b3RhbEJ1ZGdldBgEIAEoAhIOCgZwZXJpb2QYBSABKAMSPQoOZ3JhbnVsYXJCdWRnZXQYBiADKAsyJS5ibHVlYXBpLmFwaS5jb3Zlci5HcmFudWxhckJ1ZGdldERhdGESNAoJY29zdEdyb3VwGAcgASgLMiEuYmx1ZWFwaS5hcGkuY292ZXIuQWxlcnRDb3N0R3JvdXASLgoGYWxlcnRzGAggAygLMh4uYmx1ZWFwaS5hcGkuY292ZXIuQnVkZ2V0QWxlcnQSPwoOZm9yZWNhc3RlZERhdGEYCSADKAsyJy5ibHVlYXBpLmFwaS5jb3Zlci5HcmFudWxhckZvcmVjYXN0RGF0YRI9CgxzcGVuZGluZ0RhdGEYCiADKAsyJy5ibHVlYXBpLmFwaS5jb3Zlci5HcmFudWxhclNwZW5kaW5nRGF0YRIPCgdleHBpcmVkGAsgASgIEg0KBWRyYWZ0GAwgASgIEhEKCWNyZWF0ZWRCeRgNIAEoCRIRCgljcmVhdGVkQXQYDiABKAkSEQoJdXBkYXRlZEJ5GA8gASgJEhEKCXVwZGF0ZWRBdBgQIAEoCRISCgp0b3RhbFNwZW5kGBEgASgCEhIKCmJ1ZGdldE5hbWUYEiABKAkiMgoSR3JhbnVsYXJCdWRnZXREYXRhEgwKBGRhdGUYASABKAkSDgoGYnVkZ2V0GAIgASgCIlkKFEdyYW51bGFyRm9yZWNhc3REYXRhEgwKBGRhdGUYASABKAkSCwoDbWlkGAIgASgCEhIKCnVwcGVyQm91bmQYAyABKAISEgoKbG93ZXJCb3VuZBgEIAEoAiIzChRHcmFudWxhclNwZW5kaW5nRGF0YRIMCgRkYXRlGAEgASgJEg0KBXZhbHVlGAIgASgCInIKC0J1ZGdldEFsZXJ0Ei8KCXRocmVzaG9sZBgBIAMoCzIcLmJsdWVhcGkuYXBpLmNvdmVyLlRocmVzaG9sZBIyCghjaGFubmVscxgCIAEoCzIgLmJsdWVhcGkuYXBpLmNvdmVyLkFsZXJ0Q2hhbm5lbHMiKAoJVGhyZXNob2xkEgwKBHR5cGUYASABKAkSDQoFdmFsdWUYAiABKAJCZAofY2xvdWQuYWxwaGF1cy5ibHVlYXBpLmFwaS5jb3ZlckITQXBpQ292ZXJCdWRnZXRQcm90b1osZ2l0aHViLmNvbS9hbHBoYXVzbGFicy9ibHVlLXNkay1nby9hcGkvY292ZXJiBnByb3RvMw", [alert_pb_1.file_api_cover_alert]);
|
|
13
13
|
/**
|
|
14
14
|
* Describes the message blueapi.api.cover.BudgetData.
|
|
15
15
|
* Use `create(BudgetDataSchema)` to create a new message.
|
package/api/cover/budget_pb.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
12
12
|
* Describes the file api/cover/budget.proto.
|
|
13
13
|
*/
|
|
14
14
|
export const file_api_cover_budget: GenFile = /*@__PURE__*/
|
|
15
|
-
fileDesc("
|
|
15
|
+
fileDesc("ChZhcGkvY292ZXIvYnVkZ2V0LnByb3RvEhFibHVlYXBpLmFwaS5jb3ZlciKaBAoKQnVkZ2V0RGF0YRIKCgJpZBgBIAEoCRIRCglzdGFydERhdGUYAiABKAkSDwoHZW5kRGF0ZRgDIAEoCRITCgt0b3RhbEJ1ZGdldBgEIAEoAhIOCgZwZXJpb2QYBSABKAMSPQoOZ3JhbnVsYXJCdWRnZXQYBiADKAsyJS5ibHVlYXBpLmFwaS5jb3Zlci5HcmFudWxhckJ1ZGdldERhdGESNAoJY29zdEdyb3VwGAcgASgLMiEuYmx1ZWFwaS5hcGkuY292ZXIuQWxlcnRDb3N0R3JvdXASLgoGYWxlcnRzGAggAygLMh4uYmx1ZWFwaS5hcGkuY292ZXIuQnVkZ2V0QWxlcnQSPwoOZm9yZWNhc3RlZERhdGEYCSADKAsyJy5ibHVlYXBpLmFwaS5jb3Zlci5HcmFudWxhckZvcmVjYXN0RGF0YRI9CgxzcGVuZGluZ0RhdGEYCiADKAsyJy5ibHVlYXBpLmFwaS5jb3Zlci5HcmFudWxhclNwZW5kaW5nRGF0YRIPCgdleHBpcmVkGAsgASgIEg0KBWRyYWZ0GAwgASgIEhEKCWNyZWF0ZWRCeRgNIAEoCRIRCgljcmVhdGVkQXQYDiABKAkSEQoJdXBkYXRlZEJ5GA8gASgJEhEKCXVwZGF0ZWRBdBgQIAEoCRISCgp0b3RhbFNwZW5kGBEgASgCEhIKCmJ1ZGdldE5hbWUYEiABKAkiMgoSR3JhbnVsYXJCdWRnZXREYXRhEgwKBGRhdGUYASABKAkSDgoGYnVkZ2V0GAIgASgCIlkKFEdyYW51bGFyRm9yZWNhc3REYXRhEgwKBGRhdGUYASABKAkSCwoDbWlkGAIgASgCEhIKCnVwcGVyQm91bmQYAyABKAISEgoKbG93ZXJCb3VuZBgEIAEoAiIzChRHcmFudWxhclNwZW5kaW5nRGF0YRIMCgRkYXRlGAEgASgJEg0KBXZhbHVlGAIgASgCInIKC0J1ZGdldEFsZXJ0Ei8KCXRocmVzaG9sZBgBIAMoCzIcLmJsdWVhcGkuYXBpLmNvdmVyLlRocmVzaG9sZBIyCghjaGFubmVscxgCIAEoCzIgLmJsdWVhcGkuYXBpLmNvdmVyLkFsZXJ0Q2hhbm5lbHMiKAoJVGhyZXNob2xkEgwKBHR5cGUYASABKAkSDQoFdmFsdWUYAiABKAJCZAofY2xvdWQuYWxwaGF1cy5ibHVlYXBpLmFwaS5jb3ZlckITQXBpQ292ZXJCdWRnZXRQcm90b1osZ2l0aHViLmNvbS9hbHBoYXVzbGFicy9ibHVlLXNkay1nby9hcGkvY292ZXJiBnByb3RvMw", [file_api_cover_alert]);
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @generated from message blueapi.api.cover.BudgetData
|
|
@@ -132,6 +132,13 @@ export type BudgetData = Message<"blueapi.api.cover.BudgetData"> & {
|
|
|
132
132
|
* @generated from field: float totalSpend = 17;
|
|
133
133
|
*/
|
|
134
134
|
totalSpend: number;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* name of the budget
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: string budgetName = 18;
|
|
140
|
+
*/
|
|
141
|
+
budgetName: string;
|
|
135
142
|
};
|
|
136
143
|
|
|
137
144
|
/**
|
|
@@ -3,14 +3,34 @@
|
|
|
3
3
|
// @generated from file api/cover/costforecast.proto (package blueapi.api.cover, syntax proto3)
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AwsCostForecastSchema = exports.file_api_cover_costforecast = void 0;
|
|
6
|
+
exports.CostForecastAdjustmentSchema = exports.ExternalAdjustmentSchema = exports.CostForecastDetailsSchema = exports.CostGroupSchema = exports.AwsCostForecastSchema = exports.file_api_cover_costforecast = void 0;
|
|
7
7
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
8
8
|
/**
|
|
9
9
|
* Describes the file api/cover/costforecast.proto.
|
|
10
10
|
*/
|
|
11
|
-
exports.file_api_cover_costforecast = (0, codegenv2_1.fileDesc)("
|
|
11
|
+
exports.file_api_cover_costforecast = (0, codegenv2_1.fileDesc)("ChxhcGkvY292ZXIvY29zdGZvcmVjYXN0LnByb3RvEhFibHVlYXBpLmFwaS5jb3ZlciLMAQoPQXdzQ29zdEZvcmVjYXN0EgwKBGRhdGUYASABKAkSDwoHYWNjb3VudBgCIAEoCRITCgtwcm9kdWN0Q29kZRgDIAEoCRIMCgRjb3N0GAQgASgBEhIKCmxvd2VyQm91bmQYBSABKAESEgoKdXBwZXJCb3VuZBgGIAEoARIVCg11bmJsZW5kZWRDb3N0GAcgASgBEhsKE3VuYmxlbmRlZExvd2VyQm91bmQYCCABKAESGwoTdW5ibGVuZGVkVXBwZXJCb3VuZBgJIAEoASIlCglDb3N0R3JvdXASCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCSLjAQoTQ29zdEZvcmVjYXN0RGV0YWlscxIKCgJpZBgBIAEoCRIUCgxmb3JlY2FzdE5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSLwoJY29zdGdyb3VwGAQgASgLMhwuYmx1ZWFwaS5hcGkuY292ZXIuQ29zdEdyb3VwEhEKCXN0YXJ0RGF0ZRgFIAEoCRIPCgdlbmREYXRlGAYgASgJEhEKCWNyZWF0ZWRCeRgHIAEoCRIUCgxjcmVhdGlvbkRhdGUYCCABKAkSFwoPbGFzdFVwZGF0ZWREYXRlGAkgASgJIoMBChJFeHRlcm5hbEFkanVzdG1lbnQSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRI+CgthZGp1c3RtZW50cxgEIAMoCzIpLmJsdWVhcGkuYXBpLmNvdmVyLkNvc3RGb3JlY2FzdEFkanVzdG1lbnQiOwoWQ29zdEZvcmVjYXN0QWRqdXN0bWVudBINCgVtb250aBgBIAEoCRISCgphZGp1c3RtZW50GAIgASgBQmoKH2Nsb3VkLmFscGhhdXMuYmx1ZWFwaS5hcGkuY292ZXJCGUFwaUNvdmVyQ29zdEZvcmVjYXN0UHJvdG9aLGdpdGh1Yi5jb20vYWxwaGF1c2xhYnMvYmx1ZS1zZGstZ28vYXBpL2NvdmVyYgZwcm90bzM");
|
|
12
12
|
/**
|
|
13
13
|
* Describes the message blueapi.api.cover.AwsCostForecast.
|
|
14
14
|
* Use `create(AwsCostForecastSchema)` to create a new message.
|
|
15
15
|
*/
|
|
16
16
|
exports.AwsCostForecastSchema = (0, codegenv2_1.messageDesc)(exports.file_api_cover_costforecast, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message blueapi.api.cover.CostGroup.
|
|
19
|
+
* Use `create(CostGroupSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
exports.CostGroupSchema = (0, codegenv2_1.messageDesc)(exports.file_api_cover_costforecast, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message blueapi.api.cover.CostForecastDetails.
|
|
24
|
+
* Use `create(CostForecastDetailsSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
exports.CostForecastDetailsSchema = (0, codegenv2_1.messageDesc)(exports.file_api_cover_costforecast, 2);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message blueapi.api.cover.ExternalAdjustment.
|
|
29
|
+
* Use `create(ExternalAdjustmentSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
exports.ExternalAdjustmentSchema = (0, codegenv2_1.messageDesc)(exports.file_api_cover_costforecast, 3);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message blueapi.api.cover.CostForecastAdjustment.
|
|
34
|
+
* Use `create(CostForecastAdjustmentSchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
exports.CostForecastAdjustmentSchema = (0, codegenv2_1.messageDesc)(exports.file_api_cover_costforecast, 4);
|
|
@@ -10,7 +10,7 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
10
10
|
* Describes the file api/cover/costforecast.proto.
|
|
11
11
|
*/
|
|
12
12
|
export const file_api_cover_costforecast: GenFile = /*@__PURE__*/
|
|
13
|
-
fileDesc("
|
|
13
|
+
fileDesc("ChxhcGkvY292ZXIvY29zdGZvcmVjYXN0LnByb3RvEhFibHVlYXBpLmFwaS5jb3ZlciLMAQoPQXdzQ29zdEZvcmVjYXN0EgwKBGRhdGUYASABKAkSDwoHYWNjb3VudBgCIAEoCRITCgtwcm9kdWN0Q29kZRgDIAEoCRIMCgRjb3N0GAQgASgBEhIKCmxvd2VyQm91bmQYBSABKAESEgoKdXBwZXJCb3VuZBgGIAEoARIVCg11bmJsZW5kZWRDb3N0GAcgASgBEhsKE3VuYmxlbmRlZExvd2VyQm91bmQYCCABKAESGwoTdW5ibGVuZGVkVXBwZXJCb3VuZBgJIAEoASIlCglDb3N0R3JvdXASCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCSLjAQoTQ29zdEZvcmVjYXN0RGV0YWlscxIKCgJpZBgBIAEoCRIUCgxmb3JlY2FzdE5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSLwoJY29zdGdyb3VwGAQgASgLMhwuYmx1ZWFwaS5hcGkuY292ZXIuQ29zdEdyb3VwEhEKCXN0YXJ0RGF0ZRgFIAEoCRIPCgdlbmREYXRlGAYgASgJEhEKCWNyZWF0ZWRCeRgHIAEoCRIUCgxjcmVhdGlvbkRhdGUYCCABKAkSFwoPbGFzdFVwZGF0ZWREYXRlGAkgASgJIoMBChJFeHRlcm5hbEFkanVzdG1lbnQSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRITCgtkZXNjcmlwdGlvbhgDIAEoCRI+CgthZGp1c3RtZW50cxgEIAMoCzIpLmJsdWVhcGkuYXBpLmNvdmVyLkNvc3RGb3JlY2FzdEFkanVzdG1lbnQiOwoWQ29zdEZvcmVjYXN0QWRqdXN0bWVudBINCgVtb250aBgBIAEoCRISCgphZGp1c3RtZW50GAIgASgBQmoKH2Nsb3VkLmFscGhhdXMuYmx1ZWFwaS5hcGkuY292ZXJCGUFwaUNvdmVyQ29zdEZvcmVjYXN0UHJvdG9aLGdpdGh1Yi5jb20vYWxwaGF1c2xhYnMvYmx1ZS1zZGstZ28vYXBpL2NvdmVyYgZwcm90bzM");
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* @generated from message blueapi.api.cover.AwsCostForecast
|
|
@@ -79,3 +79,142 @@ export type AwsCostForecast = Message<"blueapi.api.cover.AwsCostForecast"> & {
|
|
|
79
79
|
export const AwsCostForecastSchema: GenMessage<AwsCostForecast> = /*@__PURE__*/
|
|
80
80
|
messageDesc(file_api_cover_costforecast, 0);
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* @generated from message blueapi.api.cover.CostGroup
|
|
84
|
+
*/
|
|
85
|
+
export type CostGroup = Message<"blueapi.api.cover.CostGroup"> & {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string id = 1;
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* cost group name
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: string name = 2;
|
|
95
|
+
*/
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Describes the message blueapi.api.cover.CostGroup.
|
|
101
|
+
* Use `create(CostGroupSchema)` to create a new message.
|
|
102
|
+
*/
|
|
103
|
+
export const CostGroupSchema: GenMessage<CostGroup> = /*@__PURE__*/
|
|
104
|
+
messageDesc(file_api_cover_costforecast, 1);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from message blueapi.api.cover.CostForecastDetails
|
|
108
|
+
*/
|
|
109
|
+
export type CostForecastDetails = Message<"blueapi.api.cover.CostForecastDetails"> & {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string id = 1;
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string forecastName = 2;
|
|
117
|
+
*/
|
|
118
|
+
forecastName: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string description = 3;
|
|
122
|
+
*/
|
|
123
|
+
description: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: blueapi.api.cover.CostGroup costgroup = 4;
|
|
127
|
+
*/
|
|
128
|
+
costgroup?: CostGroup;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: string startDate = 5;
|
|
132
|
+
*/
|
|
133
|
+
startDate: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: string endDate = 6;
|
|
137
|
+
*/
|
|
138
|
+
endDate: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: string createdBy = 7;
|
|
142
|
+
*/
|
|
143
|
+
createdBy: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @generated from field: string creationDate = 8;
|
|
147
|
+
*/
|
|
148
|
+
creationDate: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: string lastUpdatedDate = 9;
|
|
152
|
+
*/
|
|
153
|
+
lastUpdatedDate: string;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Describes the message blueapi.api.cover.CostForecastDetails.
|
|
158
|
+
* Use `create(CostForecastDetailsSchema)` to create a new message.
|
|
159
|
+
*/
|
|
160
|
+
export const CostForecastDetailsSchema: GenMessage<CostForecastDetails> = /*@__PURE__*/
|
|
161
|
+
messageDesc(file_api_cover_costforecast, 2);
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @generated from message blueapi.api.cover.ExternalAdjustment
|
|
165
|
+
*/
|
|
166
|
+
export type ExternalAdjustment = Message<"blueapi.api.cover.ExternalAdjustment"> & {
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: string id = 1;
|
|
169
|
+
*/
|
|
170
|
+
id: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Name of the adjustment
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: string name = 2;
|
|
176
|
+
*/
|
|
177
|
+
name: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string description = 3;
|
|
181
|
+
*/
|
|
182
|
+
description: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: repeated blueapi.api.cover.CostForecastAdjustment adjustments = 4;
|
|
186
|
+
*/
|
|
187
|
+
adjustments: CostForecastAdjustment[];
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Describes the message blueapi.api.cover.ExternalAdjustment.
|
|
192
|
+
* Use `create(ExternalAdjustmentSchema)` to create a new message.
|
|
193
|
+
*/
|
|
194
|
+
export const ExternalAdjustmentSchema: GenMessage<ExternalAdjustment> = /*@__PURE__*/
|
|
195
|
+
messageDesc(file_api_cover_costforecast, 3);
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @generated from message blueapi.api.cover.CostForecastAdjustment
|
|
199
|
+
*/
|
|
200
|
+
export type CostForecastAdjustment = Message<"blueapi.api.cover.CostForecastAdjustment"> & {
|
|
201
|
+
/**
|
|
202
|
+
* For monthly adjustment, format is yyyy-mm.
|
|
203
|
+
*
|
|
204
|
+
* @generated from field: string month = 1;
|
|
205
|
+
*/
|
|
206
|
+
month: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: double adjustment = 2;
|
|
210
|
+
*/
|
|
211
|
+
adjustment: number;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Describes the message blueapi.api.cover.CostForecastAdjustment.
|
|
216
|
+
* Use `create(CostForecastAdjustmentSchema)` to create a new message.
|
|
217
|
+
*/
|
|
218
|
+
export const CostForecastAdjustmentSchema: GenMessage<CostForecastAdjustment> = /*@__PURE__*/
|
|
219
|
+
messageDesc(file_api_cover_costforecast, 4);
|
|
220
|
+
|