Skip to content

Commit

Permalink
lib/dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Nov 27, 2023
1 parent a64270b commit e82840a
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 60 deletions.
82 changes: 53 additions & 29 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
Expand Up @@ -5366,7 +5366,7 @@
getOperation: function () { return OPERATIONS.PNGetMembersOperation; },
validateParams: function (_, params) {
if (!(params === null || params === void 0 ? void 0 : params.channel)) {
return 'UUID cannot be empty';
return 'channel cannot be empty';
}
},
getURL: function (_a, params) {
Expand All @@ -5379,36 +5379,45 @@
},
isAuthSupported: function () { return true; },
prepareParams: function (_modules, params) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
var queryParams = {};
queryParams.include = ['uuid.status', 'uuid.type', 'status'];
queryParams.include = [];
if (params === null || params === void 0 ? void 0 : params.include) {
if ((_a = params.include) === null || _a === void 0 ? void 0 : _a.customFields) {
if ((_a = params.include) === null || _a === void 0 ? void 0 : _a.statusField) {
queryParams.include.push('status');
}
if ((_b = params.include) === null || _b === void 0 ? void 0 : _b.customFields) {
queryParams.include.push('custom');
}
if ((_b = params.include) === null || _b === void 0 ? void 0 : _b.customUUIDFields) {
if ((_c = params.include) === null || _c === void 0 ? void 0 : _c.UUIDFields) {
queryParams.include.push('uuid');
}
if ((_d = params.include) === null || _d === void 0 ? void 0 : _d.customUUIDFields) {
queryParams.include.push('uuid.custom');
}
if ((_d = (_c = params.include) === null || _c === void 0 ? void 0 : _c.UUIDFields) !== null && _d !== void 0 ? _d : true) {
queryParams.include.push('uuid');
if ((_e = params.include) === null || _e === void 0 ? void 0 : _e.UUIDStatusField) {
queryParams.include.push('uuid.status');
}
if ((_f = params.include) === null || _f === void 0 ? void 0 : _f.UUIDTypeField) {
queryParams.include.push('uuid.type');
}
}
queryParams.include = queryParams.include.join(',');
if ((_e = params === null || params === void 0 ? void 0 : params.include) === null || _e === void 0 ? void 0 : _e.totalCount) {
queryParams.count = (_f = params.include) === null || _f === void 0 ? void 0 : _f.totalCount;
if ((_g = params === null || params === void 0 ? void 0 : params.include) === null || _g === void 0 ? void 0 : _g.totalCount) {
queryParams.count = (_h = params.include) === null || _h === void 0 ? void 0 : _h.totalCount;
}
if ((_g = params === null || params === void 0 ? void 0 : params.page) === null || _g === void 0 ? void 0 : _g.next) {
queryParams.start = (_h = params.page) === null || _h === void 0 ? void 0 : _h.next;
if ((_j = params === null || params === void 0 ? void 0 : params.page) === null || _j === void 0 ? void 0 : _j.next) {
queryParams.start = (_k = params.page) === null || _k === void 0 ? void 0 : _k.next;
}
if ((_j = params === null || params === void 0 ? void 0 : params.page) === null || _j === void 0 ? void 0 : _j.prev) {
queryParams.end = (_k = params.page) === null || _k === void 0 ? void 0 : _k.prev;
if ((_l = params === null || params === void 0 ? void 0 : params.page) === null || _l === void 0 ? void 0 : _l.prev) {
queryParams.end = (_m = params.page) === null || _m === void 0 ? void 0 : _m.prev;
}
if (params === null || params === void 0 ? void 0 : params.filter) {
queryParams.filter = params.filter;
}
queryParams.limit = (_l = params === null || params === void 0 ? void 0 : params.limit) !== null && _l !== void 0 ? _l : 100;
queryParams.limit = (_o = params === null || params === void 0 ? void 0 : params.limit) !== null && _o !== void 0 ? _o : 100;
if (params === null || params === void 0 ? void 0 : params.sort) {
queryParams.sort = Object.entries((_m = params.sort) !== null && _m !== void 0 ? _m : {}).map(function (_a) {
queryParams.sort = Object.entries((_p = params.sort) !== null && _p !== void 0 ? _p : {}).map(function (_a) {
var _b = __read(_a, 2), key = _b[0], value = _b[1];
if (value === 'asc' || value === 'desc') {
return "".concat(key, ":").concat(value);
Expand Down Expand Up @@ -5536,36 +5545,45 @@
},
isAuthSupported: function () { return true; },
prepareParams: function (_modules, params) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
var queryParams = {};
queryParams.include = ['channel.status', 'channel.type', 'status'];
queryParams.include = [];
if (params === null || params === void 0 ? void 0 : params.include) {
if ((_a = params.include) === null || _a === void 0 ? void 0 : _a.customFields) {
queryParams.include.push('custom');
if ((_a = params.include) === null || _a === void 0 ? void 0 : _a.statusField) {
queryParams.include.push('status');
}
if ((_b = params.include) === null || _b === void 0 ? void 0 : _b.customChannelFields) {
queryParams.include.push('channel.custom');
if ((_b = params.include) === null || _b === void 0 ? void 0 : _b.customFields) {
queryParams.include.push('custom');
}
if ((_c = params.include) === null || _c === void 0 ? void 0 : _c.channelFields) {
queryParams.include.push('channel');
}
if ((_d = params.include) === null || _d === void 0 ? void 0 : _d.customChannelFields) {
queryParams.include.push('channel.custom');
}
if ((_e = params.include) === null || _e === void 0 ? void 0 : _e.channelStatusField) {
queryParams.include.push('channel.status');
}
if ((_f = params.include) === null || _f === void 0 ? void 0 : _f.channelTypeField) {
queryParams.include.push('channel.type');
}
}
queryParams.include = queryParams.include.join(',');
if ((_d = params === null || params === void 0 ? void 0 : params.include) === null || _d === void 0 ? void 0 : _d.totalCount) {
queryParams.count = (_e = params.include) === null || _e === void 0 ? void 0 : _e.totalCount;
if ((_g = params === null || params === void 0 ? void 0 : params.include) === null || _g === void 0 ? void 0 : _g.totalCount) {
queryParams.count = (_h = params.include) === null || _h === void 0 ? void 0 : _h.totalCount;
}
if ((_f = params === null || params === void 0 ? void 0 : params.page) === null || _f === void 0 ? void 0 : _f.next) {
queryParams.start = (_g = params.page) === null || _g === void 0 ? void 0 : _g.next;
if ((_j = params === null || params === void 0 ? void 0 : params.page) === null || _j === void 0 ? void 0 : _j.next) {
queryParams.start = (_k = params.page) === null || _k === void 0 ? void 0 : _k.next;
}
if ((_h = params === null || params === void 0 ? void 0 : params.page) === null || _h === void 0 ? void 0 : _h.prev) {
queryParams.end = (_j = params.page) === null || _j === void 0 ? void 0 : _j.prev;
if ((_l = params === null || params === void 0 ? void 0 : params.page) === null || _l === void 0 ? void 0 : _l.prev) {
queryParams.end = (_m = params.page) === null || _m === void 0 ? void 0 : _m.prev;
}
if (params === null || params === void 0 ? void 0 : params.filter) {
queryParams.filter = params.filter;
}
queryParams.limit = (_k = params === null || params === void 0 ? void 0 : params.limit) !== null && _k !== void 0 ? _k : 100;
queryParams.limit = (_o = params === null || params === void 0 ? void 0 : params.limit) !== null && _o !== void 0 ? _o : 100;
if (params === null || params === void 0 ? void 0 : params.sort) {
queryParams.sort = Object.entries((_l = params.sort) !== null && _l !== void 0 ? _l : {}).map(function (_a) {
queryParams.sort = Object.entries((_p = params.sort) !== null && _p !== void 0 ? _p : {}).map(function (_a) {
var _b = __read(_a, 2), key = _b[0], value = _b[1];
if (value === 'asc' || value === 'desc') {
return "".concat(key, ":").concat(value);
Expand Down Expand Up @@ -7783,6 +7801,9 @@
customFields: params.include.customFields,
UUIDFields: params.include.userFields,
customUUIDFields: params.include.customUserFields,
statusField: params.include.statusField,
UUIDStatusField: params.include.userStatusField,
UUIDTypeField: params.include.userTypeField,
totalCount: params.include.totalCount,
},
sort: params.sort != null
Expand Down Expand Up @@ -7816,6 +7837,9 @@
customFields: params.include.customFields,
channelFields: params.include.spaceFields,
customChannelFields: params.include.customSpaceFields,
statusField: params.include.statusField,
channelStatusField: params.include.spaceStatusField,
channelTypeField: params.include.spaceTypeField,
totalCount: params.include.totalCount,
},
sort: params.sort != null
Expand Down
Loading

0 comments on commit e82840a

Please sign in to comment.