@lansweeper/multitenant-api-grpc 0.4.7 → 0.4.9
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/CHANGELOG.md +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/multitenant_grpc_pb.d.ts +17 -0
- package/gen-proto/multitenant_grpc_pb.js +33 -0
- package/gen-proto/multitenant_pb.d.ts +96 -0
- package/gen-proto/multitenant_pb.js +746 -16
- package/package.json +2 -2
- package/proto/multitenant.proto +31 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lansweeper/multitenant-api-grpc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Multitenant grpc",
|
|
5
5
|
"main": "gen-proto/index.js",
|
|
6
6
|
"types": "gen-proto/index.d.ts",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@grpc/grpc-js": "^1.6.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "52f9abb1e7bbaba4f0b3077c8c364593257a2b77"
|
|
19
19
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -322,6 +322,35 @@ message CheckManagerInApplicationResponse {
|
|
|
322
322
|
bool is_manager = 1;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
+
enum SubscriptionType {
|
|
326
|
+
SUBSCRIPTION_TYPE_VALUE_UNESPECIFIED = 0;
|
|
327
|
+
SUBSCRIPTION_TYPE_VALUE_TRIAL = 1;
|
|
328
|
+
SUBSCRIPTION_TYPE_VALUE_FREEWARE = 2;
|
|
329
|
+
SUBSCRIPTION_TYPE_VALUE_STARTER = 3;
|
|
330
|
+
SUBSCRIPTION_TYPE_VALUE_PRO = 4;
|
|
331
|
+
SUBSCRIPTION_TYPE_VALUE_ENTERPRISE = 5;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
message Subscription {
|
|
335
|
+
string id = 1;
|
|
336
|
+
string site_id = 2;
|
|
337
|
+
SubscriptionType type = 3;
|
|
338
|
+
int32 assets_limit = 4;
|
|
339
|
+
string expiration_date = 5;
|
|
340
|
+
string created_at = 6;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
message UpdateSiteSubscriptionRequest {
|
|
344
|
+
string site_id = 1;
|
|
345
|
+
SubscriptionType type = 2;
|
|
346
|
+
int32 assets_limit = 3;
|
|
347
|
+
string expiration_date = 4;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
message UpdateSiteSubscriptionResponse {
|
|
351
|
+
Subscription subscription = 1;
|
|
352
|
+
}
|
|
353
|
+
|
|
325
354
|
service Multitenant {
|
|
326
355
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
327
356
|
|
|
@@ -362,4 +391,6 @@ service Multitenant {
|
|
|
362
391
|
rpc GetAccountIdsBySiteId(GetAccountIdsBySiteIdRequest) returns (GetAccountIdsBySiteIdResponse) {}
|
|
363
392
|
|
|
364
393
|
rpc CheckManagerInApplication(CheckManagerInApplicationRequest) returns (CheckManagerInApplicationResponse) {}
|
|
394
|
+
|
|
395
|
+
rpc UpdateSiteSubscription(UpdateSiteSubscriptionRequest) returns (UpdateSiteSubscriptionResponse) {}
|
|
365
396
|
}
|