@onereach/types-contacts-api 0.0.1 → 0.0.2
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/index.ts +18 -0
- package/package.json +1 -1
- package/index.d.ts +0 -21
- package/index.d.ts.map +0 -1
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare function OmitType<T, K extends keyof T>(classRef: T, keys: readonly K[]): Omit<T, typeof keys[number]>;
|
|
2
|
+
declare function IntersectionType<A, B>(classARef: A, classBRef: B): A & B;
|
|
3
|
+
declare function PartialType<T>(classRef: T): Partial<T>;
|
|
4
|
+
declare function PickType<T, K extends keyof T>(classRef: T, keys: readonly K[]): Pick<T, typeof keys[number]>;
|
|
5
|
+
|
|
6
|
+
export interface ContactBookResponseDto extends CreateContactBookDto {
|
|
7
|
+
id: number;
|
|
8
|
+
created: Date;
|
|
9
|
+
updated: Date;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface CreateContactBookDto {
|
|
13
|
+
label: string;
|
|
14
|
+
schema: object;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface UpdateContactBookDto extends ReturnType<typeof PartialType<CreateContactBookDto>> {
|
|
18
|
+
}
|
package/package.json
CHANGED
package/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare module "create-contact-book.dto" {
|
|
2
|
-
export default class CreateContactBookDto {
|
|
3
|
-
label: string;
|
|
4
|
-
schema: object;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
declare module "contact-book-response.dto" {
|
|
8
|
-
import CreateContactBookDto from "create-contact-book.dto";
|
|
9
|
-
export default class ContactBookResponseDto extends CreateContactBookDto {
|
|
10
|
-
id: number;
|
|
11
|
-
created: Date;
|
|
12
|
-
updated: Date;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
declare module "update-contact-book.dto" {
|
|
16
|
-
import CreateContactBookDto from "create-contact-book.dto";
|
|
17
|
-
const UpdateContactBookDto_base: import("@nestjs/common").Type<Partial<CreateContactBookDto>>;
|
|
18
|
-
export class UpdateContactBookDto extends UpdateContactBookDto_base {
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/modules/contact-book/dto/create-contact-book.dto.ts","../src/modules/contact-book/dto/contact-book-response.dto.ts","../src/modules/contact-book/dto/update-contact-book.dto.ts"],"names":[],"mappings":";IAKA,MAAM,CAAC,OAAO,OAAO,oBAAoB;QAIrC,KAAK,EAAE,MAAM,CAAC;QAMd,MAAM,EAAE,MAAM,CAAC;KAClB;;;ICfD,OAAO,oBAAoB,gCAA2D;IAItF,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,oBAAoB;QAGpE,EAAE,EAAE,MAAM,CAAC;QAIX,OAAO,EAAE,IAAI,CAAC;QAId,OAAO,EAAE,IAAI,CAAC;KACjB;;;ICjBD,OAAO,oBAAoB,gCAA2D;;IAKtF,MAAM,OAAO,oBAAqB,SAAQ,yBAAiC;KAAG"}
|