bx-rest 0.2.4 → 0.2.5

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.
Files changed (44) hide show
  1. package/README.md +97 -97
  2. package/esm2022/functions/serializeJavascript.mjs +1 -1
  3. package/esm2022/public-api.mjs +1 -1
  4. package/esm2022/request/bx-rest.module.mjs +1 -1
  5. package/esm2022/request/tasks/task.mjs +1 -1
  6. package/esm2022/request/tasks.mjs +1 -1
  7. package/esm2022/request/user.mjs +1 -1
  8. package/esm2022/request-navvy/tasks/task.mjs +1 -1
  9. package/esm2022/request-navvy/tasks.mjs +1 -1
  10. package/esm2022/request-navvy/user.mjs +1 -1
  11. package/esm2022/services/http/HttpBX.mjs +1 -1
  12. package/esm2022/services/http/sessionKey.mjs +1 -1
  13. package/esm2022/services/snack-bar/snack-bar.service.mjs +1 -1
  14. package/esm2022/services/snack-bar/toast-message/toast-message.component.mjs +3 -3
  15. package/esm2022/services/vanilla/JSON.mjs +1 -1
  16. package/esm2022/services/vanilla/localStorage.mjs +1 -1
  17. package/esm2022/services/vanilla//321/201ookies.mjs +1 -1
  18. package/esm2022/typification/auth/save.mjs +1 -1
  19. package/esm2022/typification/rest/base/YesNo.mjs +1 -1
  20. package/esm2022/typification/rest/base/filterGenerator.mjs +1 -1
  21. package/esm2022/typification/rest/base/sort.mjs +1 -1
  22. package/esm2022/typification/rest/lists/element/get.mjs +1 -1
  23. package/esm2022/typification/rest/task/base/fieldsName.mjs +1 -1
  24. package/esm2022/typification/rest/task/elapseditem/get.mjs +1 -1
  25. package/esm2022/typification/rest/task/elapseditem/item.mjs +1 -1
  26. package/esm2022/typification/rest/task/task.mjs +1 -1
  27. package/esm2022/typification/rest/tasks/task/approve.mjs +1 -1
  28. package/esm2022/typification/rest/tasks/task/complete.mjs +1 -1
  29. package/esm2022/typification/rest/tasks/task/defer.mjs +1 -1
  30. package/esm2022/typification/rest/tasks/task/list.mjs +1 -1
  31. package/esm2022/typification/rest/user/get.mjs +1 -1
  32. package/esm2022/typification/rest/user/search.mjs +1 -1
  33. package/esm2022/typification/rest/user/user.mjs +1 -1
  34. package/fesm2022/bx-rest.mjs +2 -2
  35. package/fesm2022/bx-rest.mjs.map +1 -1
  36. package/package.json +1 -1
  37. package/request/tasks/task.d.ts +6 -6
  38. package/typification/rest/base/filterGenerator.d.ts +4 -4
  39. package/typification/rest/lists/element/get.d.ts +2 -2
  40. package/typification/rest/task/elapseditem/get.d.ts +2 -2
  41. package/typification/rest/tasks/task/approve.d.ts +1 -1
  42. package/typification/rest/tasks/task/complete.d.ts +2 -2
  43. package/typification/rest/tasks/task/defer.d.ts +2 -2
  44. package/typification/rest/tasks/task/list.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bx-rest",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "bitrix rest api",
5
5
  "keywords": [
6
6
  "bitrxi",
@@ -4,9 +4,9 @@ import { iBXRestParamTaskAdd } from '../../typification/rest/tasks/task/add';
4
4
  import iBXRestParamTaskGet from '../../typification/rest/tasks/task/get';
5
5
  import { iBXRestParamTasksList, iBXRestParamTasksListHttp } from '../../typification/rest/tasks/task/list';
6
6
  import { iBXRestParamTaskGetAccess, iBXRestTaskGetAccess } from '../../typification/rest/task/access/getaccess';
7
- import { BXRestTasksTaskApproveHttp } from '../../typification/rest/tasks/task/approve';
8
- import { BXRestTasksTaskCompleteHttp } from '../../typification/rest/tasks/task/complete';
9
- import { BXRestTasksTaskDeferHttp } from '../../typification/rest/tasks/task/defer';
7
+ import { iBXRestTasksTaskApproveHttp } from '../../typification/rest/tasks/task/approve';
8
+ import { iBXRestTasksTaskCompleteHttp } from '../../typification/rest/tasks/task/complete';
9
+ import { iBXRestTasksTaskDeferHttp } from '../../typification/rest/tasks/task/defer';
10
10
  import * as i0 from "@angular/core";
11
11
  export declare class BXRestTasksTask {
12
12
  private http;
@@ -57,13 +57,13 @@ export declare class BXRestTasksTask {
57
57
  task: iBXRestHttpTask;
58
58
  }> | undefined>;
59
59
  approve(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
60
- task: BXRestTasksTaskApproveHttp;
60
+ task: iBXRestTasksTaskApproveHttp;
61
61
  }> | undefined>;
62
62
  complete(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
63
- task: BXRestTasksTaskCompleteHttp;
63
+ task: iBXRestTasksTaskCompleteHttp;
64
64
  }> | undefined>;
65
65
  defer(id: number): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
66
- task: BXRestTasksTaskDeferHttp;
66
+ task: iBXRestTasksTaskDeferHttp;
67
67
  }> | undefined>;
68
68
  get(requestArray: iBXRestParamTaskGet): import("rxjs").Observable<import("../../typification/rest/base/answer").iBXRestAnswer<{
69
69
  task: iBXRestHttpTask | undefined;
@@ -1,5 +1,5 @@
1
- export type BXRestFilterGenerator<Type> = {
2
- [Property in keyof Type as `${BXRestFilterGeneratorKey<Property & string>}`]?: Type[Property];
1
+ export type iBXRestFilterGenerator<Type> = {
2
+ [Property in keyof Type as `${iBXRestFilterGeneratorKey<Property & string>}`]?: Type[Property];
3
3
  };
4
- export type BXRestFilterGeneratorKey<T extends string> = `${BXRestFilterKeys}${T}`;
5
- export type BXRestFilterKeys = '' | '<' | '>' | '!' | '<=' | '>=';
4
+ export type iBXRestFilterGeneratorKey<T extends string> = `${iBXRestFilterKeys}${T}`;
5
+ export type iBXRestFilterKeys = '' | '<' | '>' | '!' | '<=' | '>=';
@@ -1,5 +1,5 @@
1
1
  import { iBXRestYesNo } from '../../base/YesNo';
2
- import { BXRestFilterKeys } from '../../base/filterGenerator';
2
+ import { iBXRestFilterKeys } from '../../base/filterGenerator';
3
3
  import { iBXRestPagination } from '../../base/ApiPaginationBX';
4
4
  export interface iBXRestParamListsElementGet extends iBXRestPagination {
5
5
  IBLOCK_TYPE_ID: 'lists' | 'bitrix_processes' | 'lists_socnet';
@@ -27,7 +27,7 @@ export interface iBXRestBaseListsElement {
27
27
  CODE: string | null;
28
28
  IBLOCK_SECTION_ID: string | null;
29
29
  NAME: string;
30
- [key: `${BXRestFilterKeys}PROPERTY_${string}`]: {
30
+ [key: `${iBXRestFilterKeys}PROPERTY_${string}`]: {
31
31
  [key: string]: string | iBXRestParamListsElementGetHtml;
32
32
  };
33
33
  }
@@ -1,5 +1,5 @@
1
1
  import { iBXRestParamSort } from '../../base/sort';
2
- import { BXRestFilterGenerator } from '../../base/filterGenerator';
2
+ import { iBXRestFilterGenerator } from '../../base/filterGenerator';
3
3
  import { iBXRestAlternativePagination } from '../../base/ApiPaginationBX';
4
4
  export interface iBXRestParamElapseditemGet extends iBXRestAlternativePagination {
5
5
  TASKID?: number;
@@ -12,7 +12,7 @@ export interface iBXRestParamElapseditemGet extends iBXRestAlternativePagination
12
12
  DATE_START?: iBXRestParamSort;
13
13
  DATE_STOP?: iBXRestParamSort;
14
14
  };
15
- FILTER?: BXRestFilterGenerator<iBXRestParamElapseditemGetFilter>;
15
+ FILTER?: iBXRestFilterGenerator<iBXRestParamElapseditemGetFilter>;
16
16
  SELECT?: string[];
17
17
  }
18
18
  interface iBXRestParamElapseditemGetFilter {
@@ -1,4 +1,4 @@
1
- export interface BXRestTasksTaskApproveHttp {
1
+ export interface iBXRestTasksTaskApproveHttp {
2
2
  id: string;
3
3
  parentId: string | null;
4
4
  title: string;
@@ -1,3 +1,3 @@
1
- import { BXRestTasksTaskApproveHttp } from './approve';
2
- export interface BXRestTasksTaskCompleteHttp extends BXRestTasksTaskApproveHttp {
1
+ import { iBXRestTasksTaskApproveHttp } from './approve';
2
+ export interface iBXRestTasksTaskCompleteHttp extends iBXRestTasksTaskApproveHttp {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { BXRestTasksTaskApproveHttp } from './approve';
2
- export interface BXRestTasksTaskDeferHttp extends BXRestTasksTaskApproveHttp {
1
+ import { iBXRestTasksTaskApproveHttp } from './approve';
2
+ export interface iBXRestTasksTaskDeferHttp extends iBXRestTasksTaskApproveHttp {
3
3
  }
@@ -1,7 +1,7 @@
1
1
  import { iBXRestParamSort } from '../../base/sort';
2
2
  import { iBXRestYesNo } from '../../base/YesNo';
3
3
  import { iBXRestTaskFieldsName } from '../../task/base/fieldsName';
4
- import { BXRestFilterGenerator } from '../../base/filterGenerator';
4
+ import { iBXRestFilterGenerator } from '../../base/filterGenerator';
5
5
  import { iBXRestPagination } from '../../base/ApiPaginationBX';
6
6
  import { iBXRestHttpTask } from '../../task/task';
7
7
  export interface iBXRestParamTasksListHttp {
@@ -10,7 +10,7 @@ export interface iBXRestParamTasksListHttp {
10
10
  export interface iBXRestParamTasksList extends iBXRestPagination {
11
11
  order?: iBXRestParamTaskListOrder;
12
12
  filter?: iBXRestParamTaskListFilter;
13
- select?: BXRestFilterGenerator<iBXRestTaskFieldsName[]>;
13
+ select?: iBXRestFilterGenerator<iBXRestTaskFieldsName>[];
14
14
  }
15
15
  export interface iBXRestParamTaskListOrder {
16
16
  ID?: iBXRestParamSort;