@arbiwallet/contracts 1.0.260 → 1.0.262

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/gen/crm_auth.ts CHANGED
@@ -76,6 +76,11 @@ export interface CrmManagerResponse {
76
76
  permissions: string[];
77
77
  isSuperAdmin: boolean;
78
78
  sectionPermissions: SectionPermission[];
79
+ fullName: string;
80
+ role: string;
81
+ permissionsVersion: number;
82
+ canCrossOffice: boolean;
83
+ officeIds: string[];
79
84
  }
80
85
 
81
86
  export interface CrmAuthSessionResponse {
@@ -38,6 +38,12 @@ export interface ManagerRecord {
38
38
  isSuperAdmin: boolean;
39
39
  sectionPermissions: SectionPermission[];
40
40
  officeIds: string[];
41
+ fullName: string;
42
+ isActive: boolean;
43
+ updatedAtUnixMs: number;
44
+ role: string;
45
+ permissionsVersion: number;
46
+ canCrossOffice: boolean;
41
47
  }
42
48
 
43
49
  export interface RoleRecord {
@@ -51,6 +57,7 @@ export interface ListManagersRequest {
51
57
  page: number;
52
58
  limit: number;
53
59
  search: string;
60
+ isActive?: boolean | undefined;
54
61
  }
55
62
 
56
63
  export interface ListManagersResponse {
@@ -104,6 +111,9 @@ export interface CreateManagerRequest {
104
111
  sectionPermissions: SectionPermission[];
105
112
  officeIds: string[];
106
113
  password: string;
114
+ fullName: string;
115
+ canCrossOffice: boolean;
116
+ customPermissions: string[];
107
117
  }
108
118
 
109
119
  export interface CreateManagerResponse {
@@ -128,6 +138,10 @@ export interface UpdateManagerRequest {
128
138
  replaceOfficeIds: boolean;
129
139
  officeIds: string[];
130
140
  password: string;
141
+ fullName: string;
142
+ canCrossOffice?: boolean | undefined;
143
+ replaceCustomPermissions: boolean;
144
+ customPermissions: string[];
131
145
  }
132
146
 
133
147
  export interface UpdateManagerResponse {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.260",
4
+ "version": "1.0.262",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -74,6 +74,11 @@ message CrmManagerResponse {
74
74
  repeated string permissions = 11;
75
75
  bool is_super_admin = 12;
76
76
  repeated SectionPermission section_permissions = 13;
77
+ string full_name = 14;
78
+ string role = 15;
79
+ int32 permissions_version = 16;
80
+ bool can_cross_office = 17;
81
+ repeated string office_ids = 18;
77
82
  }
78
83
 
79
84
  message CrmAuthSessionResponse {
@@ -46,6 +46,12 @@ message ManagerRecord {
46
46
  bool is_super_admin = 12;
47
47
  repeated SectionPermission section_permissions = 13;
48
48
  repeated string office_ids = 14;
49
+ string full_name = 15;
50
+ bool is_active = 16;
51
+ int64 updated_at_unix_ms = 17;
52
+ string role = 18;
53
+ int32 permissions_version = 19;
54
+ bool can_cross_office = 20;
49
55
  }
50
56
 
51
57
  message RoleRecord {
@@ -59,6 +65,7 @@ message ListManagersRequest {
59
65
  int32 page = 1;
60
66
  int32 limit = 2;
61
67
  string search = 3;
68
+ optional bool is_active = 4;
62
69
  }
63
70
 
64
71
  message ListManagersResponse {
@@ -112,6 +119,9 @@ message CreateManagerRequest {
112
119
  repeated SectionPermission section_permissions = 9;
113
120
  repeated string office_ids = 10;
114
121
  string password = 11;
122
+ string full_name = 12;
123
+ bool can_cross_office = 13;
124
+ repeated string custom_permissions = 14;
115
125
  }
116
126
 
117
127
  message CreateManagerResponse {
@@ -136,6 +146,10 @@ message UpdateManagerRequest {
136
146
  bool replace_office_ids = 13;
137
147
  repeated string office_ids = 14;
138
148
  string password = 15;
149
+ string full_name = 16;
150
+ optional bool can_cross_office = 17;
151
+ bool replace_custom_permissions = 18;
152
+ repeated string custom_permissions = 19;
139
153
  }
140
154
 
141
155
  message UpdateManagerResponse {