@lazycatcloud/sdk 0.1.94 → 0.1.95
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/dist/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export interface GenUserInvitationRequest {
|
|
|
21
21
|
/** 是否允许新用户安装应用 */
|
|
22
22
|
allowInstallApp?: boolean | undefined;
|
|
23
23
|
/** 对新用户可见的应用列表 */
|
|
24
|
-
|
|
24
|
+
appAllowList: string[];
|
|
25
25
|
}
|
|
26
26
|
export interface UserInvitation {
|
|
27
27
|
token: string;
|
|
@@ -218,14 +218,14 @@ export declare const GenUserInvitationRequest: {
|
|
|
218
218
|
limitUsageCount?: number | undefined;
|
|
219
219
|
limitRole?: Role | undefined;
|
|
220
220
|
allowInstallApp?: boolean | undefined;
|
|
221
|
-
|
|
221
|
+
appAllowList?: string[];
|
|
222
222
|
} & {
|
|
223
223
|
limitUid?: string | undefined;
|
|
224
224
|
notAfter?: Date | undefined;
|
|
225
225
|
limitUsageCount?: number | undefined;
|
|
226
226
|
limitRole?: Role | undefined;
|
|
227
227
|
allowInstallApp?: boolean | undefined;
|
|
228
|
-
|
|
228
|
+
appAllowList?: string[] & string[] & { [K in Exclude<keyof I["appAllowList"], keyof string[]>]: never; };
|
|
229
229
|
} & { [K_1 in Exclude<keyof I, keyof GenUserInvitationRequest>]: never; }>(object: I): GenUserInvitationRequest;
|
|
230
230
|
};
|
|
231
231
|
export declare const UserInvitation: {
|
|
@@ -121,7 +121,7 @@ function createBaseGenUserInvitationRequest() {
|
|
|
121
121
|
limitUsageCount: undefined,
|
|
122
122
|
limitRole: undefined,
|
|
123
123
|
allowInstallApp: undefined,
|
|
124
|
-
|
|
124
|
+
appAllowList: [],
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
exports.GenUserInvitationRequest = {
|
|
@@ -141,7 +141,7 @@ exports.GenUserInvitationRequest = {
|
|
|
141
141
|
if (message.allowInstallApp !== undefined) {
|
|
142
142
|
writer.uint32(40).bool(message.allowInstallApp);
|
|
143
143
|
}
|
|
144
|
-
for (const v of message.
|
|
144
|
+
for (const v of message.appAllowList) {
|
|
145
145
|
writer.uint32(50).string(v);
|
|
146
146
|
}
|
|
147
147
|
return writer;
|
|
@@ -169,7 +169,7 @@ exports.GenUserInvitationRequest = {
|
|
|
169
169
|
message.allowInstallApp = reader.bool();
|
|
170
170
|
break;
|
|
171
171
|
case 6:
|
|
172
|
-
message.
|
|
172
|
+
message.appAllowList.push(reader.string());
|
|
173
173
|
break;
|
|
174
174
|
default:
|
|
175
175
|
reader.skipType(tag & 7);
|
|
@@ -193,8 +193,8 @@ exports.GenUserInvitationRequest = {
|
|
|
193
193
|
allowInstallApp: isSet(object.allowInstallApp)
|
|
194
194
|
? Boolean(object.allowInstallApp)
|
|
195
195
|
: undefined,
|
|
196
|
-
|
|
197
|
-
? object.
|
|
196
|
+
appAllowList: Array.isArray(object === null || object === void 0 ? void 0 : object.appAllowList)
|
|
197
|
+
? object.appAllowList.map((e) => String(e))
|
|
198
198
|
: [],
|
|
199
199
|
};
|
|
200
200
|
},
|
|
@@ -212,11 +212,11 @@ exports.GenUserInvitationRequest = {
|
|
|
212
212
|
: undefined);
|
|
213
213
|
message.allowInstallApp !== undefined &&
|
|
214
214
|
(obj.allowInstallApp = message.allowInstallApp);
|
|
215
|
-
if (message.
|
|
216
|
-
obj.
|
|
215
|
+
if (message.appAllowList) {
|
|
216
|
+
obj.appAllowList = message.appAllowList.map((e) => e);
|
|
217
217
|
}
|
|
218
218
|
else {
|
|
219
|
-
obj.
|
|
219
|
+
obj.appAllowList = [];
|
|
220
220
|
}
|
|
221
221
|
return obj;
|
|
222
222
|
},
|
|
@@ -228,7 +228,7 @@ exports.GenUserInvitationRequest = {
|
|
|
228
228
|
message.limitUsageCount = (_c = object.limitUsageCount) !== null && _c !== void 0 ? _c : undefined;
|
|
229
229
|
message.limitRole = (_d = object.limitRole) !== null && _d !== void 0 ? _d : undefined;
|
|
230
230
|
message.allowInstallApp = (_e = object.allowInstallApp) !== null && _e !== void 0 ? _e : undefined;
|
|
231
|
-
message.
|
|
231
|
+
message.appAllowList = ((_f = object.appAllowList) === null || _f === void 0 ? void 0 : _f.map((e) => e)) || [];
|
|
232
232
|
return message;
|
|
233
233
|
},
|
|
234
234
|
};
|