@lilaquadrat/interfaces 1.21.1 → 1.22.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 +7 -0
- package/lib/cjs/CustomerBase.d.ts +2 -1
- package/lib/cjs/ListParticipants.d.ts +2 -1
- package/lib/cjs/WithStructures.d.ts +19 -0
- package/lib/cjs/index.d.ts +2 -1
- package/lib/esm/CustomerBase.d.ts +2 -1
- package/lib/esm/ListParticipants.d.ts +2 -1
- package/lib/esm/WithStructures.d.ts +19 -0
- package/lib/esm/WithStructures.js +2 -0
- package/lib/esm/WithStructures.js.map +1 -0
- package/lib/esm/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/CustomerBase.ts +3 -1
- package/src/ListParticipants.ts +3 -3
- package/src/WithStructures.ts +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.22.0](https://github.com/lilaquadrat/interfaces/compare/v1.21.1...v1.22.0) (2025-03-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **listsparticipants & customers:** extended for structures ([c222a3f](https://github.com/lilaquadrat/interfaces/commit/c222a3f5ece6e49b054b0c8063821a486dbb55d2))
|
|
11
|
+
|
|
5
12
|
### [1.21.1](https://github.com/lilaquadrat/interfaces/compare/v1.21.0...v1.21.1) (2025-03-25)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ObjectId } from "mongodb";
|
|
2
2
|
import { AgreementResponse } from "./AgreementResponse";
|
|
3
|
-
|
|
3
|
+
import { WithStructures } from "./WithStructures";
|
|
4
|
+
export interface ListParticipants extends WithStructures {
|
|
4
5
|
_id?: ObjectId;
|
|
5
6
|
list: ObjectId;
|
|
6
7
|
company: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Structure } from "./Structure";
|
|
2
|
+
/**
|
|
3
|
+
* A utility type that can be extended by any interface to support
|
|
4
|
+
* dynamic properties with keys prefixed with 's-'
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* interface MyInterface extends WithDynamicProperties {
|
|
8
|
+
* name: string;
|
|
9
|
+
* // MyInterface now supports s- prefixed dynamic properties
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface WithStructures {
|
|
13
|
+
/**
|
|
14
|
+
* Dynamic properties with s- prefix
|
|
15
|
+
* Allows for custom properties like s-color, s-count, s-items, etc.
|
|
16
|
+
*/
|
|
17
|
+
[key: `s-${string}`]: string | boolean | number | Array<string>;
|
|
18
|
+
structures?: Structure[];
|
|
19
|
+
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -147,4 +147,5 @@ export * from './UserAppOptionsRequired';
|
|
|
147
147
|
export * from './UserAppWithOptions';
|
|
148
148
|
export * from './VersionInfo';
|
|
149
149
|
export * from './WebhookCall';
|
|
150
|
-
export * from './WildcardCertificates';
|
|
150
|
+
export * from './WildcardCertificates';
|
|
151
|
+
export * from './WithStructures';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ObjectId } from "mongodb";
|
|
2
2
|
import { AgreementResponse } from "./AgreementResponse";
|
|
3
|
-
|
|
3
|
+
import { WithStructures } from "./WithStructures";
|
|
4
|
+
export interface ListParticipants extends WithStructures {
|
|
4
5
|
_id?: ObjectId;
|
|
5
6
|
list: ObjectId;
|
|
6
7
|
company: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Structure } from "./Structure";
|
|
2
|
+
/**
|
|
3
|
+
* A utility type that can be extended by any interface to support
|
|
4
|
+
* dynamic properties with keys prefixed with 's-'
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* interface MyInterface extends WithDynamicProperties {
|
|
8
|
+
* name: string;
|
|
9
|
+
* // MyInterface now supports s- prefixed dynamic properties
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface WithStructures {
|
|
13
|
+
/**
|
|
14
|
+
* Dynamic properties with s- prefix
|
|
15
|
+
* Allows for custom properties like s-color, s-count, s-items, etc.
|
|
16
|
+
*/
|
|
17
|
+
[key: `s-${string}`]: string | boolean | number | Array<string>;
|
|
18
|
+
structures?: Structure[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WithStructures.js","sourceRoot":"","sources":["../../src/WithStructures.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -147,4 +147,5 @@ export * from './UserAppOptionsRequired';
|
|
|
147
147
|
export * from './UserAppWithOptions';
|
|
148
148
|
export * from './VersionInfo';
|
|
149
149
|
export * from './WebhookCall';
|
|
150
|
-
export * from './WildcardCertificates';
|
|
150
|
+
export * from './WildcardCertificates';
|
|
151
|
+
export * from './WithStructures';
|
package/package.json
CHANGED
package/src/CustomerBase.ts
CHANGED
package/src/ListParticipants.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ObjectId } from "mongodb"
|
|
2
|
-
import {AgreementResponse} from "./AgreementResponse"
|
|
2
|
+
import { AgreementResponse } from "./AgreementResponse"
|
|
3
|
+
import { WithStructures } from "./WithStructures"
|
|
3
4
|
|
|
4
|
-
export interface ListParticipants {
|
|
5
|
+
export interface ListParticipants extends WithStructures {
|
|
5
6
|
_id?: ObjectId
|
|
6
7
|
|
|
7
8
|
list: ObjectId
|
|
@@ -67,5 +68,4 @@ export interface ListParticipants {
|
|
|
67
68
|
* if the participants came from a payment webhook paid will have the amount of the whole payment
|
|
68
69
|
*/
|
|
69
70
|
payment?: ObjectId
|
|
70
|
-
|
|
71
71
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Structure } from "./Structure";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A utility type that can be extended by any interface to support
|
|
5
|
+
* dynamic properties with keys prefixed with 's-'
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* interface MyInterface extends WithDynamicProperties {
|
|
9
|
+
* name: string;
|
|
10
|
+
* // MyInterface now supports s- prefixed dynamic properties
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface WithStructures {
|
|
14
|
+
/**
|
|
15
|
+
* Dynamic properties with s- prefix
|
|
16
|
+
* Allows for custom properties like s-color, s-count, s-items, etc.
|
|
17
|
+
*/
|
|
18
|
+
[key: `s-${string}`]: string | boolean | number | Array<string>;
|
|
19
|
+
structures?: Structure[]
|
|
20
|
+
}
|