@amityco/ts-sdk-react-native 6.27.1-be8d01c.0 → 6.28.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 +107 -76
- package/dist/index.esm.js +110 -77
- package/dist/index.umd.js +3 -3
- 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 +1 -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
|
@@ -33,7 +33,12 @@ const VideoSize = Object.freeze({
|
|
|
33
33
|
MEDIUM: 'medium',
|
|
34
34
|
HIGH: 'high',
|
|
35
35
|
ORIGINAL: 'original',
|
|
36
|
-
});
|
|
36
|
+
});
|
|
37
|
+
var FileAccessTypeEnum;
|
|
38
|
+
(function (FileAccessTypeEnum) {
|
|
39
|
+
FileAccessTypeEnum["PUBLIC"] = "public";
|
|
40
|
+
FileAccessTypeEnum["NETWORK"] = "network";
|
|
41
|
+
})(FileAccessTypeEnum || (FileAccessTypeEnum = {}));
|
|
37
42
|
|
|
38
43
|
const CommunityPostSettings = Object.freeze({
|
|
39
44
|
ONLY_ADMIN_CAN_POST: 'ONLY_ADMIN_CAN_POST',
|
|
@@ -84,8 +89,8 @@ const PostContentType = Object.freeze({
|
|
|
84
89
|
|
|
85
90
|
function getVersion() {
|
|
86
91
|
try {
|
|
87
|
-
// the string ''v6.
|
|
88
|
-
return 'v6.
|
|
92
|
+
// the string ''v6.28.0-esm'' should be replaced by actual value by @rollup/plugin-replace
|
|
93
|
+
return 'v6.28.0-esm';
|
|
89
94
|
}
|
|
90
95
|
catch (error) {
|
|
91
96
|
return '__dev__';
|
|
@@ -20764,6 +20769,19 @@ function __rest(s, e) {
|
|
|
20764
20769
|
t[p[i]] = s[p[i]];
|
|
20765
20770
|
}
|
|
20766
20771
|
return t;
|
|
20772
|
+
}
|
|
20773
|
+
|
|
20774
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
20775
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
20776
|
+
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");
|
|
20777
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
20778
|
+
}
|
|
20779
|
+
|
|
20780
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
20781
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
20782
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
20783
|
+
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");
|
|
20784
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
20767
20785
|
}
|
|
20768
20786
|
|
|
20769
20787
|
/**
|
|
@@ -21168,13 +21186,13 @@ class AnalyticsEngine {
|
|
|
21168
21186
|
this._eventCapturer.resetAllBuckets();
|
|
21169
21187
|
}
|
|
21170
21188
|
}
|
|
21171
|
-
let instance$
|
|
21189
|
+
let instance$4;
|
|
21172
21190
|
var AnalyticsEngine$1 = {
|
|
21173
21191
|
getInstance: () => {
|
|
21174
|
-
if (!instance$
|
|
21175
|
-
instance$
|
|
21192
|
+
if (!instance$4) {
|
|
21193
|
+
instance$4 = new AnalyticsEngine();
|
|
21176
21194
|
}
|
|
21177
|
-
return instance$
|
|
21195
|
+
return instance$4;
|
|
21178
21196
|
},
|
|
21179
21197
|
};
|
|
21180
21198
|
|
|
@@ -21182,30 +21200,12 @@ const userLinkedObject = (user) => {
|
|
|
21182
21200
|
return Object.assign(Object.assign({}, user), { get avatar() {
|
|
21183
21201
|
var _a;
|
|
21184
21202
|
if (!user.avatarFileId)
|
|
21185
|
-
return
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
attributes: {
|
|
21192
|
-
name: '',
|
|
21193
|
-
extension: '',
|
|
21194
|
-
size: '',
|
|
21195
|
-
mimeType: '',
|
|
21196
|
-
metadata: {
|
|
21197
|
-
exif: {},
|
|
21198
|
-
gps: {},
|
|
21199
|
-
width: 0,
|
|
21200
|
-
height: 0,
|
|
21201
|
-
isFull: false,
|
|
21202
|
-
},
|
|
21203
|
-
},
|
|
21204
|
-
};
|
|
21205
|
-
const cacheData = pullFromCache(['file', 'get', `${user.avatarFileId}`]);
|
|
21206
|
-
if (cacheData === null || cacheData === void 0 ? void 0 : cacheData.data) {
|
|
21207
|
-
avatar = cacheData === null || cacheData === void 0 ? void 0 : cacheData.data;
|
|
21208
|
-
}
|
|
21203
|
+
return undefined;
|
|
21204
|
+
const avatar = (_a = pullFromCache([
|
|
21205
|
+
'file',
|
|
21206
|
+
'get',
|
|
21207
|
+
`${user.avatarFileId}`,
|
|
21208
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
21209
21209
|
return avatar;
|
|
21210
21210
|
} });
|
|
21211
21211
|
};
|
|
@@ -21420,34 +21420,12 @@ const categoryLinkedObject = (category) => {
|
|
|
21420
21420
|
return Object.assign(Object.assign({}, category), { get avatar() {
|
|
21421
21421
|
var _a;
|
|
21422
21422
|
if (!category.avatarFileId)
|
|
21423
|
-
return
|
|
21424
|
-
|
|
21425
|
-
fileId: ((_a = category.avatarFileId) === null || _a === void 0 ? void 0 : _a.toString()) ? category.avatarFileId.toString() : '',
|
|
21426
|
-
type: 'image',
|
|
21427
|
-
fileUrl: '',
|
|
21428
|
-
createdAt: '',
|
|
21429
|
-
attributes: {
|
|
21430
|
-
name: '',
|
|
21431
|
-
extension: '',
|
|
21432
|
-
size: '',
|
|
21433
|
-
mimeType: '',
|
|
21434
|
-
metadata: {
|
|
21435
|
-
exif: {},
|
|
21436
|
-
gps: {},
|
|
21437
|
-
width: 0,
|
|
21438
|
-
height: 0,
|
|
21439
|
-
isFull: false,
|
|
21440
|
-
},
|
|
21441
|
-
},
|
|
21442
|
-
};
|
|
21443
|
-
const cacheData = pullFromCache([
|
|
21423
|
+
return undefined;
|
|
21424
|
+
const avatar = (_a = pullFromCache([
|
|
21444
21425
|
'file',
|
|
21445
21426
|
'get',
|
|
21446
21427
|
`${category.avatarFileId}`,
|
|
21447
|
-
]);
|
|
21448
|
-
if (cacheData === null || cacheData === void 0 ? void 0 : cacheData.data) {
|
|
21449
|
-
avatar = cacheData === null || cacheData === void 0 ? void 0 : cacheData.data;
|
|
21450
|
-
}
|
|
21428
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
21451
21429
|
return avatar;
|
|
21452
21430
|
} });
|
|
21453
21431
|
};
|
|
@@ -21805,12 +21783,12 @@ class MessageReadReceiptSyncEngine {
|
|
|
21805
21783
|
}
|
|
21806
21784
|
}
|
|
21807
21785
|
}
|
|
21808
|
-
let instance$
|
|
21786
|
+
let instance$3 = null;
|
|
21809
21787
|
var ReadReceiptSyncEngine = {
|
|
21810
21788
|
getInstance: () => {
|
|
21811
|
-
if (!instance$
|
|
21812
|
-
instance$
|
|
21813
|
-
return instance$
|
|
21789
|
+
if (!instance$3)
|
|
21790
|
+
instance$3 = new MessageReadReceiptSyncEngine();
|
|
21791
|
+
return instance$3;
|
|
21814
21792
|
},
|
|
21815
21793
|
};
|
|
21816
21794
|
|
|
@@ -22920,13 +22898,13 @@ class SessionWatcher {
|
|
|
22920
22898
|
this._listener.clear();
|
|
22921
22899
|
}
|
|
22922
22900
|
}
|
|
22923
|
-
let instance$
|
|
22901
|
+
let instance$2;
|
|
22924
22902
|
var SessionWatcher$1 = {
|
|
22925
22903
|
getInstance: () => {
|
|
22926
|
-
if (!instance$
|
|
22927
|
-
instance$
|
|
22904
|
+
if (!instance$2) {
|
|
22905
|
+
instance$2 = new SessionWatcher();
|
|
22928
22906
|
}
|
|
22929
|
-
return instance$
|
|
22907
|
+
return instance$2;
|
|
22930
22908
|
},
|
|
22931
22909
|
};
|
|
22932
22910
|
|
|
@@ -23653,13 +23631,15 @@ const setSessionState = (state) => {
|
|
|
23653
23631
|
* @category Client API
|
|
23654
23632
|
* @hidden
|
|
23655
23633
|
*/
|
|
23656
|
-
const getToken = async (params) => {
|
|
23634
|
+
const getToken = async ({ params, options, }) => {
|
|
23657
23635
|
const client = getActiveClient();
|
|
23658
23636
|
client.log('client/api/getToken', params);
|
|
23659
23637
|
const deviceInfo = getDeviceInfo();
|
|
23660
23638
|
const { data } = await client.http.post('/api/v5/sessions', Object.assign(Object.assign({}, params), { deviceInfo }), {
|
|
23661
|
-
|
|
23662
|
-
|
|
23639
|
+
headers: {
|
|
23640
|
+
'X-API-Key': client.apiKey,
|
|
23641
|
+
'set-access-token-cookie': (options === null || options === void 0 ? void 0 : options.setAccessTokenCookie) || false,
|
|
23642
|
+
},
|
|
23663
23643
|
});
|
|
23664
23644
|
return data;
|
|
23665
23645
|
};
|
|
@@ -23986,12 +23966,12 @@ class ObjectResolverEngine {
|
|
|
23986
23966
|
this.stopResolver();
|
|
23987
23967
|
}
|
|
23988
23968
|
}
|
|
23989
|
-
let instance = null;
|
|
23969
|
+
let instance$1 = null;
|
|
23990
23970
|
var ObjectResolverEngine$1 = {
|
|
23991
23971
|
getInstance: () => {
|
|
23992
|
-
if (!instance)
|
|
23993
|
-
instance = new ObjectResolverEngine();
|
|
23994
|
-
return instance;
|
|
23972
|
+
if (!instance$1)
|
|
23973
|
+
instance$1 = new ObjectResolverEngine();
|
|
23974
|
+
return instance$1;
|
|
23995
23975
|
},
|
|
23996
23976
|
};
|
|
23997
23977
|
|
|
@@ -24066,6 +24046,9 @@ const logout = async () => {
|
|
|
24066
24046
|
isUserDeleted: false,
|
|
24067
24047
|
};
|
|
24068
24048
|
client.ws.io.opts.query = { token: '' };
|
|
24049
|
+
if (typeof document !== 'undefined') {
|
|
24050
|
+
document.cookie = '_ascSession=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
24051
|
+
}
|
|
24069
24052
|
/*
|
|
24070
24053
|
* Cache should be usable if tokenExpired
|
|
24071
24054
|
* https://ekoapp.atlassian.net/wiki/spaces/UP/pages/2082537485/ASC+Core+-+Session+Management+3.0#SDK-usability-based-on-Session-State
|
|
@@ -25015,7 +24998,12 @@ const login = async (params, sessionHandler, config) => {
|
|
|
25015
24998
|
// default values
|
|
25016
24999
|
const defaultDeviceId = await getDeviceId();
|
|
25017
25000
|
try {
|
|
25018
|
-
const { users } = await setClientToken(
|
|
25001
|
+
const { users } = await setClientToken({
|
|
25002
|
+
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 }),
|
|
25003
|
+
options: {
|
|
25004
|
+
setAccessTokenCookie: true,
|
|
25005
|
+
},
|
|
25006
|
+
});
|
|
25019
25007
|
const user = users.find(u => u.userId === params.userId);
|
|
25020
25008
|
if (user == null) {
|
|
25021
25009
|
throw new ASCError(`${params.userId} has not been founded`, 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
@@ -25046,7 +25034,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
25046
25034
|
* if getting token failed session state reverts to initial state when app
|
|
25047
25035
|
* is first launched
|
|
25048
25036
|
*/
|
|
25049
|
-
setSessionState("notLoggedIn" /* Amity.SessionStates.NOT_LOGGED_IN */);
|
|
25037
|
+
SessionWatcher$1.getInstance().setSessionState("notLoggedIn" /* Amity.SessionStates.NOT_LOGGED_IN */);
|
|
25050
25038
|
// pass error down tree so the calling function handle it
|
|
25051
25039
|
throw error;
|
|
25052
25040
|
}
|
|
@@ -25072,7 +25060,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
25072
25060
|
unsubWatcher();
|
|
25073
25061
|
}
|
|
25074
25062
|
}), onTokenExpired(state => {
|
|
25075
|
-
setSessionState(state);
|
|
25063
|
+
SessionWatcher$1.getInstance().setSessionState(state);
|
|
25076
25064
|
logout();
|
|
25077
25065
|
subscriptions.forEach(fn => fn());
|
|
25078
25066
|
}),
|
|
@@ -25117,7 +25105,12 @@ const renewal = () => {
|
|
|
25117
25105
|
}
|
|
25118
25106
|
else {
|
|
25119
25107
|
// about to expire
|
|
25120
|
-
await setClientToken(
|
|
25108
|
+
await setClientToken({
|
|
25109
|
+
params,
|
|
25110
|
+
options: {
|
|
25111
|
+
setAccessTokenCookie: true,
|
|
25112
|
+
},
|
|
25113
|
+
});
|
|
25121
25114
|
}
|
|
25122
25115
|
tokenRenewed = true;
|
|
25123
25116
|
if (renewTimeoutId)
|
|
@@ -25379,6 +25372,33 @@ const unregisterPushNotification = async () => {
|
|
|
25379
25372
|
return status === 'success';
|
|
25380
25373
|
};
|
|
25381
25374
|
|
|
25375
|
+
var _GlobalFileAccessType_fileAccessType;
|
|
25376
|
+
class GlobalFileAccessType {
|
|
25377
|
+
constructor() {
|
|
25378
|
+
_GlobalFileAccessType_fileAccessType.set(this, FileAccessTypeEnum.PUBLIC);
|
|
25379
|
+
}
|
|
25380
|
+
setFileAccessType(fileAccessType) {
|
|
25381
|
+
__classPrivateFieldSet(this, _GlobalFileAccessType_fileAccessType, fileAccessType, "f");
|
|
25382
|
+
}
|
|
25383
|
+
getFileAccessType() {
|
|
25384
|
+
return __classPrivateFieldGet(this, _GlobalFileAccessType_fileAccessType, "f");
|
|
25385
|
+
}
|
|
25386
|
+
}
|
|
25387
|
+
_GlobalFileAccessType_fileAccessType = new WeakMap();
|
|
25388
|
+
let instance;
|
|
25389
|
+
var GlobalFileAccessType$1 = {
|
|
25390
|
+
getInstance: () => {
|
|
25391
|
+
if (!instance) {
|
|
25392
|
+
instance = new GlobalFileAccessType();
|
|
25393
|
+
}
|
|
25394
|
+
return instance;
|
|
25395
|
+
},
|
|
25396
|
+
};
|
|
25397
|
+
|
|
25398
|
+
function setUploadedFileAccessType(accessType) {
|
|
25399
|
+
GlobalFileAccessType$1.getInstance().setFileAccessType(accessType);
|
|
25400
|
+
}
|
|
25401
|
+
|
|
25382
25402
|
/**
|
|
25383
25403
|
* ```js
|
|
25384
25404
|
* import { onChannelMarkerFetched } from '@amityco/ts-sdk-react-native'
|
|
@@ -25911,6 +25931,7 @@ var index$l = /*#__PURE__*/Object.freeze({
|
|
|
25911
25931
|
enableUnreadCount: enableUnreadCount,
|
|
25912
25932
|
registerPushNotification: registerPushNotification,
|
|
25913
25933
|
unregisterPushNotification: unregisterPushNotification,
|
|
25934
|
+
setUploadedFileAccessType: setUploadedFileAccessType,
|
|
25914
25935
|
onConnectionError: onConnectionError,
|
|
25915
25936
|
onClientDisconnected: onClientDisconnected,
|
|
25916
25937
|
onClientBanned: onClientBanned,
|
|
@@ -28050,6 +28071,8 @@ const uploadFile = async (formData, onProgress) => {
|
|
|
28050
28071
|
const files = formData.getAll('files');
|
|
28051
28072
|
if (!files.length)
|
|
28052
28073
|
throw new Error('The formData object must have a `files` key.');
|
|
28074
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28075
|
+
formData.append('accessType', accessType);
|
|
28053
28076
|
formData.append('preferredFilename', files[0].name);
|
|
28054
28077
|
const headers = 'getHeaders' in formData
|
|
28055
28078
|
? formData.getHeaders()
|
|
@@ -28135,6 +28158,8 @@ const uploadVideo = async (formData, feedType, onProgress) => {
|
|
|
28135
28158
|
const files = formData.getAll('files');
|
|
28136
28159
|
if (!files.length)
|
|
28137
28160
|
throw new Error('The formData object must have a `files` key.');
|
|
28161
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28162
|
+
formData.append('accessType', accessType);
|
|
28138
28163
|
formData.append('preferredFilename', files[0].name);
|
|
28139
28164
|
if (feedType) {
|
|
28140
28165
|
formData.append('feedType', feedType);
|
|
@@ -28184,6 +28209,8 @@ const uploadImage = async (formData, onProgress) => {
|
|
|
28184
28209
|
const files = formData.getAll('files');
|
|
28185
28210
|
if (!files.length)
|
|
28186
28211
|
throw new Error('The formData object must have a `files` key.');
|
|
28212
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28213
|
+
formData.append('accessType', accessType);
|
|
28187
28214
|
formData.append('preferredFilename', files[0].name);
|
|
28188
28215
|
const headers = 'getHeaders' in formData
|
|
28189
28216
|
? formData.getHeaders()
|
|
@@ -28227,6 +28254,8 @@ const createImage = async (formData, onProgress) => {
|
|
|
28227
28254
|
const files = formData.getAll('files');
|
|
28228
28255
|
if (!files.length)
|
|
28229
28256
|
throw new Error('The formData object must have a `files` key.');
|
|
28257
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28258
|
+
formData.append('accessType', accessType);
|
|
28230
28259
|
formData.append('preferredFilename', files[0].name);
|
|
28231
28260
|
const headers = 'getHeaders' in formData
|
|
28232
28261
|
? formData.getHeaders()
|
|
@@ -28270,6 +28299,8 @@ const createFile = async (formData, onProgress) => {
|
|
|
28270
28299
|
const files = formData.getAll('files');
|
|
28271
28300
|
if (!files.length)
|
|
28272
28301
|
throw new Error('The formData object must have a `files` key.');
|
|
28302
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28303
|
+
formData.append('accessType', accessType);
|
|
28273
28304
|
formData.append('preferredFilename', files[0].name);
|
|
28274
28305
|
const headers = 'getHeaders' in formData
|
|
28275
28306
|
? formData.getHeaders()
|
|
@@ -28313,6 +28344,8 @@ const createVideo = async (formData, feedType, onProgress) => {
|
|
|
28313
28344
|
const files = formData.getAll('files');
|
|
28314
28345
|
if (!files.length)
|
|
28315
28346
|
throw new Error('The formData object must have a `files` key.');
|
|
28347
|
+
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
28348
|
+
formData.append('accessType', accessType);
|
|
28316
28349
|
formData.append('preferredFilename', files[0].name);
|
|
28317
28350
|
if (feedType) {
|
|
28318
28351
|
formData.append('feedType', feedType);
|
|
@@ -39248,7 +39281,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
|
|
|
39248
39281
|
getPoll: getPoll
|
|
39249
39282
|
});
|
|
39250
39283
|
|
|
39251
|
-
const privateKey = "-----BEGIN PRIVATE KEY-----\
|
|
39284
|
+
const privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHo80SecH7FuF2\nhFYnb+l26/VN8UMLXAQFLnxciNTEwkGVFMpdezlH8rU2HtUJL4RETogbAOLVY0XM\njs6sPn8G1nALmh9qeDpUtVqFOVtBHxEZ910TLOtQiunjqJKO5nWdqZ71EC3OFluR\niGQkO84BiIFbv37ub7xl3S8XarbtKoLcyVpkDHi+1wx1pgCAn6gtBUgckPL5NR8j\nLseabl3HAXQfhTCKo4tmOFM2Dxwl1IUMmIJrJg/aIU/U0tj/1Eoo7mG0JcNWX19l\nW3EecCbi0ncCJOrkUdwlBrcjaMayaX/ubEwyUeTGiLdyc4L3GRLHjyK8xgVNXRMH\nbZWJ2a5NAgMBAAECggEASxuE+35zTFO/XydKgmvIGcWL9FbgMlXb7Vcf0nBoG945\nbiz0NVc2paraIhJXc608xbYF3qLmtAE1MVBI0ORyRdBHNxY024l/6H6SH60Ed+uI\nM4ysp5ourY6Vj+DLwpdRiI9YDjqYAQDIUmhNxJP7XPhOMoZI6st+xZQBM34ic/bv\nAMSJm9OZphSp3+qXVkFZztr2mxD2EZSJJLYxi8BCdgM2qhazalbcJ6zDKHCZWVWm\n8RRxDGldyMb/237JxETzP40tAlzOZDmBAbUgEnurDJ93RVDIE3rbZUshwgeQd18a\nem096mWgvB1AIKYgsTAR3pw+V19YWAjq/glP6fz8wQKBgQD/oQq+ukKF0PRgBeM5\ngeTjSwsdGppQLmf5ndujvoiz/TpdjDEPu6R8kigQr1rG2t4K/yfdZoI8RdmJD1al\n3Q7N9hofooSy4rj6E3txzWZCHJjHad2cnCp/O26HiReGAl7wTcfTmNdiFHhZQzm5\nJBkvWAiwuvQMNfEbnXxw6/vIDwKBgQDH7fX8gsc77JLvAWgp1MaQN/sbqVb6JeT1\nFQfR8E/WFCSmzQBtNzd5KgYuCeelwr/8DyYytvN2BzCYZXp73gI1jF3YlW5jVn74\nOY6TwQ095digwo6Z0yuxopdIOApKgAkL9PRKgNrqAf3NAyMua6lOGifzjDojC3KU\nfylQmxMn4wKBgHp2B9O/H0dEBw5JQ8W0+JX6yWQz7mEjGiR2/1W+XXb8hQ1zr709\nw1r6Gb+EghRpnZ3fBpYGGbYOMFx8wKHM+N6qW3F0ReX8v2juFGE8aRSa5oYBrWzt\nU16Idjbv8hj84cZ1PJmdyvDtpYn9rpWHOZl4rxEbPvbqkIsOMyNVqdT5AoGAOSge\nmwIIU2le2FVeohbibXiToWTYKMuMmURZ5/r72AgKMmWJKbAPe+Q3wBG01/7FRBpQ\noU8Ma0HC8s6QJbliiEyIx9JwrJWd1vkdecBHONrtA4ibm/5zD2WcOllLF+FitLhi\n3qnX6+6F0IaFGFBPJrTzlv0P4dTz/OAdv52V7GECgYEA2TttOKBAqWllgOaZOkql\nLVMJVmgR7s6tLi1+cEP8ZcapV9aRbRzTAKXm4f8AEhtlG9F9kCOvHYCYGi6JaiWJ\nZkHjeex3T+eE6Di6y5Bm/Ift5jtVhJ4jCVwHOKTMej79NPUFTJfv8hCo29haBDv6\nRXFrv+T21KCcw8k3sJeJWWQ=\n-----END PRIVATE KEY-----";
|
|
39252
39285
|
/*
|
|
39253
39286
|
* The crypto algorithm used for importing key and signing string
|
|
39254
39287
|
*/
|
|
@@ -40745,4 +40778,4 @@ const createUserToken = async (apiKey, apiRegion, params) => {
|
|
|
40745
40778
|
return { accessToken: data.accessToken };
|
|
40746
40779
|
};
|
|
40747
40780
|
|
|
40748
|
-
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 };
|
|
40781
|
+
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 };
|