forked from kinow-io/kinow-javascript-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
1198 lines (1198 loc) · 45.3 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
declare module 'kinow-javascript-sdk' {
interface I18nField {
lang: number
value: string
}
interface VideoFreeAccess {
hasStreaming: boolean
hasDownload: boolean
}
interface Actor {
id: number
name: string
description_short: Array<I18nField>
description: Array<I18nField>
image: string
images: Array<Image>
meta_title: Array<I18nField>
meta_description: Array<I18nField>
meta_keywords: Array<I18nField>
link_rewrite: Array<I18nField>
roles: Array<I18nField>
active: boolean
date_add: string
date_upd: string
}
interface Address {
id: number
id_customer: number
company: string
address1: string
postcode: string
city: string
id_country: number
id_state: number
date_add: string
date_upd: string
}
interface Bonus {
id: number
file_name: string
mime: string
url: string
name: Array<I18nField>
description: Array<I18nField>
}
interface BlogCategory {
position: number
active: number
date_add: string
date_upd: string
name: Array<I18nField>
meta_title: Array<I18nField>
meta_description: Array<I18nField>
link_rewrite: Array<I18nField>
id: number
meta_keywords: Array<I18nField>
}
interface BlogPage {
id_lang: number
title: string
link_rewrite: string
description_short: string
description: string
meta_title: string
meta_description: string
meta_keywords: string
date_add: string
date_issue: string
date_upd: string
active: number
id_blog_category: number
cover: string
id: number
}
interface CMSCategory {
id_parent: number
position: number
level_depth: number
active: boolean
date_add: string
date_upd: string
name: Array<I18nField>
description: Array<I18nField>
link_rewrite: Array<I18nField>
meta_title: Array<I18nField>
meta_keywords: Array<I18nField>
meta_description: Array<I18nField>
id: number
}
interface CMSPage {
id: number
id_cms_category: number
active: boolean
position: number
link_rewrite: Array<I18nField>
meta_title: Array<I18nField>
meta_description: Array<I18nField>
meta_keywords: Array<I18nField>
content: Array<I18nField>
}
interface Cart {
id: number
date_add: string
date_upd: string
id_customer: number
id_currency: number
id_lang: number
total: number
total_without_tax: number
total_trial: number
available_checkout_processes: Array<string>
cart_rules: Array<CartRule>
products: Array<Product>
}
interface CartRule {
id: number
id_customer: number
description: string
priority: number
partial_use: boolean
code: string
active: boolean
date_add: string
date_upd: string
name: Array<I18nField>
date_from: string
date_to: string
quantity: number
quantity_per_user: number
minimum_amount: number
minimum_amount_tax: number
minimum_amount_currency: number
every_recurring_payments: boolean
reduction_percent: number
reduction_amount: number
reduction_tax: number
restriction_groups: Array<CartRuleRestrictionGroup>
}
interface CartRuleRestrictionGroup {
quantity: number
items: Array<CartRuleRestrictionGroupItem>
}
interface CartRuleRestrictionGroupItem {
type: string
id_item: number
}
interface Category {
id: number
id_parent: number
date_add: string
date_upd: string
active: boolean
level_depth: number
position: number
images: Array<Image>
meta_description: Array<I18nField>
meta_keywords: Array<I18nField>
meta_title: Array<I18nField>
link_rewrite: Array<I18nField>
name: Array<I18nField>
description: Array<I18nField>
description_short: Array<I18nField>
}
interface Configuration {
id: number
name: string
value: string
}
interface Contact {
id: number
email: string
name: Array<I18nField>
description: Array<I18nField>
}
interface Country {
id: number
iso_code: string
id_zone: string
name: Array<I18nField>
}
interface Currency {
id: number
name: string
iso_code: string
iso_code_num: string
sign: string
conversion_rate: number
format: number
blank: number
decimals: number
}
interface Customer {
id: number
lastname: string
firstname: string
email: string
id_gender: number
birthday: string
newsletter: boolean
optin: boolean
notification: boolean
active: boolean
id_lang: number
date_add: string
date_upd: string
max_viewing: number
custom: string
password: string
last_passwd_gen: string
id_country: number
}
interface CustomerGroupVideoStats {
group_id: number
video_id: number
played: number
duration: number
views: number
}
interface CustomerVideoStats {
customer_id: number
played: number
duration: number
views: number
}
interface Device {
id: number
id_customer: number
fingerprint: string
type: string
os: string
application: string
date_add: string
date_upd: string
}
interface Director {
id: number
name: string
description_short: Array<I18nField>
description: Array<I18nField>
image: string
images: Array<Image>
meta_title: Array<I18nField>
meta_description: Array<I18nField>
meta_keywords: Array<I18nField>
link_rewrite: Array<I18nField>
roles: Array<I18nField>
active: boolean
date_add: string
date_upd: string
}
interface Employee {
id: number
email: string
firstname: string
lastname: string
active: boolean
}
interface Extract {
id: number
id_product: number
id_product_image: number
id_media_player: number
id_media_source: number
filename: string
position: number
active: boolean
date_add: string
date_upd: string
name: Array<I18nField>
description: Array<I18nField>
cover: string
thumbnail: string
advertising_url: string
}
interface Feature {
id: number
position: number
name: string
name_i18n: Array<I18nField>
}
interface FeatureValue {
id: number
id_feature: number
custom: boolean
value: Array<I18nField>
}
interface Gender {
id: number
type: number
name: Array<I18nField>
}
interface Geoloc {
id: number
iso_code: string
name: Array<I18nField>
}
interface Gift {
id: number
id_cart: number
id_product: number
id_product_attribute: number
firstname: string
lastname: string
message: string
custom: string
email: string
used: boolean
date_send: string
}
interface GiftToken {
token: string
}
interface Group {
id: number
name: Array<I18nField>
date_add: string
date_upd: string
}
interface IPCoordinates {
latitude: number
longitude: number
}
interface IPLocation {
ip: string
continent: string
country: string
time_zone: string
}
interface Image {
id: number
source: string
type: string
}
interface Language {
id: number
name: string
iso_code: string
active: boolean
}
interface MediaFile {
id: number
id_media_source: number
filename: string
title: string
cover: string
thumbnail: string
details: string
}
interface MediaSource {
id: number
name: string
active: boolean
external_player: number
}
interface Order {
id: number
id_order_renew: number
id_cart: number
id_currency: number
id_customer: number
current_state: number
payment: string
module: string
total_discounts: number
total_discounts_tax_incl: number
total_discounts_tax_excl: number
total_paid: number
total_paid_tax_incl: number
total_paid_tax_excl: number
total_products: number
total_products_wt: number
conversion_rate: number
invoice_number: number
invoice_date: string
valid: boolean
reference: string
date_add: string
date_upd: string
}
interface OrderHistory {
id: number
id_order: number
id_order_state: number
date_add: string
}
interface OrderState {
id: number
paid: boolean
deleted: boolean
name: Array<I18nField>
}
interface Page {
id: number
enabled: boolean
title: Array<I18nField>
description: Array<I18nField>
keywords: Array<I18nField>
url_rewrite: Array<I18nField>
}
interface Pagination {
total: number
current_page: number
per_page: number
last_page: number
next_page_url: string
prev_page_url: string
from: number
to: number
}
interface PaymentArguments {
token: string
type: string
}
interface PaymentDetails {
identifier: string
metadata: string
}
interface PaymentMethods {
identifier: string
metadata: string
}
interface PaymentModule {
id: number
name: string
displayName: string
description: string
}
interface PlatformAccessInfo {
can_access: boolean
can_buy: boolean
}
interface PrepaymentBalance {
amount: number
type: string
}
interface PrepaymentBonus {
id: number
name: string
id_product: number
id_product_attribute: number
amount: number
type: string
date_add: string
date_upd: string
}
interface PrepaymentOperation {
id: number
id_customer: number
id_order: number
amount: number
type: string
date_add: string
date_upd: string
}
interface PrepaymentRecharge {
id: number
id_product: number
amount: number
type: string
date_add: string
date_upd: string
active: boolean
}
interface Product {
id: number
reference: string
date_from: string
date_to: string
visible_before_publication: boolean
visible_after_publication: boolean
price: number
price_mode: number
position: number
active: boolean
available_for_order: boolean
date_add: string
date_upd: string
id_category_default: number
images: Array<Image>
attributes: Array<ProductAttribute>
meta_description: Array<I18nField>
meta_keywords: Array<I18nField>
meta_title: Array<I18nField>
link_rewrite: Array<I18nField>
name: Array<I18nField>
description: Array<I18nField>
description_short: Array<I18nField>
tags: Array<Tag>
can_buy: boolean
available_in_subscriptions: boolean
duration: number
type: string
sub: boolean
has_group_restriction: boolean
group_restriction_behavior: number
geoloc_enabled: boolean
behavior_detected_countries: string
behavior_non_detected_countries: string
id_product_attribute: number
roles: string
categories: Array<ProductCategories>
}
interface ProductAccess {
id: number
id_customer: number
id_product: number
id_product_attribute: number
type: string
date_add: string
date_exp: string
cancel: number
recurring: number
active: number
message: string
id_order: number
date_renewal: string
payment_method: string
renewed: number
}
interface ProductAccessInfo {
id_product: number
can_see: boolean
can_buy: boolean
can_watch: boolean
}
interface ProductAttribute {
id: number
video_id: number
name: string
price: number
price_mode: number
price_noreduc: number
mode: string
type: string
quality: string
duration: number
watching_duration: number
active: number
}
interface ProductCategories {
id: number
position: number
}
interface Screenshot {
id: number
source: string
position: number
type: string
}
interface SessionVideoStat {
customer_id: number
video_id: number
date: string
iso_code: string
watched_time: number
watched_number: number
played_number: number
}
interface Subscription {
id: number
id_product: number
duration: number
download: boolean
trial_duration: number
trial_percent: number
trial_sub: number
limit: boolean
limit_duration: number
alert_type: string
alert_qty: number
active: boolean
recurring_payment: number
}
interface Subtitle {
id: number
src: string
srclang: string
name: string
font: string
size: number
color: string
text_shadow: string
background: string
opacity: number
italic_color: boolean
}
interface SubtitleFile {
filename: string
}
interface Support {
id: number
id_lang: number
id_contact: number
id_customer: number
id_order: number
id_product: number
status: string
email: string
date_add: string
date_upd: string
}
interface SupportMessage {
id: number
id_support: number
message: string
private: boolean
date_add: string
date_upd: string
}
interface Tag {
id: number
id_lang: number
name: string
}
interface Task {
id: number
name: string
data: string
status: string
date_add: string
}
interface TaxRule {
id: number
id_country: number
id_state: number
rate: number
name: string
}
interface Video {
id: number
id_product: number
id_product_image: number
id_language: number
language_filter: number
id_media_source: number
name: Array<I18nField>
description: Array<I18nField>
duration: number
filename: string
position: number
subscription: number
free: number
download: number
active: boolean
date_add: string
date_upd: string
can_watch: boolean
cover: string
thumbnail: string
geoloc_enabled: boolean
behavior_detected_countries: string
behavior_non_detected_countries: string
has_free_access: object
advertising_url: string
}
interface VideoAccessInfo {
id_video: number
streaming: boolean
download: boolean
maximum_watched: boolean
maximum_viewing: boolean
quality_hd: boolean
quality_sd: boolean
expires: string
play_duration: number
error_code: number
}
interface VideoCategory {
id: number
id_category: number
id_media_source: number
filename: string
cover: string
thumbnail: string
date_add: string
date_upd: string
}
interface VideoStat {
video_id: number
played: number
duration: number
views: number
}
interface WidgetFooterMenu {
id: number
label: Array<I18nField>
url: Array<I18nField>
column: string
type: string
type_id: number
blank: number
position: number
}
interface WidgetHookPhrase {
id: number
label: Array<I18nField>
url: Array<I18nField>
type: string
type_id: number
blank: boolean
color: boolean
position: number
}
interface WidgetSlider {
id: number
label: Array<I18nField>
description: Array<I18nField>
url: Array<I18nField>
type: string
type_id: number
blank: number
over: number
button: number
opacity: number
image: string
position: number
}
interface WidgetTopMenu {
id: number
label: Array<I18nField>
description: Array<I18nField>
url: Array<I18nField>
type: string
type_id: number
blank: number
unfold: number
position: number
}
export class OAuthApi {
constructor(config?: ApiClient)
getToken(clientId: string, clientSecret: string, callback?: Function): any
}
export class ActorsApi {
constructor(config?: ApiClient)
getActors(opts?: any, callback?: Function): any
createActor(body: any, callback?: Function): Promise<Actor>
getActor(actorId: number, callback?: Function): Promise<Actor>
updateActor(actorId: number, body: any, callback?: Function): any
deleteActor(actorId: number, callback?: Function): any
getActorProducts(actorId: number, opts?: any, callback?: Function): any
getActorProductsRole(actorId: number, opts?: any, callback?: Function): any
getActorCoverImage(actorId: number, callback?: Function): Promise<Image>
uploadActorCover(actorId: number, file: File, hash: string, opts?: any, callback?: Function): Promise<Image>
getProductActors(productId: number, opts?: any, callback?: Function): any
attachProductToActor(productId: number, actorId: number, callback?: Function): any
getProductActorsRole(productId: number, opts?: any, callback?: Function): any
}
export class AddressApi {
constructor(config?: ApiClient)
updateAddress(addressId: number, body: any, callback?: Function): Promise<Address>
getCustomerAddress(customerId: number, callback?: Function): Promise<Address>
}
export class AttributesApi {
constructor(config?: ApiClient)
createProductAttribute(body: any, callback?: Function): Promise<ProductAttribute>
deleteAttribute(attributeId: number, callback?: Function): any
getProductAttributes(productId: number, opts?: any, callback?: Function): any
}
export class BlogCategoriesApi {
constructor(config?: ApiClient)
getBlogCategories(opts?: any, callback?: Function): any
getBlogCategory(blogCategoryId: number, callback?: Function): Promise<BlogCategory>
}
export class BlogPagesApi {
constructor(config?: ApiClient)
getBlogPages(opts?: any, callback?: Function): any
getBlogPage(blogPageId: number, callback?: Function): Promise<BlogPage>
}
export class BookmarksApi {
constructor(config?: ApiClient)
getCustomerBookmarks(customerId: number, opts?: any, callback?: Function): any
attachBookmarkToCustomer(customerId: number, productId: number, callback?: Function): any
detachBookmarkFromCustomer(customerId: number, productId: number, callback?: Function): any
}
export class CMSCategoriesApi {
constructor(config?: ApiClient)
getCMSCategories(opts?: any, callback?: Function): any
createCMSCategory(body: any, callback?: Function): Promise<CMSCategory>
updateCMSCategory(cmsCategoryId: number, body: any, callback?: Function): Promise<CMSCategory>
}
export class CMSPagesApi {
constructor(config?: ApiClient)
getCMSPages(opts?: any, callback?: Function): any
createCMSPage(body: any, callback?: Function): Promise<CMSPage>
updateCMSPage(cmsPageId: number, body: any, callback?: Function): Promise<CMSPage>
}
export class CartsApi {
constructor(config?: ApiClient)
getCart(cartId: number, callback?: Function): Promise<Cart>
updateCart(cartId: number, body: any, callback?: Function): Promise<Cart>
deleteCart(cartId: number, callback?: Function): any
createCart(body: any, callback?: Function): Promise<Cart>
attachCartRuleToCart(cartId: number, code: string, callback?: Function): any
detachCartRuleFromCart(cartId: number, cartRuleId: number, callback?: Function): any
addProductToCart(cartId: number, productId: number, opts?: any, callback?: Function): Promise<Cart>
deleteProductFromCart(cartId: number, productId: number, opts?: any, callback?: Function): any
validateFreeOrder(cartId: number, callback?: Function): any
getCustomerCarts(customerId: number, opts?: any, callback?: Function): any
attachCartToCustomer(customerId: number, cartId: number, callback?: Function): Promise<Cart>
getLastCart(customerId: number, callback?: Function): Promise<Cart>
emptyCart(cartId: number, callback?: Function): any
getPaymentUrl(cartId: number, paymentName: string, callback?: Function): any
preparePayment(cartId: number, paymentName: string, callback?: Function): any
validatePayment(cartId: number, paymentName: string, paymentArgument: any, callback?: Function): any
}
export class CartRulesApi {
constructor(config?: ApiClient)
attachCartRuleToCart(cartId: number, code: string, callback?: Function): any
detachCartRuleFromCart(cartId: number, cartRuleId: number, callback?: Function): any
getCartRules(opts?: any, callback?: Function): any
createCartRule(body: any, callback?: Function): any
getCartRule(cartRuleId: number, callback?: Function): Promise<CartRule>
updateCartRule(cartRuleId: number, body: any, callback?: Function): any
deleteCartRule(cartRuleId: number, callback?: Function): any
}
export class PaymentModulesApi {
constructor(config?: ApiClient)
validateFreeOrder(cartId: number, callback?: Function): any
getPaymentModules(opts?: any, callback?: Function): any
getPaymentUrl(cartId: number, paymentName: string, callback?: Function): any
preparePayment(cartId: number, paymentName: string, callback?: Function): any
validatePayment(cartId: number, paymentName: string, paymentArgument: any, callback?: Function): any
getPaymentMethods(customerId: number, paymentName: string, callback?: Function): any
updatePaymentMethod(customerId: number, paymentName: string, paymentArguments: any, callback?: Function): any
getPendingPayments(paymentName: string, customerId: number, callback?: Function): any
}
export class CustomersApi {
constructor(config?: ApiClient)
getCustomerCarts(customerId: number, opts?: any, callback?: Function): any
attachCartToCustomer(customerId: number, cartId: number, callback?: Function): Promise<Cart>
getCustomers(opts?: any, callback?: Function): any
createCustomer(body: any, callback?: Function): Promise<Customer>
getCustomer(customerId: number, callback?: Function): Promise<Customer>
updateCustomer(customerId: number, body: any, callback?: Function): Promise<Customer>
deleteCustomer(customerId: number, callback?: Function): any
getCustomerOrders(customerId: number, opts?: any, callback?: Function): any
getCustomerHasAccessToVideo(customerId: number, videoId: number, callback?: Function): any
getCustomerHasAccessToVideos(customerId: number, body: any, callback?: Function): any
getCustomerHasAccessToProduct(customerId: number, productId: number, callback?: Function): any
getCustomerHasAccessToProducts(customerId: number, body: any, callback?: Function): any
getCustomerCanSeeProduct(customerId: number, productId: number, callback?: Function): any
getCustomerAddress(customerId: number, callback?: Function): Promise<Address>
checkCustomerCredentials(email: string, password: string, callback?: Function): Promise<Customer>
validateCustomerCredentials(email: string, password: string, callback?: Function): any
generateAuthenticationToken(customerId: number, callback?: Function): any
checkAuthenticationToken(token: string, callback?: Function): Promise<Customer>
getCustomerCurrentViews(customerId: number, callback?: Function): any
getCustomerGroups(customerId: number, opts?: any, callback?: Function): any
passwordToken(email: string, callback?: Function): any
passwordTokenConsume(token: string, password: string, callback?: Function): any
getFacebookCustomer(facebookId: number, callback?: Function): any
createFacebookId(customerId: number, facebookId: string, callback?: Function): any
loginWithFacebook(tokenType: string, token: string, opts?: any, callback?: Function): Promise<Customer>
getPaymentMethods(customerId: number, paymentName: string, callback?: Function): any
updatePaymentMethod(customerId: number, paymentName: string, paymentArguments: any, callback?: Function): any
getPendingPayments(paymentName: string, customerId: number, callback?: Function): any
getCustomerPrepaymentBalances(customerId: number, callback?: Function): any
getCustomerPrepaymentOperations(customerId: number, opts?: any, callback?: Function): any
getCustomerAccessesVideos(customerId: number, opts?: any, callback?: Function): any
getCustomerAccessesSubscriptions(customerId: number, opts?: any, callback?: Function): any
stopSubscription(customerId: number, productAccessId: string, callback?: Function): any
}
export class CategoriesApi {
constructor(config?: ApiClient)
getCategories(opts?: any, callback?: Function): any
createCategory(body: any, callback?: Function): Promise<Category>
getCategory(categoryId: number, callback?: Function): Promise<Category>
updateCategory(categoryId: number, body: any, callback?: Function): Promise<Category>
deleteCategory(categoryId: number, callback?: Function): any
getCategoryProducts(categoryId: number, opts?: any, callback?: Function): any
getCategoryFeatures(categoryId: number, opts?: any, callback?: Function): any
getAvailableCategory(categoryId: number, opts?: any, callback?: Function): Promise<Category>
getCategoriesFromCategory(categoryId: number, opts?: any, callback?: Function): any
getVideosFromCategory(categoryId: number, opts?: any, callback?: Function): any
getVideosFromCategories(opts?: any, callback?: Function): any
getCategoryVideoPlayer(videoId: number, opts?: any, callback?: Function): any
getCategoryVideoSubtitles(videoId: number, opts?: any, callback?: Function): any
getCategoryBanner(categoryId: number, callback?: Function): Promise<Image>
getProductCategories(productId: number, opts?: any, callback?: Function): any
getSubscriptionCategories(subscriptionId: number, opts?: any, callback?: Function): any
uploadCategoryCover(categoryId: number, file: File, hash: string, opts?: any, callback?: Function): Promise<Image>
}
export class ProductsApi {
constructor(config?: ApiClient)
getCategoryProducts(categoryId: number, opts?: any, callback?: Function): any
getCustomerHasAccessToProduct(customerId: number, productId: number, callback?: Function): any
getCustomerHasAccessToProducts(customerId: number, body: any, callback?: Function): any
getProductCoverImage(productId: number, callback?: Function): Promise<Image>
uploadProductCover(productId: number, file: File, hash: string, opts?: any, callback?: Function): Promise<Image>
getProductScreenshots(productId: number, callback?: Function): any
getProducts(opts?: any, callback?: Function): any
createProduct(body: any, callback?: Function): Promise<Product>
getProduct(productId: number, callback?: Function): Promise<Product>
updateProduct(productId: number, body: any, callback?: Function): Promise<Product>
deleteProduct(productId: number, callback?: Function): any
getVideosFromProduct(productId: number, opts?: any, callback?: Function): any
attachVideoToProduct(productId: number, videoId: number, callback?: Function): any
getProductFeatures(productId: number, opts?: any, callback?: Function): any
attachFeaturesToProduct(productId: number, features: string, callback?: Function): any
getProductGeolocations(productId: number, opts?: any, callback?: Function): any
setProductGeolocation(productId: number, enabled: number, behaviorDetectedCountries: string, behaviorNonDetectedCountries: string, opts?: any, callback?: Function): any
getProductGeolocationsByIp(productId: number, ipAddress: string, opts?: any, callback?: Function): any
getProductAttributes(productId: number, opts?: any, callback?: Function): any
getProductImages(productId: number, opts?: any, callback?: Function): any
getProductAvailability(productId: number, callback?: Function): any
getProductDirectors(productId: number, opts?: any, callback?: Function): any
attachProductToDirector(productId: number, directorId: number, callback?: Function): any
getProductDirectorsRole(productId: number, opts?: any, callback?: Function): any
getProductActors(productId: number, opts?: any, callback?: Function): any
attachProductToActor(productId: number, actorId: number, callback?: Function): any
getProductActorsRole(productId: number, opts?: any, callback?: Function): any
getProductExtracts(productId: number, opts?: any, callback?: Function): any
detachFeatureToProduct(productId: number, featureId: number, callback?: Function): any
searchProducts(searchQuery: string, opts?: any, callback?: Function): any
getProductCategories(productId: number, opts?: any, callback?: Function): any
attachProductToCategory(productId: number, categoryId: number, callback?: Function): any
detachProductFromCategory(productId: number, categoryId: number, callback?: Function): any
getProductsFromProduct(productId: number, opts?: any, callback?: Function): any
associateProducts(productId: number, associatedProductIds: string, callback?: Function): any
getProductGroups(productId: number, opts?: any, callback?: Function): any
attachProductToGroup(productId: number, groupId: number, callback?: Function): any
detachProductFromGroup(productId: number, groupId: number, callback?: Function): any
updateProductGroupRestrictionBehavior(productId: number, behavior: number, callback?: Function): any
getProductSubscription(productId: number, callback?: Function): Promise<Subscription>
getBestSales(opts?: any, callback?: Function): any
}
export class FeaturesApi {
constructor(config?: ApiClient)
getCategoryFeatures(categoryId: number, opts?: any, callback?: Function): any
getExtractFeatures(extractId: number, opts?: any, callback?: Function): any
attachFeaturesToExtract(extractId: number, features: string, callback?: Function): any
getFeatures(opts?: any, callback?: Function): any
getFeatureValues(opts?: any, callback?: Function): any
getProductFeatures(productId: number, opts?: any, callback?: Function): any
attachFeaturesToProduct(productId: number, features: string, callback?: Function): any
detachFeatureToProduct(productId: number, featureId: number, callback?: Function): any
getVideoFeatures(videoId: number, opts?: any, callback?: Function): any
attachFeaturesToVideo(videoId: number, features: string, callback?: Function): any
}
export class VideosApi {
constructor(config?: ApiClient)
getVideosFromCategory(categoryId: number, opts?: any, callback?: Function): any
getVideosFromCategories(opts?: any, callback?: Function): any
getCategoryVideoPlayer(videoId: number, opts?: any, callback?: Function): any
getCategoryVideoSubtitles(videoId: number, opts?: any, callback?: Function): any
getCustomerHasAccessToVideo(customerId: number, videoId: number, callback?: Function): any
getCustomerHasAccessToVideos(customerId: number, body: any, callback?: Function): any
getVideoCover(videoId: number, callback?: Function): Promise<Image>
attachCoverToVideo(videoId: number, idImage: number, callback?: Function): any
getVideosFromProduct(productId: number, opts?: any, callback?: Function): any
attachVideoToProduct(productId: number, videoId: number, callback?: Function): any
createSubtitle(videoId: number, body: any, callback?: Function): Promise<Subtitle>
getVideos(opts?: any, callback?: Function): any
createVideo(body: any, callback?: Function): Promise<Video>
getVideo(videoId: number, callback?: Function): Promise<Video>
updateVideo(videoId: number, body: any, callback?: Function): Promise<Video>
deleteVideo(videoId: number, callback?: Function): any
getDisabledSubscriptions(videoId: number, opts?: any, callback?: Function): any
getVideoViews(videoId: number, callback?: Function): any
getVideoAccess(videoId: number, customerId: number, callback?: Function): any
getVideoPlayer(videoId: number, opts?: any, callback?: Function): any
getVideoDownloadUrl(videoId: number, opts?: any, callback?: Function): any
getVideoGeolocation(videoId: number, opts?: any, callback?: Function): any
getVideoGeolocationByIp(videoId: number, ipAddress: string, opts?: any, callback?: Function): any
setVideoGeolocation(videoId: number, enabled: number, behaviorDetectedCountries: string, behaviorNonDetectedCountries: string, opts?: any, callback?: Function): any
getVideoSubtitles(videoId: number, opts?: any, callback?: Function): any
getVideoFeatures(videoId: number, opts?: any, callback?: Function): any
attachFeaturesToVideo(videoId: number, features: string, callback?: Function): any
getVideoBonus(videoId: number, callback?: Function): any
}
export class ConfigurationApi {
constructor(config?: ApiClient)
getConfiguration(opts?: any, callback?: Function): any
getConfigurationByName(configurationName: string, callback?: Function): Promise<Configuration>
}
export class CountriesApi {
constructor(config?: ApiClient)
getCountries(opts?: any, callback?: Function): any
}
export class CurrenciesApi {
constructor(config?: ApiClient)
getCurrencies(opts?: any, callback?: Function): any
}
export class OrdersApi {
constructor(config?: ApiClient)
getCustomerOrders(customerId: number, opts?: any, callback?: Function): any
getOrders(opts?: any, callback?: Function): any
getOrder(orderId: number, callback?: Function): Promise<Order>
getOrderInvoice(orderId: number, opts?: any, callback?: Function): any
getOrderHistories(orderId: number, opts?: any, callback?: Function): any
}
export class DevicesApi {
constructor(config?: ApiClient)
getCustomerDevices(customerId: number, opts?: any, callback?: Function): any
createDevices(body: any, callback?: Function): Promise<Device>
deleteDevice(deviceId: number, callback?: Function): any
}
export class DirectorsApi {
constructor(config?: ApiClient)
getDirectors(opts?: any, callback?: Function): any