@lilaquadrat/interfaces 1.19.0 → 1.21.0
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.
- package/CHANGELOG.md +14 -0
- package/lib/cjs/CategoryStructure.d.ts +10 -0
- package/lib/cjs/CategoryStructureWithRequired.d.ts +4 -0
- package/lib/cjs/EmailsContent.d.ts +5 -3
- package/lib/cjs/GenericData.d.ts +3 -2
- package/lib/cjs/GenericDataWithContent.d.ts +2 -1
- package/lib/cjs/List.d.ts +1 -1
- package/lib/cjs/Structure.d.ts +38 -0
- package/lib/cjs/index.d.ts +3 -0
- package/lib/esm/CategoryStructure.d.ts +10 -0
- package/lib/esm/CategoryStructure.js +2 -0
- package/lib/esm/CategoryStructure.js.map +1 -0
- package/lib/esm/CategoryStructureWithRequired.d.ts +4 -0
- package/lib/esm/CategoryStructureWithRequired.js +2 -0
- package/lib/esm/CategoryStructureWithRequired.js.map +1 -0
- package/lib/esm/EmailsContent.d.ts +5 -3
- package/lib/esm/GenericData.d.ts +3 -2
- package/lib/esm/GenericDataWithContent.d.ts +2 -1
- package/lib/esm/List.d.ts +1 -1
- package/lib/esm/Structure.d.ts +38 -0
- package/lib/esm/Structure.js +2 -0
- package/lib/esm/Structure.js.map +1 -0
- package/lib/esm/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/CategoryStructure.ts +9 -0
- package/src/CategoryStructureWithRequired.ts +3 -0
- package/src/EmailsContent.ts +6 -6
- package/src/GenericData.ts +3 -2
- package/src/GenericDataWithContent.ts +2 -1
- package/src/List.ts +1 -1
- package/src/Structure.ts +44 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.21.0](https://github.com/lilaquadrat/interfaces/compare/v1.20.0...v1.21.0) (2025-03-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **structures:** added structures types ([1523e11](https://github.com/lilaquadrat/interfaces/commit/1523e11894954e99096528a122b8550aa57ae80f))
|
|
11
|
+
|
|
12
|
+
## [1.20.0](https://github.com/lilaquadrat/interfaces/compare/v1.19.0...v1.20.0) (2025-03-10)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **list & emailscontent:** refactored emailsContent ([6a96a3f](https://github.com/lilaquadrat/interfaces/commit/6a96a3f8d180c0d09731c208a1fffb72655dcb50))
|
|
18
|
+
|
|
5
19
|
## [1.19.0](https://github.com/lilaquadrat/interfaces/compare/v1.18.1...v1.19.0) (2025-02-07)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ListParticipants } from "./ListParticipants";
|
|
2
|
+
import { ObjectIdString } from "./ObjectIdString";
|
|
1
3
|
export interface EmailsContent {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
contentId: ObjectIdString;
|
|
5
|
+
audience: 'public' | 'members';
|
|
6
|
+
affectedState: ListParticipants['state'];
|
|
5
7
|
}
|
package/lib/cjs/GenericData.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ import { Content } from "./Content";
|
|
|
3
3
|
import { Customers } from "./Customers";
|
|
4
4
|
import { List } from "./List";
|
|
5
5
|
import { Media } from "./Media";
|
|
6
|
-
|
|
6
|
+
import { Structure } from "./Structure";
|
|
7
|
+
type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media' | 'structures';
|
|
7
8
|
type GenericData = {
|
|
8
9
|
[key in CompatibleGenericDataType]: string[];
|
|
9
10
|
} & {
|
|
10
|
-
data: BasicData<Content | List | Customers | Media>[];
|
|
11
|
+
data: BasicData<Content | List | Customers | Media | Structure>[];
|
|
11
12
|
};
|
|
12
13
|
export { GenericData, CompatibleGenericDataType };
|
|
@@ -4,7 +4,8 @@ import { Customers } from "./Customers";
|
|
|
4
4
|
import { CompatibleGenericDataType } from "./GenericData";
|
|
5
5
|
import { List } from "./List";
|
|
6
6
|
import { Media } from "./Media";
|
|
7
|
+
import { Structure } from "./Structure";
|
|
7
8
|
type GenericDataWithContent = {
|
|
8
|
-
[key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media>>;
|
|
9
|
+
[key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media | Structure>>;
|
|
9
10
|
};
|
|
10
11
|
export { GenericDataWithContent };
|
package/lib/cjs/List.d.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface Structure {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier for the structure
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The question text
|
|
8
|
+
*/
|
|
9
|
+
question: string;
|
|
10
|
+
/**
|
|
11
|
+
* Type of the structure
|
|
12
|
+
*/
|
|
13
|
+
type: 'string' | 'text' | 'number' | 'select' | 'boolean';
|
|
14
|
+
model: 'listsParticipants' | 'customers';
|
|
15
|
+
/**
|
|
16
|
+
* Maximum value for number type or maximum length for text type
|
|
17
|
+
*/
|
|
18
|
+
max?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum value for number type or minimum length for text type
|
|
21
|
+
*/
|
|
22
|
+
min?: number;
|
|
23
|
+
multiple?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Available options for select and multiselect types
|
|
26
|
+
*/
|
|
27
|
+
options?: {
|
|
28
|
+
value: string;
|
|
29
|
+
text: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
}[];
|
|
32
|
+
/**
|
|
33
|
+
* Company identifier
|
|
34
|
+
*/
|
|
35
|
+
company: string;
|
|
36
|
+
project: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export * from './BaseFilterOptions';
|
|
|
18
18
|
export * from './BasicData';
|
|
19
19
|
export * from './BasicDataDatabase';
|
|
20
20
|
export * from './CallResponse';
|
|
21
|
+
export * from './CategoryStructure';
|
|
22
|
+
export * from './CategoryStructureWithRequired';
|
|
21
23
|
export * from './Certificate';
|
|
22
24
|
export * from './CertificateAction';
|
|
23
25
|
export * from './CertificateActionResult';
|
|
@@ -133,6 +135,7 @@ export * from './ShareClient';
|
|
|
133
135
|
export * from './ShareClientOptions';
|
|
134
136
|
export * from './ShopifyProjectSettings';
|
|
135
137
|
export * from './SkipLimitSort';
|
|
138
|
+
export * from './Structure';
|
|
136
139
|
export * from './StudioIframeMessage';
|
|
137
140
|
export * from './SystemDomain';
|
|
138
141
|
export * from './Tracker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryStructure.js","sourceRoot":"","sources":["../../src/CategoryStructure.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryStructureWithRequired.js","sourceRoot":"","sources":["../../src/CategoryStructureWithRequired.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ListParticipants } from "./ListParticipants";
|
|
2
|
+
import { ObjectIdString } from "./ObjectIdString";
|
|
1
3
|
export interface EmailsContent {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
contentId: ObjectIdString;
|
|
5
|
+
audience: 'public' | 'members';
|
|
6
|
+
affectedState: ListParticipants['state'];
|
|
5
7
|
}
|
package/lib/esm/GenericData.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ import { Content } from "./Content";
|
|
|
3
3
|
import { Customers } from "./Customers";
|
|
4
4
|
import { List } from "./List";
|
|
5
5
|
import { Media } from "./Media";
|
|
6
|
-
|
|
6
|
+
import { Structure } from "./Structure";
|
|
7
|
+
type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media' | 'structures';
|
|
7
8
|
type GenericData = {
|
|
8
9
|
[key in CompatibleGenericDataType]: string[];
|
|
9
10
|
} & {
|
|
10
|
-
data: BasicData<Content | List | Customers | Media>[];
|
|
11
|
+
data: BasicData<Content | List | Customers | Media | Structure>[];
|
|
11
12
|
};
|
|
12
13
|
export { GenericData, CompatibleGenericDataType };
|
|
@@ -4,7 +4,8 @@ import { Customers } from "./Customers";
|
|
|
4
4
|
import { CompatibleGenericDataType } from "./GenericData";
|
|
5
5
|
import { List } from "./List";
|
|
6
6
|
import { Media } from "./Media";
|
|
7
|
+
import { Structure } from "./Structure";
|
|
7
8
|
type GenericDataWithContent = {
|
|
8
|
-
[key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media>>;
|
|
9
|
+
[key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media | Structure>>;
|
|
9
10
|
};
|
|
10
11
|
export { GenericDataWithContent };
|
package/lib/esm/List.d.ts
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface Structure {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier for the structure
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The question text
|
|
8
|
+
*/
|
|
9
|
+
question: string;
|
|
10
|
+
/**
|
|
11
|
+
* Type of the structure
|
|
12
|
+
*/
|
|
13
|
+
type: 'string' | 'text' | 'number' | 'select' | 'boolean';
|
|
14
|
+
model: 'listsParticipants' | 'customers';
|
|
15
|
+
/**
|
|
16
|
+
* Maximum value for number type or maximum length for text type
|
|
17
|
+
*/
|
|
18
|
+
max?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Minimum value for number type or minimum length for text type
|
|
21
|
+
*/
|
|
22
|
+
min?: number;
|
|
23
|
+
multiple?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Available options for select and multiselect types
|
|
26
|
+
*/
|
|
27
|
+
options?: {
|
|
28
|
+
value: string;
|
|
29
|
+
text: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
}[];
|
|
32
|
+
/**
|
|
33
|
+
* Company identifier
|
|
34
|
+
*/
|
|
35
|
+
company: string;
|
|
36
|
+
project: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Structure.js","sourceRoot":"","sources":["../../src/Structure.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export * from './BaseFilterOptions';
|
|
|
18
18
|
export * from './BasicData';
|
|
19
19
|
export * from './BasicDataDatabase';
|
|
20
20
|
export * from './CallResponse';
|
|
21
|
+
export * from './CategoryStructure';
|
|
22
|
+
export * from './CategoryStructureWithRequired';
|
|
21
23
|
export * from './Certificate';
|
|
22
24
|
export * from './CertificateAction';
|
|
23
25
|
export * from './CertificateActionResult';
|
|
@@ -133,6 +135,7 @@ export * from './ShareClient';
|
|
|
133
135
|
export * from './ShareClientOptions';
|
|
134
136
|
export * from './ShopifyProjectSettings';
|
|
135
137
|
export * from './SkipLimitSort';
|
|
138
|
+
export * from './Structure';
|
|
136
139
|
export * from './StudioIframeMessage';
|
|
137
140
|
export * from './SystemDomain';
|
|
138
141
|
export * from './Tracker';
|
package/package.json
CHANGED
package/src/EmailsContent.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { ListParticipants } from "./ListParticipants"
|
|
2
|
+
import { ObjectIdString } from "./ObjectIdString"
|
|
3
|
+
|
|
1
4
|
export interface EmailsContent {
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
waiting: string
|
|
6
|
+
contentId: ObjectIdString
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
active: string
|
|
8
|
+
audience: 'public' | 'members'
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
post: string
|
|
10
|
+
affectedState: ListParticipants['state']
|
|
11
11
|
}
|
package/src/GenericData.ts
CHANGED
|
@@ -3,13 +3,14 @@ import { Content } from "./Content"
|
|
|
3
3
|
import { Customers } from "./Customers";
|
|
4
4
|
import { List } from "./List";
|
|
5
5
|
import { Media } from "./Media";
|
|
6
|
+
import { Structure } from "./Structure";
|
|
6
7
|
|
|
7
|
-
type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media';
|
|
8
|
+
type CompatibleGenericDataType = 'editor' | 'lists' | 'customers' | 'media' | 'structures';
|
|
8
9
|
|
|
9
10
|
type GenericData = {
|
|
10
11
|
[key in CompatibleGenericDataType]: string[]
|
|
11
12
|
} & {
|
|
12
|
-
data: BasicData<Content | List | Customers | Media>[];
|
|
13
|
+
data: BasicData<Content | List | Customers | Media | Structure>[];
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
|
|
@@ -4,9 +4,10 @@ import { Customers } from "./Customers";
|
|
|
4
4
|
import { CompatibleGenericDataType } from "./GenericData";
|
|
5
5
|
import { List } from "./List";
|
|
6
6
|
import { Media } from "./Media";
|
|
7
|
+
import { Structure } from "./Structure";
|
|
7
8
|
|
|
8
9
|
type GenericDataWithContent = {
|
|
9
|
-
[key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media>>
|
|
10
|
+
[key in CompatibleGenericDataType]: Record<string, BasicData<Content | List | Customers | Media | Structure>>
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export { GenericDataWithContent };
|
package/src/List.ts
CHANGED
package/src/Structure.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface Structure {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier for the structure
|
|
4
|
+
*/
|
|
5
|
+
id: string
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The question text
|
|
9
|
+
*/
|
|
10
|
+
question: string
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Type of the structure
|
|
14
|
+
*/
|
|
15
|
+
type: 'string' | 'text' | 'number' | 'select' | 'boolean'
|
|
16
|
+
model: 'listsParticipants' | 'customers'
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Maximum value for number type or maximum length for text type
|
|
20
|
+
*/
|
|
21
|
+
max?: number
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Minimum value for number type or minimum length for text type
|
|
25
|
+
*/
|
|
26
|
+
min?: number
|
|
27
|
+
multiple?: boolean
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Available options for select and multiselect types
|
|
31
|
+
*/
|
|
32
|
+
options?: {
|
|
33
|
+
value: string
|
|
34
|
+
text: string
|
|
35
|
+
description?: string
|
|
36
|
+
}[]
|
|
37
|
+
/**
|
|
38
|
+
* Company identifier
|
|
39
|
+
*/
|
|
40
|
+
company: string
|
|
41
|
+
project: string
|
|
42
|
+
|
|
43
|
+
description?: string
|
|
44
|
+
}
|