@amityco/ts-sdk 6.27.0 → 6.27.1-851ff0a.0
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/.env +26 -26
- package/dist/@types/domains/file.d.ts +6 -0
- package/dist/@types/domains/file.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +3 -3
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/client/api/getToken.d.ts +10 -5
- package/dist/client/api/getToken.d.ts.map +1 -1
- package/dist/client/api/index.d.ts +1 -0
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/client/api/login.d.ts.map +1 -1
- package/dist/client/api/logout.d.ts.map +1 -1
- package/dist/client/api/renewal.d.ts.map +1 -1
- package/dist/client/api/setUploadedFileAccessType.d.ts +2 -0
- package/dist/client/api/setUploadedFileAccessType.d.ts.map +1 -0
- package/dist/client/utils/GlobalFileAccessType.d.ts +10 -0
- package/dist/client/utils/GlobalFileAccessType.d.ts.map +1 -0
- package/dist/fileRepository/api/createFile.d.ts.map +1 -1
- package/dist/fileRepository/api/createImage.d.ts.map +1 -1
- package/dist/fileRepository/api/createVideo.d.ts.map +1 -1
- package/dist/fileRepository/api/uploadFile.d.ts.map +1 -1
- package/dist/fileRepository/api/uploadImage.d.ts.map +1 -1
- package/dist/fileRepository/api/uploadVideo.d.ts.map +1 -1
- package/dist/index.cjs.js +105 -74
- package/dist/index.esm.js +108 -75
- package/dist/index.umd.js +4 -4
- package/dist/postRepository/api/editPost.d.ts +1 -1
- package/dist/postRepository/api/editPost.d.ts.map +1 -1
- package/dist/postRepository/api/updatePost.d.ts +1 -1
- package/dist/postRepository/api/updatePost.d.ts.map +1 -1
- package/dist/utils/linkedObject/categoryLinkedObject.d.ts.map +1 -1
- package/dist/utils/linkedObject/userLinkedObject.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/@types/domains/file.ts +8 -0
- package/src/@types/domains/post.ts +3 -4
- package/src/client/api/getToken.ts +15 -7
- package/src/client/api/index.ts +2 -0
- package/src/client/api/login.ts +11 -7
- package/src/client/api/logout.ts +4 -0
- package/src/client/api/renewal.ts +6 -1
- package/src/client/api/setUploadedFileAccessType.ts +5 -0
- package/src/client/api/tests/getToken.test.ts +3 -3
- package/src/client/utils/GlobalFileAccessType.ts +23 -0
- package/src/fileRepository/api/createFile.ts +4 -0
- package/src/fileRepository/api/createImage.ts +4 -0
- package/src/fileRepository/api/createVideo.ts +4 -0
- package/src/fileRepository/api/uploadFile.ts +4 -0
- package/src/fileRepository/api/uploadImage.ts +4 -0
- package/src/fileRepository/api/uploadVideo.ts +4 -0
- package/src/utils/linkedObject/categoryLinkedObject.ts +6 -28
- package/src/utils/linkedObject/userLinkedObject.ts +8 -27
package/dist/index.esm.js
CHANGED
|
@@ -31,7 +31,12 @@ const VideoSize = Object.freeze({
|
|
|
31
31
|
MEDIUM: 'medium',
|
|
32
32
|
HIGH: 'high',
|
|
33
33
|
ORIGINAL: 'original',
|
|
34
|
-
});
|
|
34
|
+
});
|
|
35
|
+
var FileAccessTypeEnum;
|
|
36
|
+
(function (FileAccessTypeEnum) {
|
|
37
|
+
FileAccessTypeEnum["PUBLIC"] = "public";
|
|
38
|
+
FileAccessTypeEnum["NETWORK"] = "network";
|
|
39
|
+
})(FileAccessTypeEnum || (FileAccessTypeEnum = {}));
|
|
35
40
|
|
|
36
41
|
const CommunityPostSettings = Object.freeze({
|
|
37
42
|
ONLY_ADMIN_CAN_POST: 'ONLY_ADMIN_CAN_POST',
|
|
@@ -20742,6 +20747,19 @@ function __rest(s, e) {
|
|
|
20742
20747
|
t[p[i]] = s[p[i]];
|
|
20743
20748
|
}
|
|
20744
20749
|
return t;
|
|
20750
|
+
}
|
|
20751
|
+
|
|
20752
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
20753
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
20754
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20755
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20756
|
+
}
|
|
20757
|
+
|
|
20758
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
20759
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
20760
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
20761
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
20762
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
20745
20763
|
}
|
|
20746
20764
|
|
|
20747
20765
|
/**
|
|
@@ -21146,13 +21164,13 @@ class AnalyticsEngine {
|
|
|
21146
21164
|
this._eventCapturer.resetAllBuckets();
|
|
21147
21165
|
}
|
|
21148
21166
|
}
|
|
21149
|
-
let instance$
|
|
21167
|
+
let instance$4;
|
|
21150
21168
|
var AnalyticsEngine$1 = {
|
|
21151
21169
|
getInstance: () => {
|
|
21152
|
-
if (!instance$
|
|
21153
|
-
instance$
|
|
21170
|
+
if (!instance$4) {
|
|
21171
|
+
instance$4 = new AnalyticsEngine();
|
|
21154
21172
|
}
|
|
21155
|
-
return instance$
|
|
21173
|
+
return instance$4;
|
|
21156
21174
|
},
|
|
21157
21175
|
};
|
|
21158
21176
|
|
|
@@ -21160,30 +21178,12 @@ const userLinkedObject = (user) => {
|
|
|
21160
21178
|
return Object.assign(Object.assign({}, user), { get avatar() {
|
|
21161
21179
|
var _a;
|
|
21162
21180
|
if (!user.avatarFileId)
|
|
21163
|
-
return
|
|
21164
|
-
|
|
21165
|
-
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
attributes: {
|
|
21170
|
-
name: '',
|
|
21171
|
-
extension: '',
|
|
21172
|
-
size: '',
|
|
21173
|
-
mimeType: '',
|
|
21174
|
-
metadata: {
|
|
21175
|
-
exif: {},
|
|
21176
|
-
gps: {},
|
|
21177
|
-
width: 0,
|
|
21178
|
-
height: 0,
|
|
21179
|
-
isFull: false,
|
|
21180
|
-
},
|
|
21181
|
-
},
|
|
21182
|
-
};
|
|
21183
|
-
const cacheData = pullFromCache(['file', 'get', `${user.avatarFileId}`]);
|
|
21184
|
-
if (cacheData === null || cacheData === void 0 ? void 0 : cacheData.data) {
|
|
21185
|
-
avatar = cacheData === null || cacheData === void 0 ? void 0 : cacheData.data;
|
|
21186
|
-
}
|
|
21181
|
+
return undefined;
|
|
21182
|
+
const avatar = (_a = pullFromCache([
|
|
21183
|
+
'file',
|
|
21184
|
+
'get',
|
|
21185
|
+
`${user.avatarFileId}`,
|
|
21186
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
21187
21187
|
return avatar;
|
|
21188
21188
|
} });
|
|
21189
21189
|
};
|
|
@@ -21398,34 +21398,12 @@ const categoryLinkedObject = (category) => {
|
|
|
21398
21398
|
return Object.assign(Object.assign({}, category), { get avatar() {
|
|
21399
21399
|
var _a;
|
|
21400
21400
|
if (!category.avatarFileId)
|
|
21401
|
-
return
|
|
21402
|
-
|
|
21403
|
-
fileId: ((_a = category.avatarFileId) === null || _a === void 0 ? void 0 : _a.toString()) ? category.avatarFileId.toString() : '',
|
|
21404
|
-
type: 'image',
|
|
21405
|
-
fileUrl: '',
|
|
21406
|
-
createdAt: '',
|
|
21407
|
-
attributes: {
|
|
21408
|
-
name: '',
|
|
21409
|
-
extension: '',
|
|
21410
|
-
size: '',
|
|
21411
|
-
mimeType: '',
|
|
21412
|
-
metadata: {
|
|
21413
|
-
exif: {},
|
|
21414
|
-
gps: {},
|
|
21415
|
-
width: 0,
|
|
21416
|
-
height: 0,
|
|
21417
|
-
isFull: false,
|
|
21418
|
-
},
|
|
21419
|
-
},
|
|
21420
|
-
};
|
|
21421
|
-
const cacheData = pullFromCache([
|
|
21401
|
+
return undefined;
|
|
21402
|
+
const avatar = (_a = pullFromCache([
|
|
21422
21403
|
'file',
|
|
21423
21404
|
'get',
|
|
21424
21405
|
`${category.avatarFileId}`,
|
|
21425
|
-
]);
|
|
21426
|
-
if (cacheData === null || cacheData === void 0 ? void 0 : cacheData.data) {
|
|
21427
|
-
avatar = cacheData === null || cacheData === void 0 ? void 0 : cacheData.data;
|
|
21428
|
-
}
|
|
21406
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
21429
21407
|
return avatar;
|
|
21430
21408
|
} });
|
|
21431
21409
|
};
|
|
@@ -21783,12 +21761,12 @@ class MessageReadReceiptSyncEngine {
|
|
|
21783
21761
|
}
|
|
21784
21762
|
}
|
|
21785
21763
|
}
|
|
21786
|
-
let instance$
|
|
21764
|
+
let instance$3 = null;
|
|
21787
21765
|
var ReadReceiptSyncEngine = {
|
|
21788
21766
|
getInstance: () => {
|
|
21789
|
-
if (!instance$
|
|
21790
|
-
instance$
|
|
21791
|
-
return instance$
|
|
21767
|
+
if (!instance$3)
|
|
21768
|
+
instance$3 = new MessageReadReceiptSyncEngine();
|
|
21769
|
+
return instance$3;
|
|
21792
21770
|
},
|
|
21793
21771
|
};
|
|
21794
21772
|
|
|
@@ -22898,13 +22876,13 @@ class SessionWatcher {
|
|
|
22898
22876
|
this._listener.clear();
|
|
22899
22877
|
}
|
|
22900
22878
|
}
|
|
22901
|
-
let instance$
|
|
22879
|
+
let instance$2;
|
|
22902
22880
|
var SessionWatcher$1 = {
|
|
22903
22881
|
getInstance: () => {
|
|
22904
|
-
if (!instance$
|
|
22905
|
-
instance$
|
|
22882
|
+
if (!instance$2) {
|
|
22883
|
+
instance$2 = new SessionWatcher();
|
|
22906
22884
|
}
|
|
22907
|
-
return instance$
|
|
22885
|
+
return instance$2;
|
|
22908
22886
|
},
|
|
22909
22887
|
};
|
|
22910
22888
|
|
|
@@ -23616,13 +23594,15 @@ const setSessionState = (state) => {
|
|
|
23616
23594
|
* @category Client API
|
|
23617
23595
|
* @hidden
|
|
23618
23596
|
*/
|
|
23619
|
-
const getToken = async (params) => {
|
|
23597
|
+
const getToken = async ({ params, options, }) => {
|
|
23620
23598
|
const client = getActiveClient();
|
|
23621
23599
|
client.log('client/api/getToken', params);
|
|
23622
23600
|
const deviceInfo = getDeviceInfo();
|
|
23623
23601
|
const { data } = await client.http.post('/api/v5/sessions', Object.assign(Object.assign({}, params), { deviceInfo }), {
|
|
23624
|
-
|
|
23625
|
-
|
|
23602
|
+
headers: {
|
|
23603
|
+
'X-API-Key': client.apiKey,
|
|
23604
|
+
'set-access-token-cookie': (options === null || options === void 0 ? void 0 : options.setAccessTokenCookie) || false,
|
|
23605
|
+
},
|
|
23626
23606
|
});
|
|
23627
23607
|
return data;
|
|
23628
23608
|
};
|
|
@@ -23934,12 +23914,12 @@ class ObjectResolverEngine {
|
|
|
23934
23914
|
this.stopResolver();
|
|
23935
23915
|
}
|
|
23936
23916
|
}
|
|
23937
|
-
let instance = null;
|
|
23917
|
+
let instance$1 = null;
|
|
23938
23918
|
var ObjectResolverEngine$1 = {
|
|
23939
23919
|
getInstance: () => {
|
|
23940
|
-
if (!instance)
|
|
23941
|
-
instance = new ObjectResolverEngine();
|
|
23942
|
-
return instance;
|
|
23920
|
+
if (!instance$1)
|
|
23921
|
+
instance$1 = new ObjectResolverEngine();
|
|
23922
|
+
return instance$1;
|
|
23943
23923
|
},
|
|
23944
23924
|
};
|
|
23945
23925
|
|
|
@@ -24014,6 +23994,9 @@ const logout = async () => {
|
|
|
24014
23994
|
isUserDeleted: false,
|
|
24015
23995
|
};
|
|
24016
23996
|
client.ws.io.opts.query = { token: '' };
|
|
23997
|
+
if (typeof document !== 'undefined') {
|
|
23998
|
+
document.cookie = '_ascSession=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
23999
|
+
}
|
|
24017
24000
|
/*
|
|
24018
24001
|
* Cache should be usable if tokenExpired
|
|
24019
24002
|
* https://ekoapp.atlassian.net/wiki/spaces/UP/pages/2082537485/ASC+Core+-+Session+Management+3.0#SDK-usability-based-on-Session-State
|
|
@@ -24963,7 +24946,12 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24963
24946
|
// default values
|
|
24964
24947
|
const defaultDeviceId = await getDeviceId();
|
|
24965
24948
|
try {
|
|
24966
|
-
const { users } = await setClientToken(
|
|
24949
|
+
const { users } = await setClientToken({
|
|
24950
|
+
params: Object.assign(Object.assign({}, params), { displayName: params === null || params === void 0 ? void 0 : params.displayName, deviceId: (params === null || params === void 0 ? void 0 : params.deviceId) || defaultDeviceId }),
|
|
24951
|
+
options: {
|
|
24952
|
+
setAccessTokenCookie: true,
|
|
24953
|
+
},
|
|
24954
|
+
});
|
|
24967
24955
|
const user = users.find(u => u.userId === params.userId);
|
|
24968
24956
|
if (user == null) {
|
|
24969
24957
|
throw new ASCError(`${params.userId} has not been founded`, 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
@@ -24994,7 +24982,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24994
24982
|
* if getting token failed session state reverts to initial state when app
|
|
24995
24983
|
* is first launched
|
|
24996
24984
|
*/
|
|
24997
|
-
setSessionState("notLoggedIn" /* Amity.SessionStates.NOT_LOGGED_IN */);
|
|
24985
|
+
SessionWatcher$1.getInstance().setSessionState("notLoggedIn" /* Amity.SessionStates.NOT_LOGGED_IN */);
|
|
24998
24986
|
// pass error down tree so the calling function handle it
|
|
24999
24987
|
throw error;
|
|
25000
24988
|
}
|
|
@@ -25020,7 +25008,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
25020
25008
|
unsubWatcher();
|
|
25021
25009
|
}
|
|
25022
25010
|
}), onTokenExpired(state => {
|
|
25023
|
-
setSessionState(state);
|
|
25011
|
+
SessionWatcher$1.getInstance().setSessionState(state);
|
|
25024
25012
|
logout();
|
|
25025
25013
|
subscriptions.forEach(fn => fn());
|
|
25026
25014
|
}),
|
|
@@ -25065,7 +25053,12 @@ const renewal = () => {
|
|
|
25065
25053
|
}
|
|
25066
25054
|
else {
|
|
25067
25055
|
// about to expire
|
|
25068
|
-
await setClientToken(
|
|
25056
|
+
await setClientToken({
|
|
25057
|
+
params,
|
|
25058
|
+
options: {
|
|
25059
|
+
setAccessTokenCookie: true,
|
|
25060
|
+
},
|
|
25061
|
+
});
|
|
25069
25062
|
}
|
|
25070
25063
|
tokenRenewed = true;
|
|
25071
25064
|
if (renewTimeoutId)
|
|
@@ -25290,6 +25283,33 @@ const isConnected = () => {
|
|
|
25290
25283
|
client.ws.connected);
|
|
25291
25284
|
};
|
|
25292
25285
|
|
|
25286
|
+
var _GlobalFileAccessType_fileAccessType;
|
|
25287
|
+
class GlobalFileAccessType {
|
|
25288
|
+
constructor() {
|
|
25289
|
+
_GlobalFileAccessType_fileAccessType.set(this, FileAccessTypeEnum.PUBLIC);
|
|
25290
|
+
}
|
|
25291
|
+
setFileAccessType(fileAccessType) {
|
|
25292
|
+
__classPrivateFieldSet(this, _GlobalFileAccessType_fileAccessType, fileAccessType, "f");
|
|
25293
|
+
}
|
|
25294
|
+
getFileAccessType() {
|
|
25295
|
+
return __classPrivateFieldGet(this, _GlobalFileAccessType_fileAccessType, "f");
|
|
25296
|
+
}
|
|
25297
|
+
}
|
|
25298
|
+
_GlobalFileAccessType_fileAccessType = new WeakMap();
|
|
25299
|
+
let instance;
|
|
25300
|
+
var GlobalFileAccessType$1 = {
|
|
25301
|
+
getInstance: () => {
|
|
25302
|
+
if (!instance) {
|
|
25303
|
+
instance = new GlobalFileAccessType();
|
|
25304
|
+
}
|
|
25305
|
+
return instance;
|
|
25306
|
+
},
|
|
25307
|
+
};
|
|
25308
|
+
|
|
25309
|
+
function setUploadedFileAccessType(accessType) {
|
|
25310
|
+
GlobalFileAccessType$1.getInstance().setFileAccessType(accessType);
|
|
25311
|
+
}
|
|
25312
|
+
|
|
25293
25313
|
/**
|
|
25294
25314
|
* ```js
|
|
25295
25315
|
* import { onChannelMarkerFetched } from '@amityco/ts-sdk'
|
|
@@ -25820,6 +25840,7 @@ var index$l = /*#__PURE__*/Object.freeze({
|
|
|
25820
25840
|
renewal: renewal,
|
|
25821
25841
|
markerSync: markerSync,
|
|
25822
25842
|
enableUnreadCount: enableUnreadCount,
|
|
25843
|
+
setUploadedFileAccessType: setUploadedFileAccessType,
|
|
25823
25844
|
onConnectionError: onConnectionError,
|
|
25824
25845
|
onClientDisconnected: onClientDisconnected,
|
|
25825
25846
|
onClientBanned: onClientBanned,
|
|
@@ -27959,6 +27980,8 @@ const uploadFile = async (formData, onProgress) => {
|
|
|
27959
27980
|
const files = formData.getAll('files');
|
|
27960
27981
|
if (!files.length)
|
|
27961
27982
|
throw new Error('The formData object must have a `files` key.');
|
|
27983
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
27984
|
+
formData.append('accessType', accessType);
|
|
27962
27985
|
formData.append('preferredFilename', files[0].name);
|
|
27963
27986
|
const headers = 'getHeaders' in formData
|
|
27964
27987
|
? formData.getHeaders()
|
|
@@ -28044,6 +28067,8 @@ const uploadVideo = async (formData, feedType, onProgress) => {
|
|
|
28044
28067
|
const files = formData.getAll('files');
|
|
28045
28068
|
if (!files.length)
|
|
28046
28069
|
throw new Error('The formData object must have a `files` key.');
|
|
28070
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28071
|
+
formData.append('accessType', accessType);
|
|
28047
28072
|
formData.append('preferredFilename', files[0].name);
|
|
28048
28073
|
if (feedType) {
|
|
28049
28074
|
formData.append('feedType', feedType);
|
|
@@ -28093,6 +28118,8 @@ const uploadImage = async (formData, onProgress) => {
|
|
|
28093
28118
|
const files = formData.getAll('files');
|
|
28094
28119
|
if (!files.length)
|
|
28095
28120
|
throw new Error('The formData object must have a `files` key.');
|
|
28121
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28122
|
+
formData.append('accessType', accessType);
|
|
28096
28123
|
formData.append('preferredFilename', files[0].name);
|
|
28097
28124
|
const headers = 'getHeaders' in formData
|
|
28098
28125
|
? formData.getHeaders()
|
|
@@ -28136,6 +28163,8 @@ const createImage = async (formData, onProgress) => {
|
|
|
28136
28163
|
const files = formData.getAll('files');
|
|
28137
28164
|
if (!files.length)
|
|
28138
28165
|
throw new Error('The formData object must have a `files` key.');
|
|
28166
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28167
|
+
formData.append('accessType', accessType);
|
|
28139
28168
|
formData.append('preferredFilename', files[0].name);
|
|
28140
28169
|
const headers = 'getHeaders' in formData
|
|
28141
28170
|
? formData.getHeaders()
|
|
@@ -28179,6 +28208,8 @@ const createFile = async (formData, onProgress) => {
|
|
|
28179
28208
|
const files = formData.getAll('files');
|
|
28180
28209
|
if (!files.length)
|
|
28181
28210
|
throw new Error('The formData object must have a `files` key.');
|
|
28211
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28212
|
+
formData.append('accessType', accessType);
|
|
28182
28213
|
formData.append('preferredFilename', files[0].name);
|
|
28183
28214
|
const headers = 'getHeaders' in formData
|
|
28184
28215
|
? formData.getHeaders()
|
|
@@ -28222,6 +28253,8 @@ const createVideo = async (formData, feedType, onProgress) => {
|
|
|
28222
28253
|
const files = formData.getAll('files');
|
|
28223
28254
|
if (!files.length)
|
|
28224
28255
|
throw new Error('The formData object must have a `files` key.');
|
|
28256
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28257
|
+
formData.append('accessType', accessType);
|
|
28225
28258
|
formData.append('preferredFilename', files[0].name);
|
|
28226
28259
|
if (feedType) {
|
|
28227
28260
|
formData.append('feedType', feedType);
|
|
@@ -39162,7 +39195,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
39162
39195
|
getPoll: getPoll
|
|
39163
39196
|
});
|
|
39164
39197
|
|
|
39165
|
-
const privateKey = "-----BEGIN PRIVATE KEY-----\
|
|
39198
|
+
const privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDAARz+hmBgi8pJ\nQb8LeY41gtHhk+ACMwRfhsn7GqpqRQNG2qU0755mzZuVDUqjQMGSo8THJB7O+OJs\nflbZRkFXlFoFOVNw1UpNOgwEQZ6wB9oRwzepTJAfF1sVhm/o/ixvXh1zDFNDy6yZ\npXyiiJHUVxqyjllZhxnwdvjoVtDs6hW6awG09bB9nh/TTejlUKXoAgzqVwu/1QMu\nUVViET495elEe19aUarEy+oL2iKeXCEvqda/pWNBdbieFyJvvZ08HN8dPuT88wq2\njZLEAth1vrwQ2IAa4ktaLcBQdLJgIkrbDvAiVZ8lQAjS/bq5vXQikTGvoPlC5bbn\nvuOM/3eLAgMBAAECggEAVZ+peHAghq2QVj71nX5lxsNCKaCyYwixSJBpfouTt7Rz\nE6PpzMOXFi1W1o+I22jDakuSM2SOQKqI/u0QefB0r0O/KVk5NrZHXk0mkrdYtxOp\nUgaGyf8UvmjB+8VqHrNKyZdk9qtmbnNj01kTTcAtmE4H39zPR7eR/8Rul94vaZbs\nwCnKJS3mLT3JxyGug6lxanveKkjG+CKC1nJQYWaxCJxaFSzbwXQPvDhB+TvrIbee\npd5v4EAyEJohpr+T9oDGGJkb/KARBZCtwLyB976PKJwwBA8MRVL1i5QwawuMiMq5\nUtnOnbGKtCeFzaLbNU0Qi8bqyims84EQxC6DOu1fkQKBgQDdvsoBsEhsOXV7hlIJ\naEd0eSJZVkdqimxH8uGoMM2FeNaOrcB6yBXqTSP0R3OIyf8eaY6yjRvP30ZNXcll\n/gD3O1Mu6YmWQdt1W2WA6pKOsUuPXasf0pdOF7IiFZKlSabz5YHXFqwVuqm8loaj\nsXel3YWqPVdHiankE7tz+3ssnQKBgQDdqi4TNdD1MdEpihx19jr0QjUiXW3939FK\nqp30HESPEGDGQzXdmJgif9HhZb+cJSuWaHEbjgBrYahvgCF+y6LbEpOD+D/dmT+s\nDEAQaR84sah6dokwPjV8fjBSrcVFjCS+doxv0d3p/9OUEeyUhFrY03nxtIEYkLIE\n/Zvn37b4RwKBgQCLENVFe9XfsaVhQ5r9dV2iyTlmh7qgMZG5CbTFs12hQGhm8McO\n+Z7s41YSJCFr/yq1WwP4LJDtrBw99vyQr1zRsG35tNLp3gGRNzGQSQyC2uQFVHw2\np+7mNewsfhUK/gbrXNsyFnDz6635rPlhfbII3sWuP2wWXFqkxE9CbMwR7QKBgQC6\nawDMzxmo2/iYArrkyevSuEuPVxvFwpF1RgAI6C0QVCnPE38dmdN4UB7mfHekje4W\nVEercMURidPp0cxZolCYBQtilUjAyL0vqC3In1/Ogjq6oy3FEMxSop1pKxMY5j+Q\nnoqFD+6deLUrddeNH7J3X4LSr4dSbX4JjG+tlgt+yQKBgQCuwTL4hA6KqeInQ0Ta\n9VQX5Qr8hFlqJz1gpymi/k63tW/Ob8yedbg3WWNWyShwRMFYyY9S81ITFWM95uL6\nvF3x9rmRjwElJw9PMwVu6dmf/CO0Z1wzXSp2VVD12gbrUD/0/d7MUoJ9LgC8X8f/\nn0txLHYGHbx+nf95+JUg6lV3hg==\n-----END PRIVATE KEY-----";
|
|
39166
39199
|
/*
|
|
39167
39200
|
* The crypto algorithm used for importing key and signing string
|
|
39168
39201
|
*/
|
|
@@ -40659,4 +40692,4 @@ const createUserToken = async (apiKey, apiRegion, params) => {
|
|
|
40659
40692
|
return { accessToken: data.accessToken };
|
|
40660
40693
|
};
|
|
40661
40694
|
|
|
40662
|
-
export { API_REGIONS, index as AdRepository, index$8 as CategoryRepository, index$c as ChannelRepository, index$l as Client, index$6 as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$9 as CommunityRepository, ContentFeedType, DefaultCommunityPostSetting, index$7 as FeedRepository, index$i as FileRepository, FileType, index$2 as LiveStreamPlayer, MessageContentType, index$g as MessageRepository, index$3 as PollRepository, PostContentType, index$5 as PostRepository, index$h as ReactionRepository, index$1 as StoryRepository, index$4 as StreamRepository, index$f as SubChannelRepository, SubscriptionLevels, index$j as UserRepository, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };
|
|
40695
|
+
export { API_REGIONS, index as AdRepository, index$8 as CategoryRepository, index$c as ChannelRepository, index$l as Client, index$6 as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$9 as CommunityRepository, ContentFeedType, DefaultCommunityPostSetting, index$7 as FeedRepository, FileAccessTypeEnum, index$i as FileRepository, FileType, index$2 as LiveStreamPlayer, MessageContentType, index$g as MessageRepository, index$3 as PollRepository, PostContentType, index$5 as PostRepository, index$h as ReactionRepository, index$1 as StoryRepository, index$4 as StreamRepository, index$f as SubChannelRepository, SubscriptionLevels, index$j as UserRepository, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };
|