@skyiro/sky-client 0.1.29 → 0.1.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyiro/sky-client",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Skyiro internal gRPC clients: Accounts, Notifier, and URL shortener, with typed product and event keys",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,8 @@ service AccountsGrpcService {
20
20
  rpc getUserFeatures (UserFeaturesRequest) returns (UserFeaturesResponse);
21
21
  rpc getUserFeatureVersion (UserFeatureVersionRequest) returns (UserFeatureVersionResponse);
22
22
  rpc getOrganizationSubscription (OrgSubscriptionRequest) returns (OrgSubscriptionResponse);
23
+ /** People designation rename → update Account users by designationId (name is display only). */
24
+ rpc syncDesignationName (SyncDesignationNameRequest) returns (SyncDesignationNameResponse);
23
25
  }
24
26
 
25
27
  enum OrganizationRole {
@@ -57,6 +59,7 @@ message UserGetResponse {
57
59
  optional string timezone = 11;
58
60
  optional string language = 12;
59
61
  optional string banner = 13;
62
+ optional string designationId = 14;
60
63
  }
61
64
 
62
65
  message UserOrganization {
@@ -78,6 +81,7 @@ message UserCreateRequest {
78
81
  optional string designation = 11;
79
82
  optional string imagePath = 12;
80
83
  optional string status = 13;
84
+ optional string designationId = 14;
81
85
  }
82
86
 
83
87
  message UserUpdateRequest {
@@ -95,6 +99,20 @@ message UserUpdateRequest {
95
99
  optional string status = 12;
96
100
  optional string imagePath = 13;
97
101
  optional bool removeProfilePhoto = 14;
102
+ optional string designationId = 15;
103
+ }
104
+
105
+ message SyncDesignationNameRequest {
106
+ string organizationId = 1;
107
+ string designationId = 2;
108
+ /** Optional display-cache refresh; identity is designationId. */
109
+ optional string designation = 3;
110
+ /** Backfill legacy Account rows that only stored this old display name. */
111
+ optional string previousDesignation = 4;
112
+ }
113
+
114
+ message SyncDesignationNameResponse {
115
+ int32 updatedCount = 1;
98
116
  }
99
117
 
100
118
  message UserCreateResponse {