@wix/media 1.0.36 → 1.0.38
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/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +2 -2
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +3 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.d.ts +78 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +38 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +64 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +60 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.public.d.ts +1 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js +2 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.types.d.ts +32 -0
- package/build/cjs/src/media-site-media-v1-folder.types.js +28 -1
- package/build/cjs/src/media-site-media-v1-folder.types.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +39 -0
- package/build/cjs/src/media-site-media-v1-folder.universal.js +41 -1
- package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +2 -2
- package/build/es/src/media-site-media-v1-file-descriptor.public.js +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +78 -1
- package/build/es/src/media-site-media-v1-file-descriptor.types.js +37 -0
- package/build/es/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +64 -1
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +59 -0
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.public.d.ts +1 -1
- package/build/es/src/media-site-media-v1-folder.public.js +1 -1
- package/build/es/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.types.d.ts +32 -0
- package/build/es/src/media-site-media-v1-folder.types.js +27 -0
- package/build/es/src/media-site-media-v1-folder.types.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.universal.d.ts +39 -0
- package/build/es/src/media-site-media-v1-folder.universal.js +40 -0
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -342,9 +342,50 @@ export declare enum OperationStatus {
|
|
|
342
342
|
PENDING = "PENDING"
|
|
343
343
|
}
|
|
344
344
|
export declare enum State {
|
|
345
|
+
/** File is ready for consumption */
|
|
345
346
|
OK = "OK",
|
|
347
|
+
/** Deleted file */
|
|
346
348
|
DELETED = "DELETED"
|
|
347
349
|
}
|
|
350
|
+
export declare enum Namespace {
|
|
351
|
+
NO_NAMESPACE = "NO_NAMESPACE",
|
|
352
|
+
OTHERS = "OTHERS",
|
|
353
|
+
/** ANY = 2; */
|
|
354
|
+
WIX_VIDEO = "WIX_VIDEO",
|
|
355
|
+
/** _nsWixMusic */
|
|
356
|
+
WIX_MUSIC = "WIX_MUSIC",
|
|
357
|
+
/** _nsArtStore */
|
|
358
|
+
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
359
|
+
/** _nsDigitalProduct */
|
|
360
|
+
WIX_ECOM = "WIX_ECOM",
|
|
361
|
+
/** _nsPhotoShareApp */
|
|
362
|
+
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
363
|
+
/** _nsSharingApp, */
|
|
364
|
+
SHARING_APP = "SHARING_APP",
|
|
365
|
+
/** engage */
|
|
366
|
+
CHAT = "CHAT",
|
|
367
|
+
/** logobuilder */
|
|
368
|
+
LOGO_BUILDER = "LOGO_BUILDER",
|
|
369
|
+
/** WixExposure */
|
|
370
|
+
ALBUMS_OLD = "ALBUMS_OLD",
|
|
371
|
+
/** chat-mobile-uploads */
|
|
372
|
+
CHAT_MOBILE = "CHAT_MOBILE",
|
|
373
|
+
/** _nsWixForms */
|
|
374
|
+
WIX_FORMS = "WIX_FORMS"
|
|
375
|
+
}
|
|
376
|
+
export interface IdentityInfo {
|
|
377
|
+
/** The type of the user that uploaded the file */
|
|
378
|
+
identityType?: IdentityType;
|
|
379
|
+
/** User Id. empty when UNKNOWN */
|
|
380
|
+
identityId?: string | null;
|
|
381
|
+
}
|
|
382
|
+
export declare enum IdentityType {
|
|
383
|
+
UNKNOWN = "UNKNOWN",
|
|
384
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
385
|
+
MEMBER = "MEMBER",
|
|
386
|
+
WIX_USER = "WIX_USER",
|
|
387
|
+
APP = "APP"
|
|
388
|
+
}
|
|
348
389
|
export interface FileReady {
|
|
349
390
|
/** File entity that is ready with full information */
|
|
350
391
|
file?: FileDescriptor;
|
|
@@ -570,7 +611,7 @@ export interface BulkImportFileResponse {
|
|
|
570
611
|
export interface BulkImportFileResult {
|
|
571
612
|
/** updated item metadata */
|
|
572
613
|
itemMetadata?: ItemMetadata;
|
|
573
|
-
/** only returned if operation was successful
|
|
614
|
+
/** only returned if operation was successful */
|
|
574
615
|
item?: FileDescriptor;
|
|
575
616
|
}
|
|
576
617
|
export interface ItemMetadata {
|
|
@@ -895,6 +936,10 @@ export interface GetFileDescriptorResponseNonNullableFields {
|
|
|
895
936
|
siteId: string;
|
|
896
937
|
state: State;
|
|
897
938
|
internalTags: string[];
|
|
939
|
+
namespace: Namespace;
|
|
940
|
+
addedBy?: {
|
|
941
|
+
identityType: IdentityType;
|
|
942
|
+
};
|
|
898
943
|
};
|
|
899
944
|
}
|
|
900
945
|
export interface GetFileDescriptorsResponseNonNullableFields {
|
|
@@ -1010,6 +1055,10 @@ export interface GetFileDescriptorsResponseNonNullableFields {
|
|
|
1010
1055
|
siteId: string;
|
|
1011
1056
|
state: State;
|
|
1012
1057
|
internalTags: string[];
|
|
1058
|
+
namespace: Namespace;
|
|
1059
|
+
addedBy?: {
|
|
1060
|
+
identityType: IdentityType;
|
|
1061
|
+
};
|
|
1013
1062
|
}[];
|
|
1014
1063
|
}
|
|
1015
1064
|
export interface UpdateFileDescriptorResponseNonNullableFields {
|
|
@@ -1125,6 +1174,10 @@ export interface UpdateFileDescriptorResponseNonNullableFields {
|
|
|
1125
1174
|
siteId: string;
|
|
1126
1175
|
state: State;
|
|
1127
1176
|
internalTags: string[];
|
|
1177
|
+
namespace: Namespace;
|
|
1178
|
+
addedBy?: {
|
|
1179
|
+
identityType: IdentityType;
|
|
1180
|
+
};
|
|
1128
1181
|
};
|
|
1129
1182
|
}
|
|
1130
1183
|
export interface GenerateFileUploadUrlResponseNonNullableFields {
|
|
@@ -1248,6 +1301,10 @@ export interface ImportFileResponseNonNullableFields {
|
|
|
1248
1301
|
siteId: string;
|
|
1249
1302
|
state: State;
|
|
1250
1303
|
internalTags: string[];
|
|
1304
|
+
namespace: Namespace;
|
|
1305
|
+
addedBy?: {
|
|
1306
|
+
identityType: IdentityType;
|
|
1307
|
+
};
|
|
1251
1308
|
};
|
|
1252
1309
|
}
|
|
1253
1310
|
export interface BulkImportFilesResponseNonNullableFields {
|
|
@@ -1363,6 +1420,10 @@ export interface BulkImportFilesResponseNonNullableFields {
|
|
|
1363
1420
|
siteId: string;
|
|
1364
1421
|
state: State;
|
|
1365
1422
|
internalTags: string[];
|
|
1423
|
+
namespace: Namespace;
|
|
1424
|
+
addedBy?: {
|
|
1425
|
+
identityType: IdentityType;
|
|
1426
|
+
};
|
|
1366
1427
|
}[];
|
|
1367
1428
|
}
|
|
1368
1429
|
export interface BulkImportFileResponseNonNullableFields {
|
|
@@ -1487,6 +1548,10 @@ export interface BulkImportFileResponseNonNullableFields {
|
|
|
1487
1548
|
siteId: string;
|
|
1488
1549
|
state: State;
|
|
1489
1550
|
internalTags: string[];
|
|
1551
|
+
namespace: Namespace;
|
|
1552
|
+
addedBy?: {
|
|
1553
|
+
identityType: IdentityType;
|
|
1554
|
+
};
|
|
1490
1555
|
};
|
|
1491
1556
|
}[];
|
|
1492
1557
|
bulkActionMetadata?: {
|
|
@@ -1608,6 +1673,10 @@ export interface ListFilesResponseNonNullableFields {
|
|
|
1608
1673
|
siteId: string;
|
|
1609
1674
|
state: State;
|
|
1610
1675
|
internalTags: string[];
|
|
1676
|
+
namespace: Namespace;
|
|
1677
|
+
addedBy?: {
|
|
1678
|
+
identityType: IdentityType;
|
|
1679
|
+
};
|
|
1611
1680
|
}[];
|
|
1612
1681
|
}
|
|
1613
1682
|
export interface SearchFilesResponseNonNullableFields {
|
|
@@ -1723,6 +1792,10 @@ export interface SearchFilesResponseNonNullableFields {
|
|
|
1723
1792
|
siteId: string;
|
|
1724
1793
|
state: State;
|
|
1725
1794
|
internalTags: string[];
|
|
1795
|
+
namespace: Namespace;
|
|
1796
|
+
addedBy?: {
|
|
1797
|
+
identityType: IdentityType;
|
|
1798
|
+
};
|
|
1726
1799
|
}[];
|
|
1727
1800
|
}
|
|
1728
1801
|
export interface GenerateVideoStreamingUrlResponseNonNullableFields {
|
|
@@ -1844,5 +1917,9 @@ export interface ListDeletedFilesResponseNonNullableFields {
|
|
|
1844
1917
|
siteId: string;
|
|
1845
1918
|
state: State;
|
|
1846
1919
|
internalTags: string[];
|
|
1920
|
+
namespace: Namespace;
|
|
1921
|
+
addedBy?: {
|
|
1922
|
+
identityType: IdentityType;
|
|
1923
|
+
};
|
|
1847
1924
|
}[];
|
|
1848
1925
|
}
|
|
@@ -21,9 +21,46 @@ export var OperationStatus;
|
|
|
21
21
|
})(OperationStatus || (OperationStatus = {}));
|
|
22
22
|
export var State;
|
|
23
23
|
(function (State) {
|
|
24
|
+
/** File is ready for consumption */
|
|
24
25
|
State["OK"] = "OK";
|
|
26
|
+
/** Deleted file */
|
|
25
27
|
State["DELETED"] = "DELETED";
|
|
26
28
|
})(State || (State = {}));
|
|
29
|
+
export var Namespace;
|
|
30
|
+
(function (Namespace) {
|
|
31
|
+
Namespace["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
32
|
+
Namespace["OTHERS"] = "OTHERS";
|
|
33
|
+
/** ANY = 2; */
|
|
34
|
+
Namespace["WIX_VIDEO"] = "WIX_VIDEO";
|
|
35
|
+
/** _nsWixMusic */
|
|
36
|
+
Namespace["WIX_MUSIC"] = "WIX_MUSIC";
|
|
37
|
+
/** _nsArtStore */
|
|
38
|
+
Namespace["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
39
|
+
/** _nsDigitalProduct */
|
|
40
|
+
Namespace["WIX_ECOM"] = "WIX_ECOM";
|
|
41
|
+
/** _nsPhotoShareApp */
|
|
42
|
+
Namespace["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
43
|
+
/** _nsSharingApp, */
|
|
44
|
+
Namespace["SHARING_APP"] = "SHARING_APP";
|
|
45
|
+
/** engage */
|
|
46
|
+
Namespace["CHAT"] = "CHAT";
|
|
47
|
+
/** logobuilder */
|
|
48
|
+
Namespace["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
49
|
+
/** WixExposure */
|
|
50
|
+
Namespace["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
51
|
+
/** chat-mobile-uploads */
|
|
52
|
+
Namespace["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
53
|
+
/** _nsWixForms */
|
|
54
|
+
Namespace["WIX_FORMS"] = "WIX_FORMS";
|
|
55
|
+
})(Namespace || (Namespace = {}));
|
|
56
|
+
export var IdentityType;
|
|
57
|
+
(function (IdentityType) {
|
|
58
|
+
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
59
|
+
IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
60
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
61
|
+
IdentityType["WIX_USER"] = "WIX_USER";
|
|
62
|
+
IdentityType["APP"] = "APP";
|
|
63
|
+
})(IdentityType || (IdentityType = {}));
|
|
27
64
|
export var UploadProtocol;
|
|
28
65
|
(function (UploadProtocol) {
|
|
29
66
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-site-media-v1-file-descriptor.types.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.types.ts"],"names":[],"mappings":"AAkFA,MAAM,CAAN,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAVW,SAAS,KAAT,SAAS,QAUpB;AAqQD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,uCAAuC;IACvC,oCAAiB,CAAA;IACjB,oCAAoC;IACpC,kCAAe,CAAA;IACf,kEAAkE;IAClE,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"media-site-media-v1-file-descriptor.types.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.types.ts"],"names":[],"mappings":"AAkFA,MAAM,CAAN,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAVW,SAAS,KAAT,SAAS,QAUpB;AAqQD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,uCAAuC;IACvC,oCAAiB,CAAA;IACjB,oCAAoC;IACpC,kCAAe,CAAA;IACf,kEAAkE;IAClE,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,MAAM,CAAN,IAAY,KAKX;AALD,WAAY,KAAK;IACf,oCAAoC;IACpC,kBAAS,CAAA;IACT,mBAAmB;IACnB,4BAAmB,CAAA;AACrB,CAAC,EALW,KAAK,KAAL,KAAK,QAKhB;AAED,MAAM,CAAN,IAAY,SAyBX;AAzBD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,eAAe;IACf,oCAAuB,CAAA;IACvB,kBAAkB;IAClB,oCAAuB,CAAA;IACvB,kBAAkB;IAClB,0DAA6C,CAAA;IAC7C,wBAAwB;IACxB,kCAAqB,CAAA;IACrB,uBAAuB;IACvB,gDAAmC,CAAA;IACnC,qBAAqB;IACrB,wCAA2B,CAAA;IAC3B,aAAa;IACb,0BAAa,CAAA;IACb,kBAAkB;IAClB,0CAA6B,CAAA;IAC7B,kBAAkB;IAClB,sCAAyB,CAAA;IACzB,0BAA0B;IAC1B,wCAA2B,CAAA;IAC3B,kBAAkB;IAClB,oCAAuB,CAAA;AACzB,CAAC,EAzBW,SAAS,KAAT,SAAS,QAyBpB;AASD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AAqLD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,wEAAwE;IACxE,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAuID,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAiED,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,uCAAyB,CAAA;IACzB,sCAAsC;IACtC,uCAAyB,CAAA;IACzB,kCAAkC;IAClC,2DAA6C,CAAA;AAC/C,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAgBD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
|
|
@@ -298,9 +298,50 @@ export declare enum OperationStatus {
|
|
|
298
298
|
PENDING = "PENDING"
|
|
299
299
|
}
|
|
300
300
|
export declare enum State {
|
|
301
|
+
/** File is ready for consumption */
|
|
301
302
|
OK = "OK",
|
|
303
|
+
/** Deleted file */
|
|
302
304
|
DELETED = "DELETED"
|
|
303
305
|
}
|
|
306
|
+
export declare enum Namespace {
|
|
307
|
+
NO_NAMESPACE = "NO_NAMESPACE",
|
|
308
|
+
OTHERS = "OTHERS",
|
|
309
|
+
/** ANY = 2; */
|
|
310
|
+
WIX_VIDEO = "WIX_VIDEO",
|
|
311
|
+
/** _nsWixMusic */
|
|
312
|
+
WIX_MUSIC = "WIX_MUSIC",
|
|
313
|
+
/** _nsArtStore */
|
|
314
|
+
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
315
|
+
/** _nsDigitalProduct */
|
|
316
|
+
WIX_ECOM = "WIX_ECOM",
|
|
317
|
+
/** _nsPhotoShareApp */
|
|
318
|
+
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
319
|
+
/** _nsSharingApp, */
|
|
320
|
+
SHARING_APP = "SHARING_APP",
|
|
321
|
+
/** engage */
|
|
322
|
+
CHAT = "CHAT",
|
|
323
|
+
/** logobuilder */
|
|
324
|
+
LOGO_BUILDER = "LOGO_BUILDER",
|
|
325
|
+
/** WixExposure */
|
|
326
|
+
ALBUMS_OLD = "ALBUMS_OLD",
|
|
327
|
+
/** chat-mobile-uploads */
|
|
328
|
+
CHAT_MOBILE = "CHAT_MOBILE",
|
|
329
|
+
/** _nsWixForms */
|
|
330
|
+
WIX_FORMS = "WIX_FORMS"
|
|
331
|
+
}
|
|
332
|
+
export interface IdentityInfo {
|
|
333
|
+
/** The type of the user that uploaded the file */
|
|
334
|
+
identityType?: IdentityType;
|
|
335
|
+
/** User Id. empty when UNKNOWN */
|
|
336
|
+
identityId?: string | null;
|
|
337
|
+
}
|
|
338
|
+
export declare enum IdentityType {
|
|
339
|
+
UNKNOWN = "UNKNOWN",
|
|
340
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
341
|
+
MEMBER = "MEMBER",
|
|
342
|
+
WIX_USER = "WIX_USER",
|
|
343
|
+
APP = "APP"
|
|
344
|
+
}
|
|
304
345
|
export interface FileReady {
|
|
305
346
|
/** File entity that is ready with full information */
|
|
306
347
|
file?: FileDescriptor;
|
|
@@ -531,7 +572,7 @@ export interface BulkImportFileResponse {
|
|
|
531
572
|
export interface BulkImportFileResult {
|
|
532
573
|
/** updated item metadata */
|
|
533
574
|
itemMetadata?: ItemMetadata;
|
|
534
|
-
/** only returned if operation was successful
|
|
575
|
+
/** only returned if operation was successful */
|
|
535
576
|
item?: FileDescriptor;
|
|
536
577
|
}
|
|
537
578
|
export interface ItemMetadata {
|
|
@@ -1314,6 +1355,7 @@ export interface ListDeletedFilesResponseNonNullableFields {
|
|
|
1314
1355
|
* @param fileIds - IDs of the files to download.
|
|
1315
1356
|
* @public
|
|
1316
1357
|
* @requiredField fileIds
|
|
1358
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1317
1359
|
* @permissionScope Manage Media Manager
|
|
1318
1360
|
* @applicableIdentity APP
|
|
1319
1361
|
*/
|
|
@@ -1329,6 +1371,7 @@ export declare function generateFilesDownloadUrl(fileIds: string[]): Promise<Gen
|
|
|
1329
1371
|
* @public
|
|
1330
1372
|
* @requiredField fileId
|
|
1331
1373
|
* @param options - Options to use when generating a file's download URL.
|
|
1374
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1332
1375
|
* @permissionScope Manage Media Manager
|
|
1333
1376
|
* @applicableIdentity APP
|
|
1334
1377
|
*/
|
|
@@ -1362,7 +1405,9 @@ export interface GenerateFileDownloadUrlOptions {
|
|
|
1362
1405
|
* @param fileId - File ID.
|
|
1363
1406
|
* @public
|
|
1364
1407
|
* @requiredField fileId
|
|
1408
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1365
1409
|
* @permissionScope Read Media Manager
|
|
1410
|
+
* @permissionScope Manage Media Manager
|
|
1366
1411
|
* @applicableIdentity APP
|
|
1367
1412
|
* @returns Information about the file.
|
|
1368
1413
|
*/
|
|
@@ -1372,7 +1417,9 @@ export declare function getFileDescriptor(fileId: string): Promise<FileDescripto
|
|
|
1372
1417
|
* @param fileIds - File IDs.
|
|
1373
1418
|
* @public
|
|
1374
1419
|
* @requiredField fileIds
|
|
1420
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1375
1421
|
* @permissionScope Read Media Manager
|
|
1422
|
+
* @permissionScope Manage Media Manager
|
|
1376
1423
|
* @applicableIdentity APP
|
|
1377
1424
|
*/
|
|
1378
1425
|
export declare function getFileDescriptors(fileIds: string[]): Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
@@ -1384,6 +1431,7 @@ export declare function getFileDescriptors(fileIds: string[]): Promise<GetFileDe
|
|
|
1384
1431
|
* @public
|
|
1385
1432
|
* @requiredField _id
|
|
1386
1433
|
* @requiredField file
|
|
1434
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1387
1435
|
* @permissionScope Manage Media Manager
|
|
1388
1436
|
* @applicableIdentity APP
|
|
1389
1437
|
* @returns Information about the updated file.
|
|
@@ -1486,6 +1534,7 @@ export interface UpdateFileDescriptorFile {
|
|
|
1486
1534
|
* @public
|
|
1487
1535
|
* @requiredField mimeType
|
|
1488
1536
|
* @param options - Options to use when generating a file's upload URL.
|
|
1537
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1489
1538
|
* @permissionScope Manage Media Manager
|
|
1490
1539
|
* @applicableIdentity APP
|
|
1491
1540
|
*/
|
|
@@ -1523,6 +1572,7 @@ export interface GenerateFileUploadUrlOptions {
|
|
|
1523
1572
|
* @public
|
|
1524
1573
|
* @requiredField mimeType
|
|
1525
1574
|
* @param options - Options to use when generating a resumable upload URL.
|
|
1575
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1526
1576
|
* @permissionScope Manage Media Manager
|
|
1527
1577
|
* @applicableIdentity APP
|
|
1528
1578
|
*/
|
|
@@ -1572,6 +1622,7 @@ export interface GenerateFileResumableUploadUrlOptions {
|
|
|
1572
1622
|
* @public
|
|
1573
1623
|
* @requiredField url
|
|
1574
1624
|
* @param options - Options to use when importing a single file.
|
|
1625
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1575
1626
|
* @permissionScope Manage Media Manager
|
|
1576
1627
|
* @applicableIdentity APP
|
|
1577
1628
|
*/
|
|
@@ -1620,6 +1671,7 @@ export interface ImportFileOptions {
|
|
|
1620
1671
|
* @requiredField importFileRequests
|
|
1621
1672
|
* @requiredField importFileRequests.url
|
|
1622
1673
|
* @param options - Options to use when uploading multiple files.
|
|
1674
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1623
1675
|
* @permissionScope Manage Media Manager
|
|
1624
1676
|
* @applicableIdentity APP
|
|
1625
1677
|
*/
|
|
@@ -1641,6 +1693,7 @@ export declare function bulkImportFiles(importFileRequests: ImportFileRequest[])
|
|
|
1641
1693
|
* @documentationMaturity preview
|
|
1642
1694
|
* @requiredField importFileRequests
|
|
1643
1695
|
* @requiredField importFileRequests.url
|
|
1696
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1644
1697
|
* @permissionScope Manage Media Manager
|
|
1645
1698
|
* @applicableIdentity APP
|
|
1646
1699
|
*/
|
|
@@ -1651,7 +1704,9 @@ export declare function bulkImportFile(importFileRequests: ImportFileRequest[]):
|
|
|
1651
1704
|
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves the list of files in the root folder of the Media Manager.
|
|
1652
1705
|
* @public
|
|
1653
1706
|
* @param options - Options to use when listing media files.
|
|
1707
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1654
1708
|
* @permissionScope Read Media Manager
|
|
1709
|
+
* @permissionScope Manage Media Manager
|
|
1655
1710
|
* @applicableIdentity APP
|
|
1656
1711
|
*/
|
|
1657
1712
|
export declare function listFiles(options?: ListFilesOptions): Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
|
|
@@ -1686,7 +1741,9 @@ export interface ListFilesOptions {
|
|
|
1686
1741
|
* If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
|
|
1687
1742
|
* @public
|
|
1688
1743
|
* @param options - Options to specify which folders to search.
|
|
1744
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1689
1745
|
* @permissionScope Read Media Manager
|
|
1746
|
+
* @permissionScope Manage Media Manager
|
|
1690
1747
|
* @applicableIdentity APP
|
|
1691
1748
|
*/
|
|
1692
1749
|
export declare function searchFiles(options?: SearchFilesOptions): Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
|
|
@@ -1730,7 +1787,9 @@ export interface SearchFilesOptions {
|
|
|
1730
1787
|
* @public
|
|
1731
1788
|
* @requiredField fileId
|
|
1732
1789
|
* @param options - Options to use when generating a video file's streaming URL.
|
|
1790
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1733
1791
|
* @permissionScope Read Media Manager
|
|
1792
|
+
* @permissionScope Manage Media Manager
|
|
1734
1793
|
* @applicableIdentity APP
|
|
1735
1794
|
*/
|
|
1736
1795
|
export declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
@@ -1760,6 +1819,7 @@ export interface GenerateVideoStreamingUrlOptions {
|
|
|
1760
1819
|
* @public
|
|
1761
1820
|
* @requiredField fileIds
|
|
1762
1821
|
* @param options - Options to use when deleting files.
|
|
1822
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1763
1823
|
* @permissionScope Manage Media Manager
|
|
1764
1824
|
* @applicableIdentity APP
|
|
1765
1825
|
*/
|
|
@@ -1776,6 +1836,7 @@ export interface BulkDeleteFilesOptions {
|
|
|
1776
1836
|
* @param fileIds - IDs of the files to restore from the Media Manager's trash bin.
|
|
1777
1837
|
* @public
|
|
1778
1838
|
* @requiredField fileIds
|
|
1839
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1779
1840
|
* @permissionScope Manage Media Manager
|
|
1780
1841
|
* @applicableIdentity APP
|
|
1781
1842
|
*/
|
|
@@ -1786,7 +1847,9 @@ export declare function bulkRestoreFilesFromTrashBin(fileIds: string[]): Promise
|
|
|
1786
1847
|
* >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
|
|
1787
1848
|
* @public
|
|
1788
1849
|
* @param options - Options to use when listing deleted files from the trash bin.
|
|
1850
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1789
1851
|
* @permissionScope Read Media Manager
|
|
1852
|
+
* @permissionScope Manage Media Manager
|
|
1790
1853
|
* @applicableIdentity APP
|
|
1791
1854
|
*/
|
|
1792
1855
|
export declare function listDeletedFiles(options?: ListDeletedFilesOptions): Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
|
|
@@ -47,9 +47,46 @@ export var OperationStatus;
|
|
|
47
47
|
})(OperationStatus || (OperationStatus = {}));
|
|
48
48
|
export var State;
|
|
49
49
|
(function (State) {
|
|
50
|
+
/** File is ready for consumption */
|
|
50
51
|
State["OK"] = "OK";
|
|
52
|
+
/** Deleted file */
|
|
51
53
|
State["DELETED"] = "DELETED";
|
|
52
54
|
})(State || (State = {}));
|
|
55
|
+
export var Namespace;
|
|
56
|
+
(function (Namespace) {
|
|
57
|
+
Namespace["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
58
|
+
Namespace["OTHERS"] = "OTHERS";
|
|
59
|
+
/** ANY = 2; */
|
|
60
|
+
Namespace["WIX_VIDEO"] = "WIX_VIDEO";
|
|
61
|
+
/** _nsWixMusic */
|
|
62
|
+
Namespace["WIX_MUSIC"] = "WIX_MUSIC";
|
|
63
|
+
/** _nsArtStore */
|
|
64
|
+
Namespace["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
65
|
+
/** _nsDigitalProduct */
|
|
66
|
+
Namespace["WIX_ECOM"] = "WIX_ECOM";
|
|
67
|
+
/** _nsPhotoShareApp */
|
|
68
|
+
Namespace["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
69
|
+
/** _nsSharingApp, */
|
|
70
|
+
Namespace["SHARING_APP"] = "SHARING_APP";
|
|
71
|
+
/** engage */
|
|
72
|
+
Namespace["CHAT"] = "CHAT";
|
|
73
|
+
/** logobuilder */
|
|
74
|
+
Namespace["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
75
|
+
/** WixExposure */
|
|
76
|
+
Namespace["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
77
|
+
/** chat-mobile-uploads */
|
|
78
|
+
Namespace["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
79
|
+
/** _nsWixForms */
|
|
80
|
+
Namespace["WIX_FORMS"] = "WIX_FORMS";
|
|
81
|
+
})(Namespace || (Namespace = {}));
|
|
82
|
+
export var IdentityType;
|
|
83
|
+
(function (IdentityType) {
|
|
84
|
+
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
85
|
+
IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
86
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
87
|
+
IdentityType["WIX_USER"] = "WIX_USER";
|
|
88
|
+
IdentityType["APP"] = "APP";
|
|
89
|
+
})(IdentityType || (IdentityType = {}));
|
|
53
90
|
export var UploadProtocol;
|
|
54
91
|
(function (UploadProtocol) {
|
|
55
92
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
@@ -130,6 +167,7 @@ const _updateFileDescriptorResponse = { file: '_fileDescriptor' };
|
|
|
130
167
|
* @param fileIds - IDs of the files to download.
|
|
131
168
|
* @public
|
|
132
169
|
* @requiredField fileIds
|
|
170
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
133
171
|
* @permissionScope Manage Media Manager
|
|
134
172
|
* @applicableIdentity APP
|
|
135
173
|
*/
|
|
@@ -187,6 +225,7 @@ export function generateFilesDownloadUrl(fileIds) {
|
|
|
187
225
|
* @public
|
|
188
226
|
* @requiredField fileId
|
|
189
227
|
* @param options - Options to use when generating a file's download URL.
|
|
228
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
190
229
|
* @permissionScope Manage Media Manager
|
|
191
230
|
* @applicableIdentity APP
|
|
192
231
|
*/
|
|
@@ -245,7 +284,9 @@ export function generateFileDownloadUrl(fileId, options) {
|
|
|
245
284
|
* @param fileId - File ID.
|
|
246
285
|
* @public
|
|
247
286
|
* @requiredField fileId
|
|
287
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
248
288
|
* @permissionScope Read Media Manager
|
|
289
|
+
* @permissionScope Manage Media Manager
|
|
249
290
|
* @applicableIdentity APP
|
|
250
291
|
* @returns Information about the file.
|
|
251
292
|
*/
|
|
@@ -303,7 +344,9 @@ export function getFileDescriptor(fileId) {
|
|
|
303
344
|
* @param fileIds - File IDs.
|
|
304
345
|
* @public
|
|
305
346
|
* @requiredField fileIds
|
|
347
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
306
348
|
* @permissionScope Read Media Manager
|
|
349
|
+
* @permissionScope Manage Media Manager
|
|
307
350
|
* @applicableIdentity APP
|
|
308
351
|
*/
|
|
309
352
|
export function getFileDescriptors(fileIds) {
|
|
@@ -363,6 +406,7 @@ export function getFileDescriptors(fileIds) {
|
|
|
363
406
|
* @public
|
|
364
407
|
* @requiredField _id
|
|
365
408
|
* @requiredField file
|
|
409
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
366
410
|
* @permissionScope Manage Media Manager
|
|
367
411
|
* @applicableIdentity APP
|
|
368
412
|
* @returns Information about the updated file.
|
|
@@ -433,6 +477,7 @@ export function updateFileDescriptor(_id, file) {
|
|
|
433
477
|
* @public
|
|
434
478
|
* @requiredField mimeType
|
|
435
479
|
* @param options - Options to use when generating a file's upload URL.
|
|
480
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
436
481
|
* @permissionScope Manage Media Manager
|
|
437
482
|
* @applicableIdentity APP
|
|
438
483
|
*/
|
|
@@ -498,6 +543,7 @@ export function generateFileUploadUrl(mimeType, options) {
|
|
|
498
543
|
* @public
|
|
499
544
|
* @requiredField mimeType
|
|
500
545
|
* @param options - Options to use when generating a resumable upload URL.
|
|
546
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
501
547
|
* @permissionScope Manage Media Manager
|
|
502
548
|
* @applicableIdentity APP
|
|
503
549
|
*/
|
|
@@ -571,6 +617,7 @@ export function generateFileResumableUploadUrl(mimeType, options) {
|
|
|
571
617
|
* @public
|
|
572
618
|
* @requiredField url
|
|
573
619
|
* @param options - Options to use when importing a single file.
|
|
620
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
574
621
|
* @permissionScope Manage Media Manager
|
|
575
622
|
* @applicableIdentity APP
|
|
576
623
|
*/
|
|
@@ -652,6 +699,7 @@ export function importFile(url, options) {
|
|
|
652
699
|
* @requiredField importFileRequests
|
|
653
700
|
* @requiredField importFileRequests.url
|
|
654
701
|
* @param options - Options to use when uploading multiple files.
|
|
702
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
655
703
|
* @permissionScope Manage Media Manager
|
|
656
704
|
* @applicableIdentity APP
|
|
657
705
|
*/
|
|
@@ -721,6 +769,7 @@ export function bulkImportFiles(importFileRequests) {
|
|
|
721
769
|
* @documentationMaturity preview
|
|
722
770
|
* @requiredField importFileRequests
|
|
723
771
|
* @requiredField importFileRequests.url
|
|
772
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
724
773
|
* @permissionScope Manage Media Manager
|
|
725
774
|
* @applicableIdentity APP
|
|
726
775
|
*/
|
|
@@ -780,7 +829,9 @@ export function bulkImportFile(importFileRequests) {
|
|
|
780
829
|
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves the list of files in the root folder of the Media Manager.
|
|
781
830
|
* @public
|
|
782
831
|
* @param options - Options to use when listing media files.
|
|
832
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
783
833
|
* @permissionScope Read Media Manager
|
|
834
|
+
* @permissionScope Manage Media Manager
|
|
784
835
|
* @applicableIdentity APP
|
|
785
836
|
*/
|
|
786
837
|
export function listFiles(options) {
|
|
@@ -844,7 +895,9 @@ export function listFiles(options) {
|
|
|
844
895
|
* If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
|
|
845
896
|
* @public
|
|
846
897
|
* @param options - Options to specify which folders to search.
|
|
898
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
847
899
|
* @permissionScope Read Media Manager
|
|
900
|
+
* @permissionScope Manage Media Manager
|
|
848
901
|
* @applicableIdentity APP
|
|
849
902
|
*/
|
|
850
903
|
export function searchFiles(options) {
|
|
@@ -909,7 +962,9 @@ export function searchFiles(options) {
|
|
|
909
962
|
* @public
|
|
910
963
|
* @requiredField fileId
|
|
911
964
|
* @param options - Options to use when generating a video file's streaming URL.
|
|
965
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
912
966
|
* @permissionScope Read Media Manager
|
|
967
|
+
* @permissionScope Manage Media Manager
|
|
913
968
|
* @applicableIdentity APP
|
|
914
969
|
*/
|
|
915
970
|
export function generateVideoStreamingUrl(fileId, options) {
|
|
@@ -972,6 +1027,7 @@ export function generateVideoStreamingUrl(fileId, options) {
|
|
|
972
1027
|
* @public
|
|
973
1028
|
* @requiredField fileIds
|
|
974
1029
|
* @param options - Options to use when deleting files.
|
|
1030
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
975
1031
|
* @permissionScope Manage Media Manager
|
|
976
1032
|
* @applicableIdentity APP
|
|
977
1033
|
*/
|
|
@@ -1027,6 +1083,7 @@ export function bulkDeleteFiles(fileIds, options) {
|
|
|
1027
1083
|
* @param fileIds - IDs of the files to restore from the Media Manager's trash bin.
|
|
1028
1084
|
* @public
|
|
1029
1085
|
* @requiredField fileIds
|
|
1086
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1030
1087
|
* @permissionScope Manage Media Manager
|
|
1031
1088
|
* @applicableIdentity APP
|
|
1032
1089
|
*/
|
|
@@ -1079,7 +1136,9 @@ export function bulkRestoreFilesFromTrashBin(fileIds) {
|
|
|
1079
1136
|
* >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
|
|
1080
1137
|
* @public
|
|
1081
1138
|
* @param options - Options to use when listing deleted files from the trash bin.
|
|
1139
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
1082
1140
|
* @permissionScope Read Media Manager
|
|
1141
|
+
* @permissionScope Manage Media Manager
|
|
1083
1142
|
* @applicableIdentity APP
|
|
1084
1143
|
*/
|
|
1085
1144
|
export function listDeletedFiles(options) {
|