@scalekit-sdk/node 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +49 -0
- package/buf.gen.yaml +14 -0
- package/lib/connect.d.ts +9 -0
- package/lib/connect.js +31 -0
- package/lib/connect.js.map +1 -0
- package/lib/connection.d.ts +28 -0
- package/lib/connection.js +68 -0
- package/lib/connection.js.map +1 -0
- package/lib/constants/user.d.ts +4 -0
- package/lib/constants/user.js +24 -0
- package/lib/constants/user.js.map +1 -0
- package/lib/core.d.ts +37 -0
- package/lib/core.js +160 -0
- package/lib/core.js.map +1 -0
- package/lib/domain.d.ts +33 -0
- package/lib/domain.js +74 -0
- package/lib/domain.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -0
- package/lib/organization.d.ts +64 -0
- package/lib/organization.js +116 -0
- package/lib/organization.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +20 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +36 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +73 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +81 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1252 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +1536 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +55 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +63 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +394 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +469 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +245 -0
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +369 -0
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +98 -0
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +135 -0
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +92 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +100 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +424 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +559 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -0
- package/lib/scalekit.d.ts +60 -0
- package/lib/scalekit.js +140 -0
- package/lib/scalekit.js.map +1 -0
- package/lib/types/scalekit.d.ts +26 -0
- package/lib/types/scalekit.js +10 -0
- package/lib/types/scalekit.js.map +1 -0
- package/lib/types/user.d.ts +56 -0
- package/lib/types/user.js +3 -0
- package/lib/types/user.js.map +1 -0
- package/package.json +45 -0
- package/src/connect.ts +33 -0
- package/src/connection.ts +69 -0
- package/src/constants/user.ts +22 -0
- package/src/core.ts +127 -0
- package/src/domain.ts +75 -0
- package/src/index.ts +7 -0
- package/src/organization.ts +129 -0
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +36 -0
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +80 -0
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +2138 -0
- package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +62 -0
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +687 -0
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +461 -0
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +156 -0
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +99 -0
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +774 -0
- package/src/scalekit.ts +155 -0
- package/src/types/scalekit.ts +30 -0
- package/src/types/user.ts +59 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { PartialMessage } from '@bufbuild/protobuf';
|
|
2
|
+
import GrpcConnect from './connect';
|
|
3
|
+
import CoreClient from './core';
|
|
4
|
+
import { CreateOrganizationResponse, GetOrganizationResponse, ListOrganizationsResponse, UpdateOrganization, UpdateOrganizationResponse } from './pkg/grpc/scalekit/v1/organizations/organizations_pb';
|
|
5
|
+
export default class OrganizationClient {
|
|
6
|
+
private readonly grpcConncet;
|
|
7
|
+
private readonly coreClient;
|
|
8
|
+
private client;
|
|
9
|
+
constructor(grpcConncet: GrpcConnect, coreClient: CoreClient);
|
|
10
|
+
/**
|
|
11
|
+
* Create an organization with the given name. Optionally, you can provide an external id.
|
|
12
|
+
* @param {object} options The options to create an organization
|
|
13
|
+
* @param {string} options.name The organization name
|
|
14
|
+
* @param {string} options.externalId The external id
|
|
15
|
+
* @returns {Promise<CreateOrganizationResponse>} The created organization
|
|
16
|
+
*/
|
|
17
|
+
createOrganization(options: {
|
|
18
|
+
name: string;
|
|
19
|
+
externalId?: string;
|
|
20
|
+
}): Promise<CreateOrganizationResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List organizations with pagination
|
|
23
|
+
* @param {object} options The options to list organizations
|
|
24
|
+
* @param {number} options.pageSize The page size
|
|
25
|
+
* @param {string} options.pageToken The page token
|
|
26
|
+
* @returns {Promise<ListOrganizationResponse>} The list of organizations
|
|
27
|
+
*/
|
|
28
|
+
listOrganization(options?: {
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
pageToken?: string;
|
|
31
|
+
}): Promise<ListOrganizationsResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* Get an organization by id
|
|
34
|
+
* @param {string} id The organization id
|
|
35
|
+
* @returns {Promise<GetOrganizationResponse>} The organization
|
|
36
|
+
*/
|
|
37
|
+
getOrganization(id: string): Promise<GetOrganizationResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Get an organization by external id
|
|
40
|
+
* @param {string} externalId The external id
|
|
41
|
+
* @returns {Promise<GetOrganizationResponse>} The organization
|
|
42
|
+
*/
|
|
43
|
+
getOrganizationByExternalId(externalId: string): Promise<GetOrganizationResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Update an organization by id
|
|
46
|
+
* @param {string} id The organization id
|
|
47
|
+
* @param {PartialMessage<UpdateOrganization>} organization The organization to update
|
|
48
|
+
* @returns {Promise<UpdateOrganizationResponse>} The updated organization
|
|
49
|
+
*/
|
|
50
|
+
updateOrganization(id: string, organization: PartialMessage<UpdateOrganization>): Promise<UpdateOrganizationResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Update an organization by external id
|
|
53
|
+
* @param {string} externalId The external id
|
|
54
|
+
* @param {PartialMessage<UpdateOrganization>} organization The organization to update
|
|
55
|
+
* @returns {Promise<UpdateOrganizationResponse>} The updated organization
|
|
56
|
+
*/
|
|
57
|
+
updateOrganizationByExternalId(externalId: string, organization: PartialMessage<UpdateOrganization>): Promise<UpdateOrganizationResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Generate customer portal link for an organization
|
|
60
|
+
* @param organizationId The organization id
|
|
61
|
+
* @returns {Promise<string>} The customer portal link
|
|
62
|
+
*/
|
|
63
|
+
generateCustomerPortalLink(organizationId: string): Promise<string>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const organizations_connect_1 = require("./pkg/grpc/scalekit/v1/organizations/organizations_connect");
|
|
13
|
+
class OrganizationClient {
|
|
14
|
+
constructor(grpcConncet, coreClient) {
|
|
15
|
+
this.grpcConncet = grpcConncet;
|
|
16
|
+
this.coreClient = coreClient;
|
|
17
|
+
this.client = this.grpcConncet.createClient(organizations_connect_1.OrganizationService);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create an organization with the given name. Optionally, you can provide an external id.
|
|
21
|
+
* @param {object} options The options to create an organization
|
|
22
|
+
* @param {string} options.name The organization name
|
|
23
|
+
* @param {string} options.externalId The external id
|
|
24
|
+
* @returns {Promise<CreateOrganizationResponse>} The created organization
|
|
25
|
+
*/
|
|
26
|
+
createOrganization(options) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const { name, externalId } = options;
|
|
29
|
+
return this.coreClient.connectExec(this.client.createOrganization, {
|
|
30
|
+
organization: {
|
|
31
|
+
displayName: name,
|
|
32
|
+
externalId: externalId
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* List organizations with pagination
|
|
39
|
+
* @param {object} options The options to list organizations
|
|
40
|
+
* @param {number} options.pageSize The page size
|
|
41
|
+
* @param {string} options.pageToken The page token
|
|
42
|
+
* @returns {Promise<ListOrganizationResponse>} The list of organizations
|
|
43
|
+
*/
|
|
44
|
+
listOrganization(options) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
return this.coreClient.connectExec(this.client.listOrganization, options ? options : {});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get an organization by id
|
|
51
|
+
* @param {string} id The organization id
|
|
52
|
+
* @returns {Promise<GetOrganizationResponse>} The organization
|
|
53
|
+
*/
|
|
54
|
+
getOrganization(id) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return this.coreClient.connectExec(this.client.getOrganization, { identities: { case: 'id', value: id } });
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get an organization by external id
|
|
61
|
+
* @param {string} externalId The external id
|
|
62
|
+
* @returns {Promise<GetOrganizationResponse>} The organization
|
|
63
|
+
*/
|
|
64
|
+
getOrganizationByExternalId(externalId) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
return this.coreClient.connectExec(this.client.getOrganization, { identities: { case: 'externalId', value: externalId } });
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Update an organization by id
|
|
71
|
+
* @param {string} id The organization id
|
|
72
|
+
* @param {PartialMessage<UpdateOrganization>} organization The organization to update
|
|
73
|
+
* @returns {Promise<UpdateOrganizationResponse>} The updated organization
|
|
74
|
+
*/
|
|
75
|
+
updateOrganization(id, organization) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
return this.coreClient.connectExec(this.client.updateOrganization, {
|
|
78
|
+
identities: { case: "id", value: id },
|
|
79
|
+
organization
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Update an organization by external id
|
|
85
|
+
* @param {string} externalId The external id
|
|
86
|
+
* @param {PartialMessage<UpdateOrganization>} organization The organization to update
|
|
87
|
+
* @returns {Promise<UpdateOrganizationResponse>} The updated organization
|
|
88
|
+
*/
|
|
89
|
+
updateOrganizationByExternalId(externalId, organization) {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
return this.coreClient.connectExec(this.client.updateOrganization, {
|
|
92
|
+
identities: { case: "externalId", value: externalId, },
|
|
93
|
+
organization
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Generate customer portal link for an organization
|
|
99
|
+
* @param organizationId The organization id
|
|
100
|
+
* @returns {Promise<string>} The customer portal link
|
|
101
|
+
*/
|
|
102
|
+
generateCustomerPortalLink(organizationId) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
var _a;
|
|
105
|
+
const response = yield this.coreClient.connectExec(this.client.generateCustomerPortalLink, {
|
|
106
|
+
id: organizationId
|
|
107
|
+
});
|
|
108
|
+
if (!response.link) {
|
|
109
|
+
throw new Error('Error generating customer portal link');
|
|
110
|
+
}
|
|
111
|
+
return (_a = response.link) === null || _a === void 0 ? void 0 : _a.location;
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.default = OrganizationClient;
|
|
116
|
+
//# sourceMappingURL=organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../src/organization.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,sGAAiG;AAGjG,MAAqB,kBAAkB;IAErC,YACmB,WAAwB,EACxB,UAAsB;QADtB,gBAAW,GAAX,WAAW,CAAa;QACxB,eAAU,GAAV,UAAU,CAAY;QAEvC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,2CAAmB,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;MAME;IACI,kBAAkB,CAAC,OAA8C;;YACrE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;YACrC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAC9B;gBACE,YAAY,EAAE;oBACZ,WAAW,EAAE,IAAI;oBACjB,UAAU,EAAE,UAAU;iBACvB;aACF,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;OAMG;IACG,gBAAgB,CAAC,OAGtB;;YACC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAC5B,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CACvB,CAAA;QACH,CAAC;KAAA;IAED;;;;OAIG;IACG,eAAe,CAAC,EAAU;;YAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,eAAe,EAC3B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,CAC1C,CAAA;QACH,CAAC;KAAA;IAED;;;;OAIG;IACG,2BAA2B,CAAC,UAAkB;;YAClD,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,eAAe,EAC3B,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,CAC1D,CAAA;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACG,kBAAkB,CAAC,EAAU,EAAE,YAAgD;;YACnF,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAC9B;gBACE,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;gBACrC,YAAY;aACb,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;OAKG;IACG,8BAA8B,CAAC,UAAkB,EAAE,YAAgD;;YACvG,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAChC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAC9B;gBACE,UAAU,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU,GAAG;gBACtD,YAAY;aACb,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;OAIG;IACG,0BAA0B,CAAC,cAAsB;;;YACrD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,CAChD,IAAI,CAAC,MAAM,CAAC,0BAA0B,EACtC;gBACE,EAAE,EAAE,cAAc;aACnB,CACF,CAAA;YACD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;YAC3D,CAAC;YAED,OAAO,MAAA,QAAQ,CAAC,IAAI,0CAAE,QAAQ,CAAA;QAChC,CAAC;KAAA;CACF;AAxHD,qCAwHC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @generated from enum scalekit.v1.commons.RegionCode
|
|
3
|
+
*/
|
|
4
|
+
export declare enum RegionCode {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* If the region code is unspecified the selected region will automatically be decided based on the origin of the call.
|
|
8
|
+
*
|
|
9
|
+
* @generated from enum value: REGION_CODE_UNSPECIFIED = 0;
|
|
10
|
+
*/
|
|
11
|
+
REGION_CODE_UNSPECIFIED = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: US = 1;
|
|
14
|
+
*/
|
|
15
|
+
US = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: EU = 2;
|
|
18
|
+
*/
|
|
19
|
+
EU = 2
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
|
|
3
|
+
// @generated from file scalekit/v1/commons/commons.proto (package scalekit.v1.commons, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.RegionCode = void 0;
|
|
8
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum scalekit.v1.commons.RegionCode
|
|
11
|
+
*/
|
|
12
|
+
var RegionCode;
|
|
13
|
+
(function (RegionCode) {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* If the region code is unspecified the selected region will automatically be decided based on the origin of the call.
|
|
17
|
+
*
|
|
18
|
+
* @generated from enum value: REGION_CODE_UNSPECIFIED = 0;
|
|
19
|
+
*/
|
|
20
|
+
RegionCode[RegionCode["REGION_CODE_UNSPECIFIED"] = 0] = "REGION_CODE_UNSPECIFIED";
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum value: US = 1;
|
|
23
|
+
*/
|
|
24
|
+
RegionCode[RegionCode["US"] = 1] = "US";
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: EU = 2;
|
|
27
|
+
*/
|
|
28
|
+
RegionCode[RegionCode["EU"] = 2] = "EU";
|
|
29
|
+
})(RegionCode || (exports.RegionCode = RegionCode = {}));
|
|
30
|
+
// Retrieve enum metadata with: proto3.getEnumType(RegionCode)
|
|
31
|
+
protobuf_1.proto3.util.setEnumType(RegionCode, "scalekit.v1.commons.RegionCode", [
|
|
32
|
+
{ no: 0, name: "REGION_CODE_UNSPECIFIED" },
|
|
33
|
+
{ no: 1, name: "US" },
|
|
34
|
+
{ no: 2, name: "EU" },
|
|
35
|
+
]);
|
|
36
|
+
//# sourceMappingURL=commons_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commons_pb.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/commons/commons_pb.ts"],"names":[],"mappings":";AAAA,gEAAgE;AAChE,sGAAsG;AACtG,oBAAoB;AACpB,cAAc;;;AAEd,iDAA4C;AAE5C;;GAEG;AACH,IAAY,UAkBX;AAlBD,WAAY,UAAU;IACpB;;;;;OAKG;IACH,iFAA2B,CAAA;IAE3B;;OAEG;IACH,uCAAM,CAAA;IAEN;;OAEG;IACH,uCAAM,CAAA;AACR,CAAC,EAlBW,UAAU,0BAAV,UAAU,QAkBrB;AACD,8DAA8D;AAC9D,iBAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,gCAAgC,EAAE;IACpE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,yBAAyB,EAAE;IAC1C,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE;IACrB,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { CreateConnectionRequest, CreateConnectionResponse, DeleteConnectionRequest, DisableConnectionRequest, EnableConnectionRequest, GetConnectionRequest, GetConnectionResponse, ListConnectionsRequest, ListConnectionsResponse, ToggleConnectionResponse, UpdateConnectionRequest, UpdateConnectionResponse } from "./connections_pb.js";
|
|
2
|
+
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from service scalekit.v1.connections.ConnectionService
|
|
5
|
+
*/
|
|
6
|
+
export declare const ConnectionService: {
|
|
7
|
+
readonly typeName: "scalekit.v1.connections.ConnectionService";
|
|
8
|
+
readonly methods: {
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.CreateConnection
|
|
11
|
+
*/
|
|
12
|
+
readonly createConnection: {
|
|
13
|
+
readonly name: "CreateConnection";
|
|
14
|
+
readonly I: typeof CreateConnectionRequest;
|
|
15
|
+
readonly O: typeof CreateConnectionResponse;
|
|
16
|
+
readonly kind: MethodKind.Unary;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.GetConnection
|
|
20
|
+
*/
|
|
21
|
+
readonly getConnection: {
|
|
22
|
+
readonly name: "GetConnection";
|
|
23
|
+
readonly I: typeof GetConnectionRequest;
|
|
24
|
+
readonly O: typeof GetConnectionResponse;
|
|
25
|
+
readonly kind: MethodKind.Unary;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.ListConnections
|
|
29
|
+
*/
|
|
30
|
+
readonly listConnections: {
|
|
31
|
+
readonly name: "ListConnections";
|
|
32
|
+
readonly I: typeof ListConnectionsRequest;
|
|
33
|
+
readonly O: typeof ListConnectionsResponse;
|
|
34
|
+
readonly kind: MethodKind.Unary;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.UpdateConnection
|
|
38
|
+
*/
|
|
39
|
+
readonly updateConnection: {
|
|
40
|
+
readonly name: "UpdateConnection";
|
|
41
|
+
readonly I: typeof UpdateConnectionRequest;
|
|
42
|
+
readonly O: typeof UpdateConnectionResponse;
|
|
43
|
+
readonly kind: MethodKind.Unary;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.DeleteConnection
|
|
47
|
+
*/
|
|
48
|
+
readonly deleteConnection: {
|
|
49
|
+
readonly name: "DeleteConnection";
|
|
50
|
+
readonly I: typeof DeleteConnectionRequest;
|
|
51
|
+
readonly O: typeof Empty;
|
|
52
|
+
readonly kind: MethodKind.Unary;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.EnableConnection
|
|
56
|
+
*/
|
|
57
|
+
readonly enableConnection: {
|
|
58
|
+
readonly name: "EnableConnection";
|
|
59
|
+
readonly I: typeof EnableConnectionRequest;
|
|
60
|
+
readonly O: typeof ToggleConnectionResponse;
|
|
61
|
+
readonly kind: MethodKind.Unary;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.DisableConnection
|
|
65
|
+
*/
|
|
66
|
+
readonly disableConnection: {
|
|
67
|
+
readonly name: "DisableConnection";
|
|
68
|
+
readonly I: typeof DisableConnectionRequest;
|
|
69
|
+
readonly O: typeof ToggleConnectionResponse;
|
|
70
|
+
readonly kind: MethodKind.Unary;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
3
|
+
// @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ConnectionService = void 0;
|
|
8
|
+
const connections_pb_js_1 = require("./connections_pb.js");
|
|
9
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
10
|
+
/**
|
|
11
|
+
* @generated from service scalekit.v1.connections.ConnectionService
|
|
12
|
+
*/
|
|
13
|
+
exports.ConnectionService = {
|
|
14
|
+
typeName: "scalekit.v1.connections.ConnectionService",
|
|
15
|
+
methods: {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.CreateConnection
|
|
18
|
+
*/
|
|
19
|
+
createConnection: {
|
|
20
|
+
name: "CreateConnection",
|
|
21
|
+
I: connections_pb_js_1.CreateConnectionRequest,
|
|
22
|
+
O: connections_pb_js_1.CreateConnectionResponse,
|
|
23
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
24
|
+
},
|
|
25
|
+
/**
|
|
26
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.GetConnection
|
|
27
|
+
*/
|
|
28
|
+
getConnection: {
|
|
29
|
+
name: "GetConnection",
|
|
30
|
+
I: connections_pb_js_1.GetConnectionRequest,
|
|
31
|
+
O: connections_pb_js_1.GetConnectionResponse,
|
|
32
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.ListConnections
|
|
36
|
+
*/
|
|
37
|
+
listConnections: {
|
|
38
|
+
name: "ListConnections",
|
|
39
|
+
I: connections_pb_js_1.ListConnectionsRequest,
|
|
40
|
+
O: connections_pb_js_1.ListConnectionsResponse,
|
|
41
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.UpdateConnection
|
|
45
|
+
*/
|
|
46
|
+
updateConnection: {
|
|
47
|
+
name: "UpdateConnection",
|
|
48
|
+
I: connections_pb_js_1.UpdateConnectionRequest,
|
|
49
|
+
O: connections_pb_js_1.UpdateConnectionResponse,
|
|
50
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.DeleteConnection
|
|
54
|
+
*/
|
|
55
|
+
deleteConnection: {
|
|
56
|
+
name: "DeleteConnection",
|
|
57
|
+
I: connections_pb_js_1.DeleteConnectionRequest,
|
|
58
|
+
O: protobuf_1.Empty,
|
|
59
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.EnableConnection
|
|
63
|
+
*/
|
|
64
|
+
enableConnection: {
|
|
65
|
+
name: "EnableConnection",
|
|
66
|
+
I: connections_pb_js_1.EnableConnectionRequest,
|
|
67
|
+
O: connections_pb_js_1.ToggleConnectionResponse,
|
|
68
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* @generated from rpc scalekit.v1.connections.ConnectionService.DisableConnection
|
|
72
|
+
*/
|
|
73
|
+
disableConnection: {
|
|
74
|
+
name: "DisableConnection",
|
|
75
|
+
I: connections_pb_js_1.DisableConnectionRequest,
|
|
76
|
+
O: connections_pb_js_1.ToggleConnectionResponse,
|
|
77
|
+
kind: protobuf_1.MethodKind.Unary,
|
|
78
|
+
},
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=connections_connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections_connect.js","sourceRoot":"","sources":["../../../../../../src/pkg/grpc/scalekit/v1/connections/connections_connect.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,kHAAkH;AAClH,oBAAoB;AACpB,cAAc;;;AAEd,2DAA+U;AAC/U,iDAAuD;AAEvD;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,2CAA2C;IACrD,OAAO,EAAE;QACP;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,aAAa,EAAE;YACb,IAAI,EAAE,eAAe;YACrB,CAAC,EAAE,wCAAoB;YACvB,CAAC,EAAE,yCAAqB;YACxB,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,iBAAiB;YACvB,CAAC,EAAE,0CAAsB;YACzB,CAAC,EAAE,2CAAuB;YAC1B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,gBAAK;YACR,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,gBAAgB,EAAE;YAChB,IAAI,EAAE,kBAAkB;YACxB,CAAC,EAAE,2CAAuB;YAC1B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;QACD;;WAEG;QACH,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;YACzB,CAAC,EAAE,4CAAwB;YAC3B,CAAC,EAAE,4CAAwB;YAC3B,IAAI,EAAE,qBAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
|