@lansweeper/multitenant-api-grpc 0.4.7 → 0.4.8
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 +8 -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 +93 -0
- package/gen-proto/multitenant_pb.js +716 -16
- package/package.json +2 -2
- package/proto/multitenant.proto +30 -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.8",
|
|
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": "ea9e0fe9c8338465129f89a01efb6b476dbb67ff"
|
|
19
19
|
}
|
package/proto/multitenant.proto
CHANGED
|
@@ -322,6 +322,34 @@ 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
|
+
}
|
|
341
|
+
|
|
342
|
+
message UpdateSiteSubscriptionRequest {
|
|
343
|
+
string site_id = 1;
|
|
344
|
+
SubscriptionType type = 2;
|
|
345
|
+
int32 assets_limit = 3;
|
|
346
|
+
string expiration_date = 4;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
message UpdateSiteSubscriptionResponse {
|
|
350
|
+
Subscription subscription = 1;
|
|
351
|
+
}
|
|
352
|
+
|
|
325
353
|
service Multitenant {
|
|
326
354
|
rpc CheckAccessToSiteByAccountId(CheckAccessToSiteByAccountIdRequest) returns (CheckAccessToSiteByAccountIdResponse) {}
|
|
327
355
|
|
|
@@ -362,4 +390,6 @@ service Multitenant {
|
|
|
362
390
|
rpc GetAccountIdsBySiteId(GetAccountIdsBySiteIdRequest) returns (GetAccountIdsBySiteIdResponse) {}
|
|
363
391
|
|
|
364
392
|
rpc CheckManagerInApplication(CheckManagerInApplicationRequest) returns (CheckManagerInApplicationResponse) {}
|
|
393
|
+
|
|
394
|
+
rpc UpdateSiteSubscription(UpdateSiteSubscriptionRequest) returns (UpdateSiteSubscriptionResponse) {}
|
|
365
395
|
}
|