@bprotsyk/aso-core 2.1.40 → 2.1.41

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.
@@ -27,13 +27,14 @@ export interface ISectionsList {
27
27
  id: number;
28
28
  content: IAppOffersSection[];
29
29
  }
30
+ export interface IOfferState {
31
+ offerId: number;
32
+ hidden: boolean;
33
+ }
30
34
  export interface IAppOffersSection {
31
35
  sectionId: number;
32
36
  offerStatesOrdered: {
33
- [key: string]: {
34
- offerId: number;
35
- hidden: boolean;
36
- }[];
37
+ [key: string]: IOfferState[];
37
38
  };
38
39
  }
39
40
  export declare const SectionsListSchema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.40",
3
+ "version": "2.1.41",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -5,12 +5,14 @@ export interface ISectionsList {
5
5
  content: IAppOffersSection[]
6
6
  }
7
7
 
8
+ export interface IOfferState {
9
+ offerId: number,
10
+ hidden: boolean
11
+ }
12
+
8
13
  export interface IAppOffersSection {
9
14
  sectionId: number,
10
- offerStatesOrdered: { [key: string]: {
11
- offerId: number,
12
- hidden: boolean
13
- }[] }
15
+ offerStatesOrdered: { [key: string]: IOfferState[] }
14
16
  }
15
17
 
16
18
  export const SectionsListSchema = new Schema({