bx-rest 0.1.5 → 0.1.6

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.
@@ -749,7 +749,6 @@ class SessionKeyServices extends BaseServices {
749
749
  getAuth() {
750
750
  switch (BX_REST_SETTINGS.auth.key) {
751
751
  case 'auth':
752
- console.log('Cookies.get(\'auth\')', CookiesServices.get('auth'));
753
752
  return CookiesServices.get('auth');
754
753
  default:
755
754
  if (window.BX && window.BX.bitrix_sessid()) {
@@ -801,7 +800,6 @@ class SessionKeyServices extends BaseServices {
801
800
  return false;
802
801
  }
803
802
  getAuthParams() {
804
- console.log('BX_REST_SETTINGS', BX_REST_SETTINGS);
805
803
  switch (BX_REST_SETTINGS.auth.source) {
806
804
  case 'cookies':
807
805
  return this.getAuth();
@@ -1220,7 +1218,9 @@ const $kill = 'kill';
1220
1218
  const $template = 'template';
1221
1219
  const $activity = 'activity';
1222
1220
  const $robot = 'robot';
1223
- const $send = 'send';
1221
+ const $send = 'send';
1222
+ const $share = 'share';
1223
+ const $blogcomment = 'blogcomment';
1224
1224
 
1225
1225
  class BaseMapServices extends BaseServices {
1226
1226
  }
@@ -1811,6 +1811,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
1811
1811
  }]
1812
1812
  }], ctorParameters: function () { return [{ type: BXRestBizprocWorkflow }, { type: BXRestBizprocActivity }, { type: BXRestBizprocTask }, { type: BXRestBizprocRobot }, { type: BXRestBizprocEvent }]; } });
1813
1813
 
1814
+ class BXRestLogBlogPost {
1815
+ constructor(http) {
1816
+ this.http = http;
1817
+ this.url = {
1818
+ add: [$log, $blogpost, $add],
1819
+ // getusers: {
1820
+ // important: 'log.blogpost.getusers.important' // Отдает массив ID пользователей, прочитавших Важное сообщение
1821
+ // },
1822
+ get: [$log, $blogpost, $get],
1823
+ delete: [$log, $blogpost, $delete],
1824
+ share: [$log, $blogpost, $share],
1825
+ update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
1826
+ };
1827
+ }
1828
+ add(param) {
1829
+ return this.http.post(this.url.add, param);
1830
+ }
1831
+ }
1832
+ BXRestLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, deps: [{ token: HttpBXServices }], target: i0.ɵɵFactoryTarget.Injectable });
1833
+ BXRestLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, providedIn: 'root' });
1834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogPost, decorators: [{
1835
+ type: Injectable,
1836
+ args: [{
1837
+ providedIn: 'root'
1838
+ }]
1839
+ }], ctorParameters: function () { return [{ type: HttpBXServices }]; } });
1840
+
1841
+ class BXRestLogBlogComment {
1842
+ constructor() {
1843
+ this.url = {
1844
+ add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
1845
+ };
1846
+ }
1847
+ }
1848
+ BXRestLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1849
+ BXRestLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, providedIn: 'root' });
1850
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLogBlogComment, decorators: [{
1851
+ type: Injectable,
1852
+ args: [{
1853
+ providedIn: 'root'
1854
+ }]
1855
+ }] });
1856
+
1857
+ class BXRestLog {
1858
+ constructor(blogPost, blogComment) {
1859
+ this.blogPost = blogPost;
1860
+ this.blogComment = blogComment;
1861
+ }
1862
+ }
1863
+ BXRestLog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, deps: [{ token: BXRestLogBlogPost }, { token: BXRestLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable });
1864
+ BXRestLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, providedIn: 'root' });
1865
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestLog, decorators: [{
1866
+ type: Injectable,
1867
+ args: [{
1868
+ providedIn: 'root'
1869
+ }]
1870
+ }], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: BXRestLogBlogComment }]; } });
1871
+
1814
1872
  class Navvy {
1815
1873
  constructor(snackBar) {
1816
1874
  this.snackBar = snackBar;
@@ -2598,6 +2656,65 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2598
2656
  }]
2599
2657
  }], ctorParameters: function () { return [{ type: BXRestNavvyBizprocWorkflow }, { type: BXRestNavvyLists }]; } });
2600
2658
 
2659
+ class BXRestNavvyLogBlogPost {
2660
+ constructor(BXRestLogBlogPost, Navvy) {
2661
+ this.BXRestLogBlogPost = BXRestLogBlogPost;
2662
+ this.Navvy = Navvy;
2663
+ this.url = {
2664
+ add: [$log, $blogpost, $add],
2665
+ // getusers: {
2666
+ // important: 'log.blogpost.getusers.important' // Отдает массив ID пользователей, прочитавших Важное сообщение
2667
+ // },
2668
+ get: [$log, $blogpost, $get],
2669
+ delete: [$log, $blogpost, $delete],
2670
+ share: [$log, $blogpost, $share],
2671
+ update: [$log, $blogpost, $update], // Изменяет сообщение Живой Ленты
2672
+ };
2673
+ }
2674
+ add(param) {
2675
+ return this.Navvy.mapAndSnackBarError(this.BXRestLogBlogPost.add(param), 'При добавлении поста');
2676
+ }
2677
+ }
2678
+ BXRestNavvyLogBlogPost.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, deps: [{ token: BXRestLogBlogPost }, { token: Navvy }], target: i0.ɵɵFactoryTarget.Injectable });
2679
+ BXRestNavvyLogBlogPost.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, providedIn: 'root' });
2680
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogPost, decorators: [{
2681
+ type: Injectable,
2682
+ args: [{
2683
+ providedIn: 'root'
2684
+ }]
2685
+ }], ctorParameters: function () { return [{ type: BXRestLogBlogPost }, { type: Navvy }]; } });
2686
+
2687
+ class BXRestNavvyLogBlogComment {
2688
+ constructor() {
2689
+ this.url = {
2690
+ add: [$log, $blogcomment, $add], // Добавляет комментарий к сообщению Живой ленты
2691
+ };
2692
+ }
2693
+ }
2694
+ BXRestNavvyLogBlogComment.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2695
+ BXRestNavvyLogBlogComment.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, providedIn: 'root' });
2696
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLogBlogComment, decorators: [{
2697
+ type: Injectable,
2698
+ args: [{
2699
+ providedIn: 'root'
2700
+ }]
2701
+ }] });
2702
+
2703
+ class BXRestNavvyLog {
2704
+ constructor(blogPost, blogComment) {
2705
+ this.blogPost = blogPost;
2706
+ this.blogComment = blogComment;
2707
+ }
2708
+ }
2709
+ BXRestNavvyLog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, deps: [{ token: BXRestNavvyLogBlogPost }, { token: BXRestNavvyLogBlogComment }], target: i0.ɵɵFactoryTarget.Injectable });
2710
+ BXRestNavvyLog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, providedIn: 'root' });
2711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvyLog, decorators: [{
2712
+ type: Injectable,
2713
+ args: [{
2714
+ providedIn: 'root'
2715
+ }]
2716
+ }], ctorParameters: function () { return [{ type: BXRestNavvyLogBlogPost }, { type: BXRestNavvyLogBlogComment }]; } });
2717
+
2601
2718
  class BXRestMapLists extends BaseMapServices {
2602
2719
  constructor(element) {
2603
2720
  super();
@@ -2614,39 +2731,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
2614
2731
  }], ctorParameters: function () { return [{ type: BXRestMapListsElement }]; } });
2615
2732
 
2616
2733
  class BXRest {
2617
- constructor(user, lists, tasks, disk, bizproc) {
2734
+ constructor(user, lists, tasks, disk, bizproc, log) {
2618
2735
  this.user = user;
2619
2736
  this.lists = lists;
2620
2737
  this.tasks = tasks;
2621
2738
  this.disk = disk;
2622
2739
  this.bizproc = bizproc;
2740
+ this.log = log;
2623
2741
  }
2624
2742
  }
2625
- BXRest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }], target: i0.ɵɵFactoryTarget.Injectable });
2743
+ BXRest.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, deps: [{ token: BXRestUser }, { token: BXRestLists }, { token: BXRestTasks }, { token: BXRestDisk }, { token: BXRestBizproc }, { token: BXRestLog }], target: i0.ɵɵFactoryTarget.Injectable });
2626
2744
  BXRest.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, providedIn: 'root' });
2627
2745
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRest, decorators: [{
2628
2746
  type: Injectable,
2629
2747
  args: [{
2630
2748
  providedIn: 'root'
2631
2749
  }]
2632
- }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }]; } });
2750
+ }], ctorParameters: function () { return [{ type: BXRestUser }, { type: BXRestLists }, { type: BXRestTasks }, { type: BXRestDisk }, { type: BXRestBizproc }, { type: BXRestLog }]; } });
2633
2751
  class BXRestNavvy {
2634
- constructor(user, lists, tasks, disk, bizproc) {
2752
+ constructor(user, lists, tasks, disk, bizproc, log) {
2635
2753
  this.user = user;
2636
2754
  this.lists = lists;
2637
2755
  this.tasks = tasks;
2638
2756
  this.disk = disk;
2639
2757
  this.bizproc = bizproc;
2758
+ this.log = log;
2640
2759
  }
2641
2760
  }
2642
- BXRestNavvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }], target: i0.ɵɵFactoryTarget.Injectable });
2761
+ BXRestNavvy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, deps: [{ token: BXRestNavvyUser }, { token: BXRestNavvyLists }, { token: BXRestNavvyTasks }, { token: BXRestNavvyDisk }, { token: BXRestNavvyBizproc }, { token: BXRestNavvyLog }], target: i0.ɵɵFactoryTarget.Injectable });
2643
2762
  BXRestNavvy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, providedIn: 'root' });
2644
2763
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BXRestNavvy, decorators: [{
2645
2764
  type: Injectable,
2646
2765
  args: [{
2647
2766
  providedIn: 'root'
2648
2767
  }]
2649
- }], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }]; } });
2768
+ }], ctorParameters: function () { return [{ type: BXRestNavvyUser }, { type: BXRestNavvyLists }, { type: BXRestNavvyTasks }, { type: BXRestNavvyDisk }, { type: BXRestNavvyBizproc }, { type: BXRestNavvyLog }]; } });
2650
2769
  class BXRestMap {
2651
2770
  constructor(lists) {
2652
2771
  this.lists = lists;