@etsoo/appscript 1.4.86 → 1.4.87

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.
@@ -1,4 +1,4 @@
1
- import { IdType, ListType, ListType1 } from '@etsoo/shared';
1
+ import { ListType, ListType1 } from '@etsoo/shared';
2
2
  import { CultureGridItem } from './CultureItem';
3
3
  /**
4
4
  * Business utils
@@ -27,13 +27,4 @@ export declare namespace BusinessUtils {
27
27
  * @returns 12 months
28
28
  */
29
29
  function getMonths(monthLabels: string[], startMonth?: number): ListType[];
30
- /**
31
- * Set id value
32
- * @param item QueryRQ or TiplistRQ or similiar item
33
- * @param id Id value
34
- */
35
- function setIdValue<T extends {
36
- id?: number;
37
- sid?: string;
38
- }>(item: T, id?: IdType): void;
39
30
  }
@@ -78,18 +78,4 @@ var BusinessUtils;
78
78
  return months;
79
79
  }
80
80
  BusinessUtils.getMonths = getMonths;
81
- /**
82
- * Set id value
83
- * @param item QueryRQ or TiplistRQ or similiar item
84
- * @param id Id value
85
- */
86
- function setIdValue(item, id) {
87
- if (id == null)
88
- return;
89
- if (typeof id === 'number')
90
- item.id = id;
91
- else
92
- item.sid = id;
93
- }
94
- BusinessUtils.setIdValue = setIdValue;
95
81
  })(BusinessUtils || (exports.BusinessUtils = BusinessUtils = {}));
@@ -9,10 +9,6 @@ export type QueryRQ<T extends IdType = number> = {
9
9
  * Number id
10
10
  */
11
11
  id?: T;
12
- /**
13
- * String id
14
- */
15
- sid?: string;
16
12
  /**
17
13
  * Query paging data
18
14
  */
@@ -8,10 +8,6 @@ export type TiplistRQ<T extends IdType = number> = {
8
8
  * number id
9
9
  */
10
10
  id?: T;
11
- /**
12
- * String id
13
- */
14
- sid?: string;
15
11
  /**
16
12
  * Excluded ids
17
13
  */
@@ -1,4 +1,4 @@
1
- import { IdType, ListType, ListType1 } from '@etsoo/shared';
1
+ import { ListType, ListType1 } from '@etsoo/shared';
2
2
  import { CultureGridItem } from './CultureItem';
3
3
  /**
4
4
  * Business utils
@@ -27,13 +27,4 @@ export declare namespace BusinessUtils {
27
27
  * @returns 12 months
28
28
  */
29
29
  function getMonths(monthLabels: string[], startMonth?: number): ListType[];
30
- /**
31
- * Set id value
32
- * @param item QueryRQ or TiplistRQ or similiar item
33
- * @param id Id value
34
- */
35
- function setIdValue<T extends {
36
- id?: number;
37
- sid?: string;
38
- }>(item: T, id?: IdType): void;
39
30
  }
@@ -75,18 +75,4 @@ export var BusinessUtils;
75
75
  return months;
76
76
  }
77
77
  BusinessUtils.getMonths = getMonths;
78
- /**
79
- * Set id value
80
- * @param item QueryRQ or TiplistRQ or similiar item
81
- * @param id Id value
82
- */
83
- function setIdValue(item, id) {
84
- if (id == null)
85
- return;
86
- if (typeof id === 'number')
87
- item.id = id;
88
- else
89
- item.sid = id;
90
- }
91
- BusinessUtils.setIdValue = setIdValue;
92
78
  })(BusinessUtils || (BusinessUtils = {}));
@@ -9,10 +9,6 @@ export type QueryRQ<T extends IdType = number> = {
9
9
  * Number id
10
10
  */
11
11
  id?: T;
12
- /**
13
- * String id
14
- */
15
- sid?: string;
16
12
  /**
17
13
  * Query paging data
18
14
  */
@@ -8,10 +8,6 @@ export type TiplistRQ<T extends IdType = number> = {
8
8
  * number id
9
9
  */
10
10
  id?: T;
11
- /**
12
- * String id
13
- */
14
- sid?: string;
15
11
  /**
16
12
  * Excluded ids
17
13
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.4.86",
3
+ "version": "1.4.87",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.1.42",
56
56
  "@etsoo/restclient": "^1.1.3",
57
- "@etsoo/shared": "^1.2.37",
57
+ "@etsoo/shared": "^1.2.40",
58
58
  "crypto-js": "^4.2.0"
59
59
  },
60
60
  "devDependencies": {
@@ -1,4 +1,4 @@
1
- import { IdType, ListType, ListType1 } from '@etsoo/shared';
1
+ import { ListType, ListType1 } from '@etsoo/shared';
2
2
  import { CultureGridItem } from './CultureItem';
3
3
 
4
4
  /**
@@ -94,18 +94,4 @@ export namespace BusinessUtils {
94
94
 
95
95
  return months;
96
96
  }
97
-
98
- /**
99
- * Set id value
100
- * @param item QueryRQ or TiplistRQ or similiar item
101
- * @param id Id value
102
- */
103
- export function setIdValue<T extends { id?: number; sid?: string }>(
104
- item: T,
105
- id?: IdType
106
- ) {
107
- if (id == null) return;
108
- if (typeof id === 'number') item.id = id;
109
- else item.sid = id;
110
- }
111
97
  }
@@ -11,11 +11,6 @@ export type QueryRQ<T extends IdType = number> = {
11
11
  */
12
12
  id?: T;
13
13
 
14
- /**
15
- * String id
16
- */
17
- sid?: string;
18
-
19
14
  /**
20
15
  * Query paging data
21
16
  */
@@ -10,11 +10,6 @@ export type TiplistRQ<T extends IdType = number> = {
10
10
  */
11
11
  id?: T;
12
12
 
13
- /**
14
- * String id
15
- */
16
- sid?: string;
17
-
18
13
  /**
19
14
  * Excluded ids
20
15
  */